1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Optimized the selection of permissions

This commit is contained in:
2023-06-01 17:14:33 +08:00
parent 57a551ef45
commit b4fd4db646
3 changed files with 50 additions and 27 deletions

View File

@@ -187,28 +187,28 @@ begin;
insert into t_power(id, type_id)
values (3020101, 3);
insert into t_operation(id, name, code, power_id, element_id, parent_id)
VALUES (3020101, '获取所有公告', 'notice:manage:get', id, 3030100, null);
VALUES (3020101, '获取所有公告', 'notice:manage:get', id, 3020100, null);
commit;
begin;
insert into t_power(id, type_id)
values (3020102, 3);
insert into t_operation(id, name, code, power_id, element_id, parent_id)
VALUES (3020102, '发布公告', 'notice:manage:add', id, 3030100, null);
VALUES (3020102, '发布公告', 'notice:manage:add', id, 3020100, null);
commit;
begin;
insert into t_power(id, type_id)
values (3020103, 3);
insert into t_operation(id, name, code, power_id, element_id, parent_id)
VALUES (3020103, '删除公告', 'notice:manage:delete', id, 3030100, null);
VALUES (3020103, '删除公告', 'notice:manage:delete', id, 3020100, null);
commit;
begin;
insert into t_power(id, type_id)
values (3020104, 3);
insert into t_operation(id, name, code, power_id, element_id, parent_id)
VALUES (3020104, '修改公告', 'notice:manage:modify', id, 3030100, null);
VALUES (3020104, '修改公告', 'notice:manage:modify', id, 3020100, null);
commit;
begin;