提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dict.vo.type; |
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 DictTypeRespVO { |
|
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 = "性别") |
|
23 |
@ExcelProperty("字典名称") |
|
24 |
private String name; |
|
25 |
|
|
26 |
@Schema(description = "字典类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "sys_common_sex") |
|
27 |
@ExcelProperty("字典类型") |
|
28 |
private String type; |
|
29 |
|
|
30 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
31 |
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
32 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
33 |
private Integer status; |
|
34 |
|
|
35 |
@Schema(description = "备注", example = "快乐的备注") |
|
36 |
private String remark; |
|
37 |
|
|
38 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
39 |
private LocalDateTime createTime; |
|
40 |
|
|
41 |
} |