课程分类

This commit is contained in:
none
2023-02-24 14:12:51 +08:00
parent 2ca2b0989a
commit 97820eb402
12 changed files with 516 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
package xyz.playedu.api.request.backend;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import java.io.Serial;
import java.io.Serializable;
/**
* @Author 杭州白书科技有限公司
* @create 2023/2/24 13:56
*/
@Data
public class CourseCategoryRequest implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@NotNull(message = "请输入分类名")
@Length(min = 1, max = 20, message = "分类名长度在1-20个字符之间")
private String name;
@JsonProperty("parent_id")
@NotNull(message = "请选择上级分类")
private Integer parentId;
@NotNull(message = "请输入排序值")
private Integer sort;
}