提交 | 用户 | 时间
|
e7c126
|
1 |
package com.iailab.module.system.api.permission.dto; |
H |
2 |
|
|
3 |
import io.swagger.v3.oas.annotations.media.Schema; |
|
4 |
import lombok.Data; |
|
5 |
|
|
6 |
import java.util.HashSet; |
|
7 |
import java.util.Set; |
|
8 |
|
|
9 |
@Schema(description = "RPC 服务 - 部门的数据权限 Response DTO") |
|
10 |
@Data |
|
11 |
public class DeptDataPermissionRespDTO { |
|
12 |
|
|
13 |
@Schema(description = "是否可查看全部数据", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
14 |
private Boolean all; |
|
15 |
|
|
16 |
@Schema(description = "是否可查看自己的数据", requiredMode = Schema.RequiredMode.REQUIRED, example = "true") |
|
17 |
private Boolean self; |
|
18 |
|
|
19 |
@Schema(description = "可查看的部门编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 3]") |
|
20 |
private Set<Long> deptIds; |
|
21 |
|
|
22 |
public DeptDataPermissionRespDTO() { |
|
23 |
this.all = false; |
|
24 |
this.self = false; |
|
25 |
this.deptIds = new HashSet<>(); |
|
26 |
} |
|
27 |
|
|
28 |
} |