mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-28 13:29:50 +08:00
29 lines
645 B
Java
29 lines
645 B
Java
/**
|
|
* This file is part of the PlayEdu.
|
|
* (c) 杭州白书科技有限公司
|
|
*/
|
|
package xyz.playedu.api.request.backend;
|
|
|
|
import jakarta.validation.constraints.NotBlank;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import lombok.Data;
|
|
|
|
import org.hibernate.validator.constraints.Length;
|
|
|
|
/**
|
|
* @Author 杭州白书科技有限公司
|
|
*
|
|
* @create 2023/2/26 17:36
|
|
*/
|
|
@Data
|
|
public class CourseChapterRequest {
|
|
|
|
@NotBlank(message = "请输入章节名")
|
|
@Length(min = 1, max = 64, message = "章节名长度在1-64个字符之间")
|
|
private String name;
|
|
|
|
@NotNull(message = "sort参数不存在")
|
|
private Integer sort;
|
|
}
|