提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.permission.vo.role; |
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 javax.validation.constraints.NotBlank; |
|
12 |
import java.time.LocalDateTime; |
|
13 |
import java.util.Set; |
|
14 |
|
|
15 |
@Schema(description = "管理后台 - 角色信息 Response VO") |
|
16 |
@Data |
|
17 |
@ExcelIgnoreUnannotated |
|
18 |
public class RoleRespVO { |
|
19 |
|
|
20 |
@Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
21 |
@ExcelProperty("角色序号") |
|
22 |
private Long id; |
|
23 |
|
|
24 |
@Schema(description = "角色名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "管理员") |
|
25 |
@ExcelProperty("角色名称") |
|
26 |
private String name; |
|
27 |
|
|
28 |
@Schema(description = "角色标志", requiredMode = Schema.RequiredMode.REQUIRED, example = "admin") |
|
29 |
@NotBlank(message = "角色标志不能为空") |
|
30 |
@ExcelProperty("角色标志") |
|
31 |
private String code; |
|
32 |
|
|
33 |
@Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") |
|
34 |
@ExcelProperty("角色排序") |
|
35 |
private Integer sort; |
|
36 |
|
|
37 |
@Schema(description = "状态,参见 CommonStatusEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
38 |
@ExcelProperty(value = "角色状态", converter = DictConvert.class) |
|
39 |
@DictFormat(DictTypeConstants.COMMON_STATUS) |
|
40 |
private Integer status; |
|
41 |
|
|
42 |
@Schema(description = "角色类型,参见 RoleTypeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
43 |
private Integer type; |
|
44 |
|
|
45 |
@Schema(description = "备注", example = "我是一个角色") |
|
46 |
private String remark; |
|
47 |
|
|
48 |
@Schema(description = "数据范围,参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
49 |
@ExcelProperty("数据范围") |
|
50 |
private Integer dataScope; |
|
51 |
|
|
52 |
@Schema(description = "数据范围(指定部门数组)", example = "1") |
|
53 |
private Set<Long> dataScopeDeptIds; |
|
54 |
|
|
55 |
@Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED, example = "时间戳格式") |
|
56 |
private LocalDateTime createTime; |
|
57 |
|
|
58 |
} |