课程增加简介字段

This commit is contained in:
none
2023-03-21 15:03:21 +08:00
parent 57535a2ce7
commit a2a1206ec7
5 changed files with 33 additions and 19 deletions

View File

@@ -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;