提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.controller.admin.permission.vo.permission; |
H |
2 |
|
|
3 |
import com.iailab.framework.common.validation.InEnum; |
|
4 |
import com.iailab.module.system.enums.permission.DataScopeEnum; |
|
5 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
6 |
import lombok.Data; |
|
7 |
|
|
8 |
import javax.validation.constraints.NotNull; |
|
9 |
import java.util.Collections; |
|
10 |
import java.util.Set; |
|
11 |
|
|
12 |
@Schema(description = "管理后台 - 赋予角色数据权限 Request VO") |
|
13 |
@Data |
|
14 |
public class PermissionAssignRoleDataScopeReqVO { |
|
15 |
|
|
16 |
@Schema(description = "角色编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
17 |
@NotNull(message = "角色编号不能为空") |
|
18 |
private Long roleId; |
|
19 |
|
|
20 |
@Schema(description = "数据范围,参见 DataScopeEnum 枚举类", requiredMode = Schema.RequiredMode.REQUIRED, example = "1") |
|
21 |
@NotNull(message = "数据范围不能为空") |
|
22 |
@InEnum(value = DataScopeEnum.class, message = "数据范围必须是 {value}") |
|
23 |
private Integer dataScope; |
|
24 |
|
|
25 |
@Schema(description = "部门编号列表,只有范围类型为 DEPT_CUSTOM 时,该字段才需要", example = "1,3,5") |
|
26 |
private Set<Long> dataScopeDeptIds = Collections.emptySet(); // 兜底 |
|
27 |
|
|
28 |
} |