提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.infra.controller.admin.config.vo; |
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.infra.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 ConfigRespVO { |
|
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 = "biz") |
|
23 |
@ExcelProperty("参数分类") |
|
24 |
private String category; |
|
25 |
|
|
26 |
@Schema(description = "参数名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "数据库名") |
|
27 |
@ExcelProperty("参数名称") |
|
28 |
private String name; |
|
29 |
|
|
30 |
@Schema(description = "参数键名", requiredMode = Schema.RequiredMode.REQUIRED, example = "yunai.db.username") |
|
31 |
@ExcelProperty("参数键名") |
|
32 |
private String key; |
|
33 |
|
|
34 |
@Schema(description = "参数键值", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
35 |
@ExcelProperty("参数键值") |
|
36 |
private String value; |
|
37 |
|
|
38 |
@Schema(description = "参数类型,参见 SysConfigTypeEnum 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
39 |
@ExcelProperty(value = "参数类型", converter = DictConvert.class) |
|
40 |
@DictFormat(DictTypeConstants.CONFIG_TYPE) |
|
41 |
private Integer type; |
|
42 |
|
|
43 |
@Schema(description = "是否可见", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
44 |
@ExcelProperty(value = "是否可见", converter = DictConvert.class) |
|
45 |
@DictFormat(DictTypeConstants.BOOLEAN_STRING) |
|
46 |
private Boolean visible; |
|
47 |
|
|
48 |
@Schema(description = "备注", example = "备注一下很帅气!") |
|
49 |
@ExcelProperty("备注") |
|
50 |
private String remark; |
|
51 |
|
|
52 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
53 |
@ExcelProperty("创建时间") |
|
54 |
private LocalDateTime createTime; |
|
55 |
|
|
56 |
} |