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