mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-12-24 19:59:31 +08:00
课程增加简介字段
This commit is contained in:
@@ -15,14 +15,16 @@ import java.util.Map;
|
||||
@Data
|
||||
public class CourseRequest {
|
||||
|
||||
@NotNull(message = "title参数不存在")
|
||||
@NotBlank(message = "请输入课程标题")
|
||||
private String title;
|
||||
|
||||
@NotNull(message = "thumb参数不存在")
|
||||
@NotBlank(message = "请上传课程封面")
|
||||
private String thumb;
|
||||
|
||||
@NotBlank(message = "请填写课程简介")
|
||||
@JsonProperty("short_desc")
|
||||
private String shortDesc;
|
||||
|
||||
@NotNull(message = "is_show参数不存在")
|
||||
@JsonProperty("is_show")
|
||||
private Integer isShow;
|
||||
|
||||
Reference in New Issue
Block a user