提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.dept.vo.post; |
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 PostRespVO { |
|
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 = "iailab") |
|
27 |
@ExcelProperty("岗位编码") |
|
28 |
private String code; |
|
29 |
|
|
30 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
31 |
@ExcelProperty("岗位排序") |
|
32 |
private Integer sort; |
|
33 |
|
|
34 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
35 |
@ExcelProperty(value = "状态", converter = DictConvert.class) |
|
36 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
37 |
private Integer status; |
|
38 |
|
|
39 |
@Schema(description = "备注", example = "快乐的备注") |
|
40 |
private String remark; |
|
41 |
|
|
42 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED) |
|
43 |
private LocalDateTime createTime; |
|
44 |
|
|
45 |
} |