SysDataDictItemBO.java 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. package cc.uncarbon.module.sys.model.response;
  2. import cc.uncarbon.framework.core.constant.HelioConstant;
  3. import cc.uncarbon.framework.core.enums.EnabledStatusEnum;
  4. import com.fasterxml.jackson.annotation.JsonFormat;
  5. import io.swagger.v3.oas.annotations.media.Schema;
  6. import lombok.AllArgsConstructor;
  7. import lombok.Data;
  8. import lombok.NoArgsConstructor;
  9. import lombok.experimental.Accessors;
  10. import lombok.experimental.SuperBuilder;
  11. import org.springframework.format.annotation.DateTimeFormat;
  12. import java.io.Serial;
  13. import java.io.Serializable;
  14. import java.time.LocalDateTime;
  15. /**
  16. * 数据字典项 BO
  17. */
  18. @Accessors(chain = true)
  19. @SuperBuilder
  20. @AllArgsConstructor
  21. @NoArgsConstructor
  22. @Data
  23. public class SysDataDictItemBO implements Serializable {
  24. @Serial
  25. private static final long serialVersionUID = 1L;
  26. @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
  27. private Long id;
  28. @Schema(description = "创建时刻")
  29. @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
  30. @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
  31. private LocalDateTime createdAt;
  32. @Schema(description = "更新时刻")
  33. @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
  34. @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
  35. private LocalDateTime updatedAt;
  36. @Schema(description = "所属分类ID")
  37. private Long classifiedId;
  38. @Schema(description = "字典项编码")
  39. private String code;
  40. @Schema(description = "字典项标签")
  41. private String label;
  42. @Schema(description = "字典项值")
  43. private String value;
  44. @Schema(description = "状态")
  45. private EnabledStatusEnum status;
  46. @Schema(description = "排序")
  47. private Integer sort;
  48. @Schema(description = "描述")
  49. private String description;
  50. }