feat(system): 为DeptDataPermissionRespDTO添加部门编号字段

- 在DeptDataPermissionRespDTO中添加deptId字段,用于表示用户所在的部门编号
- 初始化deptId为null
- 更新DTO结构,增加新的字段描述
This commit is contained in:
furongxin 2024-11-01 17:02:46 +08:00
parent bdda36048f
commit 77fae00033

View File

@ -19,10 +19,14 @@ public class DeptDataPermissionRespDTO {
@Schema(description = "可查看的部门编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "[1, 3]")
private Set<Long> deptIds;
@Schema(description = "自己的部门编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "128")
private Long deptId;
public DeptDataPermissionRespDTO() {
this.all = false;
this.self = false;
this.deptIds = new HashSet<>();
this.deptId = null;
}
}