
delete from `sys_func`;
delete from `sys_role_func`;
delete from `sys_user_func`;


INSERT INTO `sys_func` VALUES (1, 0, '系统管理', NULL, 'sys', 0, 0);

INSERT INTO `sys_func` VALUES (2, 1, '用户管理', 'modules/sys/user.html', 'sys:module:list', 1, 1);
INSERT INTO `sys_func` VALUES (3, 1, '角色管理', 'modules/sys/role.html', 'sys:role:list', 1, 2);
INSERT INTO `sys_func` VALUES (4, 1, '菜单管理', 'modules/sys/menu.html', 'sys:module:list', 1, 3);
INSERT INTO `sys_func` VALUES (15, 2, '查看', NULL, 'sys:user:list', 2, 0);
INSERT INTO `sys_func` VALUES (16, 2, '新增', NULL, 'sys:user:add', 2, 0);
INSERT INTO `sys_func` VALUES (17, 2, '修改', NULL, 'sys:user:edit', 2, 0);
INSERT INTO `sys_func` VALUES (18, 2, '删除', NULL, 'sys:user:delete', 2, 0);
INSERT INTO `sys_func` VALUES (19, 3, '查看', NULL, 'sys:role:list', 2, 0);
INSERT INTO `sys_func` VALUES (20, 3, '新增', NULL, 'sys:role:add', 2, 0);
INSERT INTO `sys_func` VALUES (21, 3, '修改', NULL, 'sys:role:edit', 2, 0);
INSERT INTO `sys_func` VALUES (22, 3, '删除', NULL, 'sys:role:delete', 2, 0);
INSERT INTO `sys_func` VALUES (23, 4, '查看', NULL, 'sys:module:list', 2, 0);
INSERT INTO `sys_func` VALUES (31, 1, '部门管理', 'modules/sys/dept.html', 'sys:dept:list', 1, 1);
INSERT INTO `sys_func` VALUES (32, 31, '查看', NULL, 'sys:dept:list', 2, 0);
INSERT INTO `sys_func` VALUES (33, 31, '新增', NULL, 'sys:dept:add', 2, 0);
INSERT INTO `sys_func` VALUES (34, 31, '修改', NULL, 'sys:dept:edit', 2, 0);
INSERT INTO `sys_func` VALUES (35, 31, '删除', NULL, 'sys:dept:delete', 2, 0);


INSERT INTO `sys_func` VALUES (36, 0, '配置管理', NULL, 'configManagement', 1, 1);
INSERT INTO `sys_func` VALUES (37, 36, '产品系列管理', NULL, 'configManagement:productSeries', 1, 1);
INSERT INTO `sys_func` VALUES (38, 37, '查询产品系列', NULL, 'configManagement:productSeries：list', 2, 0);
INSERT INTO `sys_func` VALUES (39, 37, '添加产品系列', NULL, 'configManagement:productSeries:add', 2, 0);
INSERT INTO `sys_func` VALUES (40, 37, '修改产品系列', NULL, 'configManagement:productSeries:edit', 2, 0);
INSERT INTO `sys_func` VALUES (41, 37, '删除产品系列', NULL, 'configManagement:productSeries:delete', 2, 0);
INSERT INTO `sys_func` VALUES (42, 36, '渠道号管理', NULL, 'configManagement:deviceChannel', 1, 1);
INSERT INTO `sys_func` VALUES (43, 42, '查询渠道号', NULL, 'configManagement:deviceChannel:list', 2, 0);
INSERT INTO `sys_func` VALUES (44, 42, '添加渠道号', NULL, 'configManagement:deviceChannel:add', 2, 0);
INSERT INTO `sys_func` VALUES (45, 42, '修改渠道号', NULL, 'configManagement:deviceChannel:edit', 2, 0);
INSERT INTO `sys_func` VALUES (46, 42, '删除渠道号', NULL, 'configManagement:deviceChannel:delete', 2, 0);



INSERT INTO `sys_func` VALUES (47, 0, '设备管理', NULL, 'deviceManagement', 2, 0);

INSERT INTO `sys_func` VALUES (48, 47, '设备控制', NULL, 'deviceManagement:device', 1, 1);
INSERT INTO `sys_func` VALUES (49, 48, '查询设备', NULL, 'deviceManagement:device:list', 1, 1);
INSERT INTO `sys_func` VALUES (50, 48, '导入设备,批量导入,批量配置', NULL, 'deviceManagement:device:add', 2, 0);
INSERT INTO `sys_func` VALUES (51, 48, '适配配置', NULL, 'deviceManagement:device:edit', 2, 0);
INSERT INTO `sys_func` VALUES (52, 48, '删除设备', NULL, 'deviceManagement:device:delete', 2, 0);

INSERT INTO `sys_func` VALUES (53, 47, '设备渠道号统计,设备渠道号管理', NULL, 'deviceManagement:deviceChannel', 1, 1);
INSERT INTO `sys_func` VALUES (54, 53, '查询设备渠道号统计,设备渠道号管理', NULL, 'deviceManagement:deviceChannel:list', 2, 0);




INSERT INTO `sys_func` VALUES (55, 0, '远程日志', NULL, 'remotelog', 1, 1);
INSERT INTO `sys_func` VALUES (56, 0, '日志列表', NULL, 'remotelog:logfile', 1, 1);
INSERT INTO `sys_func` VALUES (57, 0, '查询日志', NULL, 'remotelog:logfile:list', 2, 0);
INSERT INTO `sys_func` VALUES (58, 46, '修改日志', NULL, 'remotelog:logfile:edit', 2, 0);
INSERT INTO `sys_func` VALUES (59, 46, '删除日志', NULL, 'remotelog:logfile:delete', 2, 0);

INSERT INTO `sys_func` VALUES (60, 46, '设备控制', NULL, 'remotelog:controlDevice', 1, 1);
INSERT INTO `sys_func` VALUES (61, 46, '查询状态', NULL, 'remotelog:controlDevice:list', 2, 0);
