File tree Expand file tree Collapse file tree 5 files changed +47
-1
lines changed
continew-admin-system/src/main/java/top/continew/admin/system/model
continew-admin-webapi/src/main/resources/db/changelog Expand file tree Collapse file tree 5 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -67,4 +67,14 @@ public class RoleDO extends BaseDO {
67
67
* 是否为系统内置数据
68
68
*/
69
69
private Boolean isSystem ;
70
+
71
+ /**
72
+ * 菜单选择是否父子节点关联
73
+ */
74
+ private Boolean menuCheckStrictly ;
75
+
76
+ /**
77
+ * 部门选择是否父子节点关联
78
+ */
79
+ private Boolean deptCheckStrictly ;
70
80
}
Original file line number Diff line number Diff line change @@ -90,4 +90,16 @@ public class RoleReq extends BaseReq {
90
90
*/
91
91
@ Schema (description = "权限范围:部门 ID 列表" , example = "5" )
92
92
private List <Long > deptIds = new ArrayList <>();
93
+
94
+ /**
95
+ * 菜单选择是否父子节点关联
96
+ */
97
+ @ Schema (description = "菜单选择是否父子节点关联" , example = "false" )
98
+ private Boolean menuCheckStrictly ;
99
+
100
+ /**
101
+ * 部门选择是否父子节点关联
102
+ */
103
+ @ Schema (description = "部门选择是否父子节点关联" , example = "false" )
104
+ private Boolean deptCheckStrictly ;
93
105
}
Original file line number Diff line number Diff line change @@ -81,6 +81,18 @@ public class RoleDetailResp extends BaseDetailResp {
81
81
@ ExcelProperty (value = "系统内置" )
82
82
private Boolean isSystem ;
83
83
84
+ /**
85
+ * 菜单选择是否父子节点关联
86
+ */
87
+ @ Schema (description = "菜单选择是否父子节点关联" , example = "false" )
88
+ private Boolean menuCheckStrictly ;
89
+
90
+ /**
91
+ * 部门选择是否父子节点关联
92
+ */
93
+ @ Schema (description = "部门选择是否父子节点关联" , example = "false" )
94
+ private Boolean deptCheckStrictly ;
95
+
84
96
/**
85
97
* 描述
86
98
*/
Original file line number Diff line number Diff line change 2
2
3
3
-- changeset Charles7c:3.3-1
4
4
ALTER TABLE ` gen_field_config` ADD COLUMN ` dict_code` varchar (30 ) DEFAULT NULL COMMENT ' 字典编码' AFTER ` query_type` ;
5
+
6
+ -- changeset Charles7c:3.3-2
7
+ ALTER TABLE ` sys_role`
8
+ ADD COLUMN ` menu_check_strictly` bit (1 ) DEFAULT b' 0' COMMENT ' 菜单选择是否父子节点关联' AFTER ` is_system` ,
9
+ ADD COLUMN ` dept_check_strictly` bit (1 ) DEFAULT b' 0' COMMENT ' 部门选择是否父子节点关联' AFTER ` menu_check_strictly` ;
Original file line number Diff line number Diff line change 1
1
-- liquibase formatted sql
2
2
3
3
-- changeset Charles7c:3.3-1
4
- ALTER TABLE " gen_field_config" ADD COLUMN ` dict_code` varchar (30 ) DEFAULT NULL COMMENT ' 字典编码 ' AFTER ` query_type ` ;
4
+ ALTER TABLE " gen_field_config" ADD COLUMN " dict_code" varchar (30 ) DEFAULT NULL ;
5
5
COMMENT ON COLUMN "gen_field_config"."dict_code" IS ' 字典编码' ;
6
+
7
+ -- changeset Charles7c:3.3-2
8
+ ALTER TABLE " sys_role"
9
+ ADD COLUMN " menu_check_strictly" bool DEFAULT false,
10
+ ADD COLUMN " dept_check_strictly" bool DEFAULT false;
11
+ COMMENT ON COLUMN "sys_role"."menu_check_strictly" IS ' 菜单选择是否父子节点关联' ;
12
+ COMMENT ON COLUMN "sys_role"."dept_check_strictly" IS ' 部门选择是否父子节点关联' ;
You can’t perform that action at this time.
0 commit comments