mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-04 22:41:24 +08:00
Added login, logout and getUserinfo (Include ui and server)
This commit is contained in:
60
sql/Insert.sql
Normal file
60
sql/Insert.sql
Normal file
@@ -0,0 +1,60 @@
|
||||
SET FOREIGN_KEY_CHECKS=0;
|
||||
|
||||
truncate t_menu;
|
||||
truncate t_element;
|
||||
truncate t_file;
|
||||
truncate t_operation_log;
|
||||
truncate t_operation;
|
||||
truncate t_power;
|
||||
truncate t_power_type;
|
||||
|
||||
insert into t_power_type (id, name)
|
||||
values (1, 'operation'),
|
||||
(2, 'menu'),
|
||||
(3, 'element'),
|
||||
(4, 'file');
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All Power Type', 'system:power_type:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All Power', 'system:power:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All User', 'system:operation:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All User', 'system:menu:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All User', 'system:element:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
begin;
|
||||
insert into t_power (type_id)
|
||||
values (1);
|
||||
insert into t_operation (name, code, power_id, parent_id)
|
||||
values ('Select All User', 'system:file:all', last_insert_id(), null);
|
||||
commit;
|
||||
|
||||
SET FOREIGN_KEY_CHECKS=1;
|
||||
Reference in New Issue
Block a user