提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dict.vo.data; |
H |
2 |
|
|
3 |
import com.iailab.framework.excel.core.annotations.DictFormat; |
|
4 |
import com.iailab.framework.excel.core.convert.DictConvert; |
|
5 |
import com.iailab.module.system.enums.DictTypeConstants; |
|
6 |
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated; |
|
7 |
import com.alibaba.excel.annotation.ExcelProperty; |
|
8 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
9 |
import lombok.Data; |
|
10 |
|
|
11 |
import java.time.LocalDateTime; |
|
12 |
|
|
13 |
@Schema(description = "管理后台 - 字典数据信息 Response VO") |
|
14 |
@Data |
|
15 |
@ExcelIgnoreUnannotated |
|
16 |
public class DictDataRespVO { |
|
17 |
|
|
18 |
@Schema(description = "字典数据编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
19 |
@ExcelProperty("字典编码") |
|
20 |
private Long id; |
|
21 |
|
|
22 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
23 |
@ExcelProperty("字典排序") |
|
24 |
private Integer sort; |
|
25 |
|
|
26 |
@Schema(description = "字典标签", requiredMode = Schema.RequiredMode.REQUIRED, example = "平台") |
|
27 |
@ExcelProperty("字典标签") |
|
28 |
private String label; |
|
29 |
|
|
30 |
@Schema(description = "字典值", requiredMode = Schema.RequiredMode.REQUIRED, example = "iocoder") |
|
31 |
@ExcelProperty("字典键值") |
|
32 |
private String value; |
|
33 |
|
|
34 |
@Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
|
35 |
@ExcelProperty("字典类型") |
|
36 |
private String dictType; |
|
37 |
|
|
38 |
@Schema(description = "状态,见 CommonStatusEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
39 |
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
40 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
41 |
private Integer status; |
|
42 |
|
|
43 |
@Schema(description = "颜色类型,default、primary、success、info、warning、danger", example = "default") |
|
44 |
private String colorType; |
|
45 |
|
|
46 |
@Schema(description = "css 样式", example = "btn-visible") |
|
47 |
private String cssClass; |
|
48 |
|
|
49 |
@Schema(description = "备注", example = "我是一个角色") |
|
50 |
private String remark; |
|
51 |
|
|
52 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
53 |
private LocalDateTime createTime; |
|
54 |
|
|
55 |
} |