UserDTO.java 724 B

123456789101112131415161718192021222324252627282930313233343536
  1. /**
  2. * /**
  3. * Copyright (c) 2018 业主系统 All rights reserved.
  4. * <p>
  5. * https://www.yezhu.io
  6. * <p>
  7. * 版权所有,侵权必究!
  8. */
  9. package com.kioor.user.dto;
  10. import io.swagger.v3.oas.annotations.media.Schema;
  11. import jakarta.validation.constraints.NotBlank;
  12. import lombok.Data;
  13. /**
  14. * 完善用户信息
  15. *
  16. * @author Mark sunlightcs@gmail.com
  17. */
  18. @Data
  19. @Schema(description = "用户信息表单")
  20. public class UserDTO {
  21. @Schema(description = "用户名")
  22. @NotBlank(message = "用户名不能为空")
  23. private String username;
  24. @Schema(description = "签名")
  25. private String remarks;
  26. @Schema(description = "是否对邻居展示", defaultValue = "1")
  27. private int openFlag = 1;
  28. }