| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- package cc.uncarbon.module.sys.model.response;
- import cc.uncarbon.framework.core.constant.HelioConstant;
- import cc.uncarbon.framework.core.enums.EnabledStatusEnum;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.AllArgsConstructor;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import lombok.experimental.Accessors;
- import lombok.experimental.SuperBuilder;
- import org.springframework.format.annotation.DateTimeFormat;
- import java.io.Serial;
- import java.io.Serializable;
- import java.time.LocalDateTime;
- /**
- * 数据字典项 BO
- */
- @Accessors(chain = true)
- @SuperBuilder
- @AllArgsConstructor
- @NoArgsConstructor
- @Data
- public class SysDataDictItemBO implements Serializable {
- @Serial
- private static final long serialVersionUID = 1L;
- @Schema(description = "主键ID", hidden = true, title = "仅更新时使用")
- private Long id;
- @Schema(description = "创建时刻")
- @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
- @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
- private LocalDateTime createdAt;
- @Schema(description = "更新时刻")
- @DateTimeFormat(pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
- @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = HelioConstant.Jackson.DATE_TIME_FORMAT)
- private LocalDateTime updatedAt;
- @Schema(description = "所属分类ID")
- private Long classifiedId;
- @Schema(description = "字典项编码")
- private String code;
- @Schema(description = "字典项标签")
- private String label;
- @Schema(description = "字典项值")
- private String value;
- @Schema(description = "状态")
- private EnabledStatusEnum status;
- @Schema(description = "排序")
- private Integer sort;
- @Schema(description = "描述")
- private String description;
- }
|