SystemUserBaseVO 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package cn.iocoder.yudao.module.module.system.controller.admin.user.vo;
  2. import io.swagger.v3.oas.annotations.media.Schema;
  3. import lombok.*;
  4. import java.util.*;
  5. import java.time.LocalDateTime;
  6. import java.time.LocalDateTime;
  7. import javax.validation.constraints.*;
  8. import org.springframework.format.annotation.DateTimeFormat;
  9. import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
  10. /**
  11. * 用户 Base VO,提供给添加、修改、详细的子 VO 使用
  12. * 如果子 VO 存在差异的字段,请不要添加到这里,影响 Swagger 文档生成
  13. */
  14. @Data
  15. public class SystemUserBaseVO {
  16. @Schema(description = "名字", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋头")
  17. @NotEmpty(message = "名字不能为空")
  18. private String name;
  19. @Schema(description = "头像", example = "https://www.iocoder.cn/1.png")
  20. private String avatar;
  21. @Schema(description = "视频", example = "https://www.iocoder.cn/1.mp4")
  22. private String video;
  23. @Schema(description = "个人简介", example = "我是介绍")
  24. private String description;
  25. @Schema(description = "性别 1", example = "男")
  26. private String sex1;
  27. @Schema(description = "性别 2", example = "1")
  28. private Integer sex2;
  29. @Schema(description = "性别 3", example = "true")
  30. private Boolean sex3;
  31. @Schema(description = "出生日期")
  32. @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  33. private LocalDateTime birthday;
  34. @Schema(description = "备注", example = "我是备注")
  35. private String memo;
  36. @Schema(description = "创建时间")
  37. @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
  38. private LocalDateTime createTime;
  39. }