InfraStudentSaveReqVO 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package cn.iocoder.yudao.module.infra.controller.admin.demo.vo;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.*;
  4. import java.util.*;
  5. import javax.validation.constraints.*;
  6. import java.util.*;
  7. import org.springframework.format.annotation.DateTimeFormat;
  8. import java.time.LocalDateTime;
  9. import cn.iocoder.yudao.module.infra.dal.dataobject.demo.InfraStudentContactDO;
  10. import cn.iocoder.yudao.module.infra.dal.dataobject.demo.InfraStudentTeacherDO;
  11. @Schema(description = "管理后台 - 学生新增/修改 Request VO")
  12. @Data
  13. public class InfraStudentSaveReqVO {
  14. @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
  15. private Long id;
  16. @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头")
  17. @NotEmpty(message = "名字不能为空")
  18. private String name;
  19. @Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是介绍")
  20. @NotEmpty(message = "简介不能为空")
  21. private String description;
  22. @Schema(description = "出生日期", requiredMode = Schema.RequiredMode.REQUIRED)
  23. @NotNull(message = "出生日期不能为空")
  24. private LocalDateTime birthday;
  25. @Schema(description = "性别", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
  26. @NotNull(message = "性别不能为空")
  27. private Integer sex;
  28. @Schema(description = "是否有效", requiredMode = Schema.RequiredMode.REQUIRED, example = "true")
  29. @NotNull(message = "是否有效不能为空")
  30. private Boolean enabled;
  31. @Schema(description = "头像", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.png")
  32. @NotEmpty(message = "头像不能为空")
  33. private String avatar;
  34. @Schema(description = "附件", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn/1.mp4")
  35. @NotEmpty(message = "附件不能为空")
  36. private String video;
  37. @Schema(description = "备注", requiredMode = Schema.RequiredMode.REQUIRED, example = "我是备注")
  38. @NotEmpty(message = "备注不能为空")
  39. private String memo;
  40. }