/*
 Navicat Premium Data Transfer

 Source Server         : localhost
 Source Server Type    : MySQL
 Source Server Version : 80032
 Source Host           : localhost:3306
 Source Schema         : tansci_boot

 Target Server Type    : MySQL
 Target Server Version : 80032
 File Encoding         : 65001

 Date: 26/02/2024 15:50:53
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for lc_pages
-- ----------------------------
DROP TABLE IF EXISTS `lc_pages`;
CREATE TABLE `lc_pages`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `title` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '页面标题',
  `subtitle` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '副标题',
  `parent_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '父页面',
  `pageschema` json NULL COMMENT '页面json',
  `status` int NULL DEFAULT NULL COMMENT '状态：0、正常，1、禁用',
  `creator_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '文件描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '页面开发' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of lc_pages
-- ----------------------------
INSERT INTO `lc_pages` VALUES ('306eeeb4daa0674cbf4026f6910ba5a0', '表格例子', '支持增删改查', '0', '{\"id\": \"u:e6cbae2af395\", \"body\": [{\"id\": \"pages_crud\", \"api\": {\"url\": \"/tansci/lowcode/lcPages/page\", \"data\": {\"size\": \"${perPage}\", \"title\": \"${title}\", \"current\": \"${page}\"}, \"method\": \"get\", \"messages\": {}, \"responseData\": {\"data\": \"${result.records}\"}}, \"name\": \"pages_crud\", \"type\": \"crud\", \"filter\": {\"id\": \"u:5ad1c4a6d950\", \"body\": [{\"id\": \"u:f75f39cb2469\", \"name\": \"title\", \"type\": \"input-text\", \"placeholder\": \"请输入名称\"}, {\"id\": \"u:c5f5700a399d\", \"name\": \"city\", \"type\": \"input-city\", \"label\": \"城市选择\", \"allowCity\": true, \"extractValue\": true, \"allowDistrict\": true}], \"title\": \"条件搜索\", \"actions\": [{\"id\": \"u:351ace1a07f0\", \"icon\": \"fa fa-plus\", \"size\": \"sm\", \"type\": \"button\", \"label\": \"添加\", \"dialog\": {\"body\": {\"api\": \"/tansci/lcPages/save\", \"body\": [{\"name\": \"title\", \"type\": \"input-text\", \"label\": \"名称\", \"required\": true}, {\"name\": \"remarks\", \"type\": \"input-text\", \"label\": \"描述\", \"required\": true}], \"name\": \"sample-edit-form\", \"type\": \"form\"}, \"title\": \"添加\"}, \"target\": \"pages_crud\", \"actionType\": \"dialog\"}, {\"id\": \"u:6309a99bd03a\", \"size\": \"sm\", \"type\": \"reset\", \"label\": \"重置\"}, {\"id\": \"u:e541fe6332bc\", \"size\": \"sm\", \"type\": \"submit\", \"label\": \"查询\", \"level\": \"primary\"}], \"submitText\": \"\"}, \"columns\": [{\"id\": \"u:6ce5ff1520ad\", \"name\": \"id\", \"type\": \"text\", \"label\": \"ID\"}, {\"id\": \"u:0044e13a9da6\", \"name\": \"title\", \"type\": \"text\", \"label\": \"页面标题\"}, {\"id\": \"u:e03d48488d41\", \"name\": \"subtitle\", \"type\": \"text\", \"label\": \"副标题\"}, {\"id\": \"u:d1fe9b9479cf\", \"name\": \"status\", \"type\": \"status\", \"label\": \"状态\", \"source\": {\"0\": {\"icon\": \"fa fa-check-circle\", \"color\": \"#67C23A\", \"label\": \"已发布\"}, \"1\": {\"icon\": \"fa fa-times-circle\", \"color\": \"#F56C6C\", \"label\": \"未发布\"}}}, {\"id\": \"u:91aadb1310ce\", \"name\": \"remarks\", \"type\": \"text\", \"label\": \"描述\"}, {\"id\": \"u:91aadb1310ce\", \"name\": \"updateTime\", \"type\": \"text\", \"label\": \"更新时间\"}, {\"id\": \"u:91aadb1310ce\", \"name\": \"createTime\", \"type\": \"text\", \"label\": \"创建时间\"}, {\"id\": \"u:b53dd325281b\", \"type\": \"operation\", \"label\": \"操作\", \"width\": 130, \"buttons\": [{\"id\": \"u:19ee43a7c211\", \"type\": \"button\", \"label\": \"详情\", \"level\": \"link\", \"dialog\": {\"body\": {\"body\": [{\"name\": \"title\", \"type\": \"static\", \"label\": \"名称\"}, {\"type\": \"divider\"}, {\"name\": \"remarks\", \"type\": \"static\", \"label\": \"描述\"}, {\"type\": \"divider\"}, {\"name\": \"status\", \"type\": \"static\", \"label\": \"状态\"}, {\"type\": \"divider\"}, {\"name\": \"updateTime\", \"type\": \"static\", \"label\": \"更新时间\"}, {\"type\": \"divider\"}, {\"name\": \"pageschema\", \"type\": \"json\", \"label\": \"内容\"}], \"type\": \"form\"}, \"size\": \"lg\", \"title\": \"查看\"}, \"actionType\": \"dialog\"}, {\"id\": \"u:4cde2885b9f0\", \"type\": \"button\", \"label\": \"编辑\", \"level\": \"link\", \"dialog\": {\"body\": {\"api\": \"/tansci/lcPages/update\", \"body\": [{\"name\": \"title\", \"type\": \"input-text\", \"label\": \"名称\", \"required\": true}, {\"name\": \"remarks\", \"type\": \"input-text\", \"label\": \"描述\", \"required\": true}], \"name\": \"sample-edit-form\", \"type\": \"form\"}, \"title\": \"编辑\"}, \"actionType\": \"dialog\"}, {\"id\": \"u:dd3568d00c3a\", \"api\": \"get:/tansci/lcPages/delete/${id}\", \"type\": \"button\", \"label\": \"删除\", \"level\": \"link\", \"className\": \"text-danger\", \"actionType\": \"ajax\", \"confirmText\": \"您确认要删除?\"}], \"toggled\": true}], \"messages\": {}, \"draggable\": false, \"bulkActions\": [], \"perPageAvailable\": [10]}], \"type\": \"page\", \"title\": \"\", \"toolbar\": []}', 0, '534a37c366ec47878a6b0c85703d0bc2', '2024-01-11 10:27:32', '2023-05-11 11:24:39', '支持增删改查、分页、筛选的表格例子');
INSERT INTO `lc_pages` VALUES ('7f08e688-de5a-11ed-8f49-00163e228eed', '轮播图', '轮播图', '0', '{\"id\": \"u:a457fe5d710c\", \"body\": [{\"id\": \"u:b008adde5469\", \"body\": [{\"id\": \"u:ee0376499f18\", \"type\": \"carousel\", \"height\": \"300\", \"options\": [{\"image\": \"https://aisuda.bce.baidu.com/amis/static/photo/3893101144_bff2dc9.jpg\"}, {\"image\": \"https://aisuda.bce.baidu.com/amis/static/photo/bd3eb13533fa828b13b24500f31f4134960a5a44_81bbc2d.jpg\"}, {\"image\": \"https://aisuda.bce.baidu.com/amis/static/photo/da6376bf988c_3360340.jpg\"}], \"controlsTheme\": \"light\"}], \"type\": \"panel\", \"title\": \"直接页面配置\"}], \"type\": \"page\", \"style\": {\"boxShadow\": \" 0px 0px 0px 0px transparent\"}, \"pullRefresh\": {\"disabled\": true}, \"asideResizor\": false}', 0, NULL, '2024-01-11 09:51:22', '2023-05-11 10:58:43', '轮播图测试');
INSERT INTO `lc_pages` VALUES ('ce620f517565f989d718385d4e4033ac', 'aaaa', NULL, NULL, NULL, NULL, '534a37c366ec47878a6b0c85703d0bc2', '2023-05-12 08:55:56', '2023-05-12 08:55:56', 'aaaa');

-- ----------------------------
-- Table structure for lc_pages_menu
-- ----------------------------
DROP TABLE IF EXISTS `lc_pages_menu`;
CREATE TABLE `lc_pages_menu`  (
  `pages_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '页面id',
  `menu_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '菜单id',
  PRIMARY KEY (`pages_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '页面菜单关系表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of lc_pages_menu
-- ----------------------------
INSERT INTO `lc_pages_menu` VALUES ('306eeeb4daa0674cbf4026f6910ba5a0', 'd2df5734-1ca6-11ee-8b16-e0be038740d4');
INSERT INTO `lc_pages_menu` VALUES ('7f08e688-de5a-11ed-8f49-00163e228eed', 'eb404f1c-1ca6-11ee-8b16-e0be038740d4');

-- ----------------------------
-- Table structure for magic_api_backup
-- ----------------------------
DROP TABLE IF EXISTS `magic_api_backup`;
CREATE TABLE `magic_api_backup`  (
  `id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '原对象ID',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '原名称',
  `content` blob NULL COMMENT '备份内容',
  `tag` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '标签',
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '类型',
  `create_by` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作人',
  `create_date` datetime NULL DEFAULT NULL COMMENT '备份时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'magic api 备份' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of magic_api_backup
-- ----------------------------

-- ----------------------------
-- Table structure for magic_api_file
-- ----------------------------
DROP TABLE IF EXISTS `magic_api_file`;
CREATE TABLE `magic_api_file`  (
  `file_path` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '路径',
  `file_content` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '内容',
  PRIMARY KEY (`file_path`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = 'magic api 接口表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of magic_api_file
-- ----------------------------
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"fc09d5b985f44120956d5d4f9fbd3658\",\r\n  \"name\" : \"应用管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"lowcode\",\r\n  \"createTime\" : 1688627828353,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"接口生成\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"fc09d5b985f44120956d5d4f9fbd3658\",\r\n  \"path\" : \"generator\",\r\n  \"createTime\" : 1706837176932,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/分页.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"72d2a17d7417416ab095d82cfb5114cd\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"分页\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1706843973047,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"page\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : null,\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.page(\"\"\"\r\n    select * from sys_gen \r\n    where 1=1\r\n    ?{tableName, and table_name like concat(\'%\',#{tableName},\'%\')}\r\n    ?{tableComment, and table_comment like concat(\'%\',#{tableComment},\'%\')}\r\n    order by update_time desc\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/删除接口.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"836d46dce24045c78408f44db6dfda7d\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"删除接口\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1706843980275,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"DELETE\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : null,\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport org.ssssssss.magicapi.core.service.MagicResourceService\r\n\r\nvar interfaceId = db.selectValue(\"\"\"select interface_id from sys_gen where id = #{id}\"\"\")\r\nif(interfaceId != null){\r\n    MagicResourceService.delete(interfaceId)\r\n}\r\n\r\nreturn db.table(\"sys_gen\").where().eq(\"id\",id).delete()');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/接口生成.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"470d902b51e5466d899789de871a426f\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"接口生成\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1711505784847,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"execute\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport org.ssssssss.magicapi.core.model.Option;\r\nimport org.ssssssss.magicapi.core.model.ApiInfo;\r\nimport org.ssssssss.magicapi.core.model.Group;\r\nimport org.ssssssss.magicapi.core.service.MagicResourceService;\r\nimport log;\r\n\r\ninfo = info::json\r\nvar permissionPrefix = (info.modulePath + info.businessPath).replace(/^\\//,\'\').replace(/\\/\\//, \'/\').replace(\'/\', \':\')\r\n\r\n//创建组\r\nvar getGroup = (type) => {\r\n    var moduleGroup = MagicResourceService.tree(type).children.filter(it => {\r\n        return it.node.path == info.modulePath || it.node.path == info.modulePath.substring(1, info.modulePath.length())\r\n    })\r\n    if(moduleGroup.length == 0){\r\n        Group group = new Group();\r\n        group.setId(UUID.randomUUID().toString().replace(\'-\', \'\'));\r\n        group.setName(info.moduleName);\r\n        group.setPath(info.modulePath);\r\n        group.setParentId(\"0\");\r\n        group.setType(type)\r\n        MagicResourceService.saveGroup(group);\r\n        moduleGroup = group;\r\n    }else{\r\n        moduleGroup = moduleGroup[0].node\r\n    }\r\n    //创建功能组\r\n    var businessGroup = MagicResourceService.tree(type).children.filter(it => it.node.id == moduleGroup.id)[0].children.filter(it => {\r\n        return it.node.path == info.businessPath || it.node.path == info.businessPath.substring(1, info.businessPath.length())\r\n    })\r\n    if(businessGroup.length == 0){\r\n        Group group = new Group();\r\n        group.setId(UUID.randomUUID().toString().replace(\'-\', \'\'));\r\n        group.setName(info.businessName);\r\n        group.setPath(info.businessPath);\r\n        group.setParentId(moduleGroup.getId());\r\n        group.setType(type)\r\n        MagicResourceService.saveGroup(group);\r\n        businessGroup = group;\r\n    }else{\r\n        businessGroup = businessGroup[0].node\r\n    }\r\n\r\n    // 子表组\r\n    var subPath = \"/sub\"\r\n    var bGroup = MagicResourceService.tree(type).children.filter(it => it.node.id == moduleGroup.id)[0]\r\n    var subGroup = bGroup.children.filter(it => it.node.id == businessGroup.id )[0].children.filter(it =>{\r\n        return it.node.path == subPath || it.node.path == subPath.substring(1, subPath.length())\r\n    })\r\n    if(info.template == \"subTable\"){\r\n        if(subGroup.length == 0){\r\n            Group group = new Group();\r\n            group.setId(UUID.randomUUID().toString().replace(\'-\', \'\'));\r\n            group.setName(\"子表\");\r\n            group.setPath(\"/sub\");\r\n            group.setParentId(businessGroup.getId());\r\n            group.setType(type)\r\n            MagicResourceService.saveGroup(group);\r\n            subGroup = group;  \r\n        }else{\r\n            subGroup = subGroup[0].node\r\n        }\r\n    }\r\n\r\n    return {\r\n        moduleGroup,\r\n        businessGroup,\r\n        subGroup\r\n    }\r\n}\r\n//删除临时文件\r\nvar deleteFiles = (groupId, paths) => {\r\n    var listFiles = MagicResourceService.listFiles(groupId)\r\n    listFiles.forEach(it => {\r\n        if(paths.indexOf(it.path) != -1){\r\n            MagicResourceService.delete(it.id)\r\n        }\r\n    })\r\n}\r\n\r\nvar businessGroup = getGroup(\'api\').businessGroup\r\n//删除api接口\r\ndeleteFiles(businessGroup.getId(),[\'/list\', \'/save\', \'/get\', \'/delete\'])\r\n\r\ncolumns = columns::json\r\nvar listFields = columns.filter(it => it.list).map(it => it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()).join(\',\')\r\nvar wheres = \'\';\r\ncolumns.forEach(it => {\r\n    var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n    if(it.query){\r\n        if(it.where == \'in\'){\r\n            wheres += `    ?{${it.columnName}, and ${field} in(#{`+it.columnName+`.split(\',\')}) }\\n`\r\n        }else if(it.where == \'like\'){\r\n            wheres += `    ?{${it.columnName}, and ${field} like concat(\'%\',#{${it.columnName}},\'%\') }\\n`\r\n        }else{\r\n            wheres += `    ?{${it.columnName}, and ${field} ${it.where} #{${it.columnName}} }\\n`\r\n        }\r\n    }\r\n})\r\n//取得数据库的表信息\r\ndatasource = datasource || \'\'\r\nvar commonField = db[datasource].select(\"\"\"\r\n    SELECT\r\n        column_name\r\n    FROM\r\n        information_schema.COLUMNS\r\n    WHERE\r\n        table_name = #{tableName} AND column_name IN ( \'is_del\', \'create_by\', \'create_date\', \'update_by\', \'update_date\' ) AND table_schema = DATABASE()\r\n\"\"\")\r\ncommonField = commonField.map(it => it.columnName)\r\nvar primary = db[datasource].selectValue(\"SELECT column_name FROM information_schema.COLUMNS WHERE table_name = #{tableName} and column_key = \'PRI\' and table_schema = database() limit 1\")\r\nvar primaryLowerCamelCase = primary.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n\r\nvar logic = \'\'\r\nif(commonField.contains(\'is_del\')){\r\n    logic = \'.logic()\'\r\n    wheres += `    and is_del = 0\\n`\r\n}\r\nwheres = wheres.substring(0,wheres.length() - 1)\r\n\r\nvar datasourceScript = datasource ? `.${datasource}` : \'\';\r\n\r\n// 产生查询api接口\r\nApiInfo listApi = new ApiInfo()\r\nlistApi.setName(\"列表\")\r\nlistApi.setPath(\"/list\")\r\nlistApi.setMethod(\"GET\")\r\nlistApi.setGroupId(businessGroup.getId())\r\nlistApi.setScript(`return db${datasourceScript}.page(\"\"\"\r\nselect ${primary},${listFields} from ${tableName} where 1=1\r\n${wheres}\r\n\"\"\")`)\r\n// listApi.setOption([new Option(\'permission\', `${permissionPrefix}:view`, \'允许拥有该权限的访问\')])\r\nMagicResourceService.saveFile(listApi)\r\n\r\nvar saveMethod = \'save(data)\'\r\nif(commonField.size() >= 4){\r\n    saveMethod = \'saveOrUpdate(data)\'\r\n}\r\n\r\n//产生增册改查api接口\r\nvar insertFields = \'\';\r\ncolumns.forEach(it => {\r\n    var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n    insertFields += `, #{body.`+it.columnName+`}`\r\n})\r\n\r\nApiInfo saveApi = new ApiInfo()\r\nsaveApi.setName(\"保存\")\r\nsaveApi.setPath(\"/save\")\r\nsaveApi.setMethod(\"POST\")\r\nsaveApi.setGroupId(businessGroup.getId())\r\nsaveApi.setScript(`return db.insert(\"\"\"insert into ${tableName}(${primary},${listFields}) values (uuid() ${insertFields})\"\"\")`)\r\n// saveApi.setOption([new Option(\'wrap_request_parameter\', \'data\'), new Option(\'permission\', `${permissionPrefix}:save`, \'允许拥有该权限的访问\')])\r\nMagicResourceService.saveFile(saveApi)\r\n\r\n// 修改\r\nvar updateFields = \'\';\r\ncolumns.forEach(it => {\r\n    var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n    updateFields += `?{body.${it.columnName}, ,${field} = #{body.${it.columnName}}}\\n`\r\n})\r\nApiInfo updateApi = new ApiInfo()\r\nupdateApi.setName(\"修改\")\r\nupdateApi.setPath(\"/update\")\r\nupdateApi.setMethod(\"POST\")\r\nupdateApi.setGroupId(businessGroup.getId())\r\nupdateApi.setScript(`return db.update(\"\"\"update ${tableName} set \\n${primary} = #{body.${primary}}\\n ${updateFields} where ${primary} = #{body.${primary}}\"\"\")`)\r\n// updateApi.setOption([new Option(\'wrap_request_parameter\', \'data\'), new Option(\'permission\', `${permissionPrefix}:save`, \'允许拥有该权限的访问\')])\r\nMagicResourceService.saveFile(updateApi)\r\n\r\nApiInfo deleteApi = new ApiInfo()\r\ndeleteApi.setName(\"删除\")\r\ndeleteApi.setPath(\"/delete\")\r\ndeleteApi.setMethod(\"DELETE\")\r\ndeleteApi.setGroupId(businessGroup.getId())\r\ndeleteApi.setScript(`return db${datasourceScript}.table(\'${tableName}\')${logic}.where().eq(\'${primary}\', ${primaryLowerCamelCase}).delete()`)\r\n// deleteApi.setOption([new Option(\'permission\', `${permissionPrefix}:delete`, \'允许拥有该权限的访问\')])\r\nMagicResourceService.saveFile(deleteApi)\r\n\r\nvar saveFields = columns.filter(it => it.save).map(it => it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()).join(\',\')\r\n//产生单个行Api接口\r\nApiInfo getApi = new ApiInfo()\r\ngetApi.setName(\"详情\")\r\ngetApi.setPath(\"/get\")\r\ngetApi.setMethod(\"GET\")\r\ngetApi.setGroupId(businessGroup.getId())\r\ngetApi.setScript(`return db${datasourceScript}.selectOne(\"\"\"select ${saveFields} from ${tableName} where ${primary} = #{${primaryLowerCamelCase}}\"\"\")`)\r\n// getApi.setOption([new Option(\'permission\', `${permissionPrefix}:view`, \'允许拥有该权限的访问\')])\r\nMagicResourceService.saveFile(getApi)\r\n\r\n// 树列表接口\r\nif(info.template == \"tree\"){\r\n    ApiInfo treeApi = new ApiInfo()\r\n    treeApi.setName(\"树列表\")\r\n    treeApi.setPath(\"/tree\")\r\n    treeApi.setMethod(\"GET\")\r\n    treeApi.setGroupId(businessGroup.getId())\r\n    treeApi.setScript(`var toTree = (list,${info.treePid}) => select t.*,toTree(list,t.${info.treeId}) children from list t where t.${info.treePid} = ${info.treePid}\r\n        var list = toTree(db.select(\'select ${listFields} from ${datasourceScript?datasourceScript+\'.\':\'\'}${tableName}\'),\'0\')\r\n        return {\r\n            list: list,\r\n            total: list.getLength()\r\n        }\r\n    `)\r\n    // treeApi.setOption([new Option(\'permission\', `${permissionPrefix}:view`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(treeApi)\r\n}\r\n\r\n// 主子表 api接口\r\nif(info.template == \"subTable\"){\r\n    var subGroup = getGroup(\'api\').subGroup\r\n    subColumns = subColumns::json\r\n    var subListFields = subColumns.filter(it => it.list).map(it => it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()).join(\',\')\r\n    var subWheres = \'\';\r\n    subColumns.forEach(it => {\r\n        var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n        if(it.query){\r\n            if(it.where == \'in\'){\r\n                subWheres += `?{${it.columnName}, and ${field} in(#{`+it.columnName+`.split(\',\')}) }\\n`\r\n            }else if(it.where == \'like\'){\r\n                subWheres += `?{${it.columnName}, and ${field} like concat(\'%\',#{${it.columnName}},\'%\') }\\n`\r\n            }else{\r\n                subWheres += `?{${it.columnName}, and ${field} ${it.where} #{${it.columnName}} }\\n`\r\n            }\r\n        }\r\n    })\r\n    var subPrimary = db[datasource].selectValue(\"SELECT column_name FROM information_schema.COLUMNS WHERE table_name = #{subTableName} and column_key = \'PRI\' and table_schema = database() limit 1\")\r\n    var subPrimaryLowerCamelCase = subPrimary.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n    var subLogic = \'\'\r\n    if(subListFields.contains(\'is_del\')){\r\n        subLogic = \'.logic()\'\r\n        subWheres += `    and is_del = 0\\n`\r\n    }\r\n    subWheres = subWheres.substring(0,subWheres.length() - 1)\r\n    \r\n    // 列表\r\n    ApiInfo subListApi = new ApiInfo()\r\n    subListApi.setName(\"列表\")\r\n    subListApi.setPath(\"/list\")\r\n    subListApi.setMethod(\"GET\")\r\n    subListApi.setGroupId(subGroup.getId())\r\n    subListApi.setScript(`return db${datasourceScript}.page(\"\"\"\r\n        select ${subListFields} from ${subTableName} where 1=1\r\n    ${subWheres}\r\n    \"\"\")`)\r\n    // subListApi.setOption([new Option(\'permission\', `${permissionPrefix}:view`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(subListApi)\r\n\r\n    // 保存\r\n    var insertSubFields = \'\';\r\n    subColumns.forEach(it => {\r\n        var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n        insertSubFields += `, #{body.`+it.columnName+`}`\r\n    })\r\n    ApiInfo subSaveApi = new ApiInfo()\r\n    subSaveApi.setName(\"保存\")\r\n    subSaveApi.setPath(\"/save\")\r\n    subSaveApi.setMethod(\"POST\")\r\n    subSaveApi.setGroupId(subGroup.getId())\r\n    subSaveApi.setScript(`return db.insert(\"\"\"insert into ${subTableName}(${subPrimary},${subListFields}) values (uuid() ${insertSubFields})\"\"\")`)\r\n    // subSaveApi.setOption([new Option(\'wrap_request_parameter\', \'data\'), new Option(\'permission\', `${permissionPrefix}:save`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(subSaveApi)\r\n\r\n    // 修改\r\n    var updateSubFields = \'\';\r\n    subColumns.forEach(it => {\r\n        var field = it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()\r\n        updateSubFields += `?{body.${it.columnName}, ,${field} = #{body.${it.columnName}}}\\n`\r\n    })\r\n    ApiInfo subUpdateApi = new ApiInfo()\r\n    subUpdateApi.setName(\"修改\")\r\n    subUpdateApi.setPath(\"/update\")\r\n    subUpdateApi.setMethod(\"POST\")\r\n    subUpdateApi.setGroupId(subGroup.getId())\r\n    subUpdateApi.setScript(`return db.update(\"\"\"update ${subTableName} set \\n${subPrimary} = #{body.${subPrimary}}\\n ${updateSubFields} where ${subPrimary} = #{body.${subPrimary}}\"\"\")`)\r\n    // subUpdateApi.setOption([new Option(\'wrap_request_parameter\', \'data\'), new Option(\'permission\', `${permissionPrefix}:save`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(subUpdateApi)\r\n\r\n    // 删除\r\n    ApiInfo subDeleteApi = new ApiInfo()\r\n    subDeleteApi.setName(\"删除\")\r\n    subDeleteApi.setPath(\"/delete\")\r\n    subDeleteApi.setMethod(\"DELETE\")\r\n    subDeleteApi.setGroupId(subGroup.getId())\r\n    subDeleteApi.setScript(`return db${datasourceScript}.table(\'${subTableName}\')${subLogic}.where().eq(\'${subPrimary}\', ${subPrimaryLowerCamelCase}).delete()`)\r\n    // subDeleteApi.setOption([new Option(\'permission\', `${permissionPrefix}:delete`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(subDeleteApi)\r\n\r\n    var subSaveFields = subColumns.filter(it => it.save).map(it => it.columnName.replace(/([A-Z])/g,\"_$1\").toLowerCase()).join(\',\')\r\n    // 详情\r\n    ApiInfo subGetApi = new ApiInfo()\r\n    subGetApi.setName(\"详情\")\r\n    subGetApi.setPath(\"/get\")\r\n    subGetApi.setMethod(\"GET\")\r\n    subGetApi.setGroupId(subGroup.getId())\r\n    subGetApi.setScript(`return db${datasourceScript}.selectOne(\"\"\"select ${subPrimary},${subSaveFields} from ${subTableName} where ${subPrimary} = #{${subPrimaryLowerCamelCase}}\"\"\")`)\r\n    // subGetApi.setOption([new Option(\'permission\', `${permissionPrefix}:view`, \'允许拥有该权限的访问\')])\r\n    MagicResourceService.saveFile(subGetApi)\r\n}\r\n\r\nvar moduleGroup = getGroup(\'api\').moduleGroup\r\nreturn moduleGroup.id\r\n');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/新增接口.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"0631fbe5d71c4a6990dc45bbcadd35e5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"新增接口\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1706848294180,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO `sys_gen` (`id`, `interface_id`,`data_source`, `table_name`, `table_comment`, `columns`, `sub_table_name`, `sub_table_comment`, `sub_columns`, `info`, `update_time`, `create_time`) \r\n    VALUES (uuid(),#{interfaceId},#{dataSource},#{tableName},#{tableComment},#{columns},#{subTableName},#{sub_tableComment},#{subColumns},#{info},now(),now())\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/根据表查列.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"8a8899e6a39e442ca51d08db50067cc0\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"根据表查列\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1706848387714,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"columns\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.select(\"\"\"\r\n    SELECT column_name,column_comment,column_type,case when is_nullable = \'YES\' then 0 else 1 end required\r\n    FROM information_schema.COLUMNS \r\n    WHERE table_name = #{name}\r\n    AND column_name != \'id\'\r\n    AND table_schema = DATABASE()\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/接口生成/表列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"2274d01e99954f35bacde40c983db2f8\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"3766b233e65047908e6ade58f6a91cef\",\r\n  \"name\" : \"表列表\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1706843981698,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"tables\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : null,\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.select(\"\"\"\r\n    select table_schema,table_name,table_comment \r\n    from information_schema.tables \r\n    where table_schema = #{name}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"页面管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"fc09d5b985f44120956d5d4f9fbd3658\",\r\n  \"path\" : \"lcPages\",\r\n  \"createTime\" : 1688627828384,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"a3ec119d481146d8940e01a203a733a1\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : 1688627828389,\r\n  \"updateTime\" : 1688517368338,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO lc_pages(`id`, `title`, `subtitle`, `parent_id`, `pageschema`, `status`, `creator_id`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (uuid(), #{body.title},#{body.subtitle},#{body.parentId},#{body.pageschema},0,#{body.creatorId},now(),now(),#{body.remarks})\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"b63cac7294f94a74bdf5794f88679780\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : 1688627828392,\r\n  \"updateTime\" : 1688517381359,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.update(\"\"\"\r\n    update lc_pages set \r\n    update_time = now()\r\n    ?{body.title, ,`title` = #{body.title}}\r\n    ?{body.subtitle, ,`subtitle` = #{body.subtitle}}\r\n    ?{body.pageschema, ,`pageschema` = #{body.pageschema}}\r\n    ?{body.status, ,`status` = #{body.status}}\r\n    ?{body.parentId, ,`parent_id` = #{body.parentId}}\r\n    ?{body.creatorId, ,`creator_id` = #{body.creatorId}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/分页.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"0b62bb303bc9442f8b0a9b0757d62c8c\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"分页\",\r\n  \"createTime\" : 1688627828395,\r\n  \"updateTime\" : 1688517369926,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"page\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar list = db.page(\"\"\"\r\n    select p.*,GROUP_CONCAT(menu_id) as menu_ids\r\n    from lc_pages p\r\n    left join lc_pages_menu m on m.pages_id = p.id\r\n    where 1 = 1\r\n    ?{status != null, and status = #{status}}\r\n    ?{parentId, and parent_id = #{parentId}}\r\n    ?{creatorId, and creator_id = #{creatorId}}\r\n    ?{title, and title = #{title}}\r\n    GROUP BY p.id\r\n    order by update_time desc\r\n\"\"\")\r\nreturn list');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"2bfd044cf07f42b4a9c1ce7402b8de4e\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : 1688627828397,\r\n  \"updateTime\" : 1688517379847,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"lc_pages\").where().eq(\"id\", id).delete()\r\n    db.table(\"lc_pages_menu\").where().eq(\"pages_id\", id).delete()\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/批量删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"33fbeebccb774feaba2e5276843658e5\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"批量删除\",\r\n  \"createTime\" : 1688627828399,\r\n  \"updateTime\" : 1688517378271,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"batchDelete\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    for(item in body.ids){\r\n        db.table(\"lc_pages\").where().eq(\"id\", item).delete()\r\n        db.table(\"lc_pages_menu\").where().eq(\"pages_id\", item).delete()\r\n    }\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/根据ID获取页面信息.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"c39d0fa055c848a4b073f604e9cac7b7\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"根据ID获取页面信息\",\r\n  \"createTime\" : 1688627828402,\r\n  \"updateTime\" : 1688517376767,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"get/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.table(\"lc_pages\").where().eq(\"id\",id).selectOne()');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/根据菜单ID获取页面信息.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ab48add7e308465fb5a77d7cb4c52218\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"根据菜单ID获取页面信息\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688697302675,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"pagesInfo/{menuId}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar info = db.selectOne(\"\"\"select * from lc_pages_menu where menu_id = #{menuId}\"\"\")\r\nif(info == null){\r\n     exit 500, \'该菜单未绑定页面!\'\r\n}\r\n\r\nreturn db.table(\"lc_pages\").where().eq(\"id\",info.pagesId).selectOne()');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/应用管理/页面管理/绑定菜单.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6e26766b5468454ea95c2d856d8fb45f\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"469af969df9e4fe4bf2c70a9608a517e\",\r\n  \"name\" : \"绑定菜单\",\r\n  \"createTime\" : 1688627828409,\r\n  \"updateTime\" : 1688517366542,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"bindMenu\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"lc_pages_menu\").where().eq(\"pages_id\", body.id).delete()\r\n    if(body.menuIds){\r\n        for(item in body.menuIds){\r\n            db.table(\"lc_pages_menu\").where().eq(\"menu_id\", item).delete()\r\n            db.insert(\"\"\"insert into lc_pages_menu(pages_id,menu_id)values(#{body.id},#{item})\"\"\")\r\n        }\r\n    }\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"da560e6b25b844519c3ac1c34112e298\",\r\n  \"name\" : \"系统监控\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"monitor\",\r\n  \"createTime\" : 1688700280021,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/在线用户.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"b2cd6dc8ddc84ec6bb3b66b9ee4ebee3\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"da560e6b25b844519c3ac1c34112e298\",\r\n  \"name\" : \"在线用户\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1708933795963,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"onlineUser\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.dev33.satoken.stp.StpUtil;\r\nimport log;\r\n\r\nvar tokens = StpUtil.searchTokenValue(\"\", 0, -1, true).map(item => {return item.substring(item.lastIndexOf(\':\')+1,item.length())});\r\nlog.info(\"{}\",tokens)\r\nreturn db.page(\"\"\"\r\n    select * from sys_login_log\r\n    where token in (#{tokens})\r\n    ?{username, and username like concat(\'%\', #{username}, \'%\')}\r\n    ?{ip, and ip like concat(\'%\', #{ip}, \'%\')}\r\n    order by create_time desc\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/操作日志.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"a890089249404ace83909a07caf072b4\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"da560e6b25b844519c3ac1c34112e298\",\r\n  \"name\" : \"操作日志\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688701069367,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"operLog\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.page(\"\"\"\r\n    select * from sys_oper_log\r\n    where 1 = 1\r\n    ?{username, and user_name like concat(\'%\', #{username}, \'%\')}\r\n    ?{ip, and ip like concat(\'%\', #{ip}, \'%\')}\r\n    order by create_time desc\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/登录日志.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"bc0e3bef99ef41698c8a6157898d0869\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"da560e6b25b844519c3ac1c34112e298\",\r\n  \"name\" : \"登录日志\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688700847430,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"loginLog\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.page(\"\"\"\r\n    select * from sys_login_log\r\n    where 1 = 1\r\n    ?{username, and username like concat(\'%\', #{username}, \'%\')}\r\n    ?{ip, and ip like concat(\'%\', #{ip}, \'%\')}\r\n    order by create_time desc\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统监控/踢人.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"d52169146d8941139854d462852e4e2e\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"da560e6b25b844519c3ac1c34112e298\",\r\n  \"name\" : \"踢人\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688701260804,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"kick/{kick}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\n\r\nreturn StpUtil.logoutByTokenValue(token);');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"name\" : \"系统管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"0\",\r\n  \"path\" : \"/system\",\r\n  \"createTime\" : 1688627065391,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"字典管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"dict\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688694277933,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"fd2d0d2447754c18ba57c68e8402647c\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : 1688627065458,\r\n  \"updateTime\" : 1688517335971,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO sys_dict(`id`, `parent_id`, `group_name`, `type`, `dic_value`, `dic_label`, `sort`, `text1`, `text2`, `text3`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (uuid(), #{body.parentId},#{body.groupName},#{body.type},#{body.dicValue},#{body.dicLabel},#{body.sort},#{body.text1},#{body.text2},#{body.text3},now(),now(),#{body.remarks})\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"35c262b4bd4e4cd29c3f852e5d487cbd\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : 1688627065461,\r\n  \"updateTime\" : 1688517341169,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.update(\"\"\"\r\n    update sys_dict set \r\n    update_time = now()\r\n    ?{body.parentId, ,`parent_id` = #{body.parentId}}\r\n    ?{body.groupNme, ,`group_name` = #{body.groupName}}\r\n    ?{body.type, ,`type` = #{body.type}}\r\n    ?{body.dicValue, ,`dic_value` = #{body.dicValue}}\r\n    ?{body.dicLabel, ,`dic_label` = #{body.dicLabel}}\r\n    ?{body.sort, ,`sort` = #{body.sort}}\r\n    ?{body.text1, ,`text1` = #{body.text1}}\r\n    ?{body.text2, ,`text2` = #{body.text2}}\r\n    ?{body.text3, ,`text3` = #{body.text3}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"42c28b72bc3e4560b407282a40737ba9\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"列表\",\r\n  \"createTime\" : 1688627065464,\r\n  \"updateTime\" : 1688517337704,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"list\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.select(\"\"\"\r\n    select d.* \r\n    from sys_dict d\r\n    where 1 = 1\r\n    ?{parentId, and parent_id = #{parentId}}\r\n    ?{groupName, and group_name = #{groupName}}\r\n    ?{dicValue, and dic_value = #{dicValue}}\r\n    order by sort\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"4c658ae507574ce9a0503ac8fea346ae\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : 1688627065467,\r\n  \"updateTime\" : 1688517339291,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    var list = db.select(\"\"\"\r\n        with recursive t as (	\r\n            select id from sys_dict where id = #{id}\r\n            union all\r\n            select a.id from sys_dict a \r\n            join t on a.parent_id = t.id\r\n        )\r\n        select id from t\r\n    \"\"\")\r\n\r\n    for(item in list){\r\n        db.table(\"sys_dict\").where().eq(\"id\", item.id).delete()\r\n    }\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/字典管理/字典树.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"45ee381e52c64cc9ad8263b1dfbe6709\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"79b4851948504948ad76ca5310c94bfd\",\r\n  \"name\" : \"字典树\",\r\n  \"createTime\" : 1688627065470,\r\n  \"updateTime\" : 1688517343301,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"tree\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar list = db.select(\"\"\"\r\n    select d.* \r\n    from sys_dict d\r\n    where 1 = 1\r\n    ?{parentId, and parent_id = #{parentId}}\r\n    ?{groupName, and group_name = #{groupName}}\r\n    ?{dicValue, and dic_value = #{dicValue}}\r\n    order by sort\r\n\"\"\")\r\n\r\nif (list.length == 1) {\r\n    return list;\r\n}\r\nlist.filter(item => {\r\n    var arr = list.filter(child => item.id == child.parentId);\r\n    arr.length > 0 ? (item.children = arr) : false;\r\n    return item.parentId == 0;\r\n})\r\n\r\nreturn list.filter(item => item.parentId == 0);');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"1e5946084f1b47b5aea7fb8b2829c2cd\",\r\n  \"name\" : \"安全\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"auth\",\r\n  \"createTime\" : 1688628736494,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/登出.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"80444160d7dd4f59991a792b1dafd4ab\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1e5946084f1b47b5aea7fb8b2829c2cd\",\r\n  \"name\" : \"登出\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688634354515,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"logout\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\nStpUtil.logout();\r\nexit 200');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/登录.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"60a768ae9748403dbcdf07e598511aa8\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1e5946084f1b47b5aea7fb8b2829c2cd\",\r\n  \"name\" : \"登录\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688718639967,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"login\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ {\r\n    \"name\" : \"require_login\",\r\n    \"value\" : \"false\",\r\n    \"description\" : \"该接口需要登录才允许访问\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.dev33.satoken.stp.StpUtil;\r\nimport cn.hutool.http.useragent.UserAgentUtil;\r\nimport cn.hutool.http.useragent.UserAgent;\r\nimport com.tansci.utils.Sha256Util;\r\nimport com.tansci.utils.SystemUtils;\r\nimport com.tansci.model.CodeCacheMap;\r\nimport request;\r\n\r\nUserAgent ua = UserAgentUtil.parse(request.getHeaders(\"User-Agent\")[0])\r\n// 判断验证码\r\nif(!body.code || CodeCacheMap.get(body.code) != body.code){\r\n    exit 0, \'验证码有误，请重新获取！\'\r\n}\r\nCodeCacheMap.remove(body.code)\r\n\r\nvar user = db.table(\"sys_user\").where().eq(\"username\",body.username).selectOne();\r\nvar log = {\r\n    username: body.username,\r\n    type: \'成功\',\r\n    ip: request.getClientIP(),\r\n    browser: ua.getBrowser().toString(),\r\n    os: ua.getOs().toString(),\r\n    address: SystemUtils.getAddress(request.getClientIP()),\r\n    message: \'成功\'\r\n}\r\n\r\nif(!user || user.password != Sha256Util.getSHA256(body.password)){\r\n    log.failPassword = [REDACTED]    log.type = \'失败\'\r\n    log.message = \'用户名或密码错误\'\r\n    db.insert(\"\"\"\r\n        insert into sys_login_log(id,username,fail_password,type,browser,os,address,ip,message,create_time) values \r\n        (uuid(),#{log.username},#{log.failPassword},#{log.type},#{log.browser},#{log.os},#{log.address},#{log.ip},#{log.message},now())\r\n    \"\"\")    \r\n    exit 0,\'用户名或密码错误!\'\r\n}\r\n\r\nif(user.isLogin == 1){\r\n    log.type = \"失败\"\r\n    log.message = \"该账号已被禁用\"\r\n    db.insert(\"\"\"\r\n        insert into sys_login_log(id,username,fail_password,type,browser,os,address,ip,message,create_time) values \r\n        (uuid(),#{log.username},#{log.failPassword},#{log.type},#{log.browser},#{log.os},#{log.address},#{log.ip},#{log.message},now())\r\n    \"\"\")\r\n    exit 0,\'该账号已被禁用!\'\r\n}\r\n\r\nStpUtil.login(user.id)\r\nvar token = StpUtil.getTokenValueByLoginId(user.id)\r\nlog.token = token\r\ndb.insert(\"\"\"\r\n    insert into sys_login_log(id,username,fail_password,type,browser,os,address,ip,token,message,create_time) values \r\n    (uuid(),#{log.username},#{log.failPassword},#{log.type},#{log.browser},#{log.os},#{log.address},#{log.ip},#{log.token},#{log.message},now())\r\n\"\"\")\r\nreturn StpUtil.getTokenValueByLoginId(user.id)');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/获取当前用户权限.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"7a1ae4380b62499b83b68312f821e8ef\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1e5946084f1b47b5aea7fb8b2829c2cd\",\r\n  \"name\" : \"获取当前用户权限\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688712188050,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"permissions\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : null,\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\n\r\nvar userId = StpUtil.getLoginId()\r\nreturn db.select(\"\"\"\r\n    select DISTINCT m.permission \r\n    from sys_menu m\r\n    left join sys_role_menu rm on rm.menu_id = m.id\r\n    left join sys_user_role ur on ur.role_id = rm.role_id \r\n    where m.is_del = 0\r\n    and m.permission != \'\'\r\n    and m.permission IS NOT NULL\r\n    ?{userId && userId != \'1\', and ur.user_id = #{userId}}\r\n\"\"\").map((it) => {return it.permission})');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/安全/获取验证码.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f1a4ad9f555c43d487773c175fbe5b9f\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"1e5946084f1b47b5aea7fb8b2829c2cd\",\r\n  \"name\" : \"获取验证码\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1708928493064,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"code\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ {\r\n    \"name\" : \"require_login\",\r\n    \"value\" : \"false\",\r\n    \"description\" : \"该接口需要登录才允许访问\",\r\n    \"required\" : false,\r\n    \"dataType\" : \"String\",\r\n    \"type\" : null,\r\n    \"defaultValue\" : null,\r\n    \"validateType\" : null,\r\n    \"error\" : null,\r\n    \"expression\" : null,\r\n    \"children\" : null\r\n  } ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : \"{\\n    \\\"code\\\": 500,\\n    \\\"message\\\": \\\"系统内部出现错误\\\",\\n    \\\"result\\\": null\\n}\",\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\n// 纯数字\r\nimport cn.hutool.captcha.CaptchaUtil;\r\nimport cn.hutool.captcha.LineCaptcha;\r\nimport cn.hutool.captcha.generator.RandomGenerator;\r\nimport java.io.ByteArrayOutputStream;\r\nimport java.io.OutputStream;\r\nimport com.tansci.model.CodeCacheMap;\r\n\r\nvar lineCaptcha = CaptchaUtil.createLineCaptcha(100, 60);\r\nlineCaptcha.setGenerator(new RandomGenerator(\"0123456789\", 4));\r\nCodeCacheMap.put(lineCaptcha.getCode(),lineCaptcha.getCode())\r\n\r\nOutputStream bOut = new ByteArrayOutputStream();\r\nlineCaptcha.write(bOut)\r\nreturn bOut.toByteArray()\r\n\r\n// 数字字母组合\r\n// import cn.hutool.captcha.CaptchaUtil;\r\n// import cn.hutool.captcha.LineCaptcha;\r\n// import java.io.ByteArrayOutputStream;\r\n// import java.io.OutputStream;\r\n// import com.tansci.model.CodeCacheMap;\r\n\r\n// var lineCaptcha = CaptchaUtil.createLineCaptcha(100, 60);\r\n// CodeCacheMap.put(lineCaptcha.getCode(),lineCaptcha.getCode())\r\n\r\n// OutputStream bOut = new ByteArrayOutputStream();\r\n// lineCaptcha.write(bOut)\r\n// return bOut.toByteArray()');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"用户管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"user\",\r\n  \"createTime\" : 1688627065423,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"6bdc64e2ac314291a4c6ee857edeb458\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1708659604274,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport com.tansci.utils.Sha256Util;\r\n\r\nvar count = db.selectInt(\"\"\"select count(*) from sys_user where username = #{body.username}\"\"\")\r\nif(count > 0){\r\n    exit 500, \'用户名称已存在！\'\r\n}\r\n\r\nvar id = uuid();\r\nvar password = [REDACTED] row = db.insert(\"\"\"\r\n    INSERT INTO sys_user(`id`, `username`, `password`, `nickname`, `type`, `phone`,`avatar`,`gender`,`birthday`,`address`,`email`, `is_del`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (#{id}, #{body.username},#{password},#{body.nickname},#{body.type},#{body.phone},#{body.avatar},#{body.gender},#{body.birthday},#{body.address},#{body.email},0,now(),now(),#{body.remarks})\r\n\"\"\")\r\n\r\ndb.insert(\"\"\"insert into sys_user_role(user_id,role_id)values(#{id},#{body.roleId})\"\"\")\r\n\r\nreturn row');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"064dd0495efd4c3999e3236cd8f1f94b\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688699586759,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar row = db.update(\"\"\"\r\n    update sys_user set \r\n    update_time = now()\r\n    ?{body.nickname, ,`nickname` = #{body.nickname}}\r\n    ?{body.type, ,`type` = #{body.type}}\r\n    ?{body.phone, ,`phone` = #{body.phone}}\r\n    ?{body.avatar, ,`avatar` = #{body.avatar}}\r\n    ?{body.gender, ,`gender` = #{body.gender}}\r\n    ?{body.birthday, ,`birthday` = #{body.birthday}}\r\n    ?{body.address, ,`address` = #{body.address}}\r\n    ?{body.email, ,`email` = #{body.email}}\r\n    ?{body.isDel != null, ,`is_del` = #{body.isDel}}\r\n    ?{body.isLogin != null, ,`is_login` = #{body.isLogin}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")\r\n\r\nif(body.roleId != null){\r\n    db.update(\"\"\"update sys_user_role set role_id = #{body.roleId} where user_id = #{body.id}\"\"\")\r\n}\r\n\r\nreturn row;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/分页.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"396c586ab1a74de6aad78a0549d57952\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"分页\",\r\n  \"createTime\" : 1688627065485,\r\n  \"updateTime\" : 1688517327728,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"page\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.page(\"\"\"\r\n    select u.*,ur.role_id\r\n    from sys_user u\r\n    left join sys_user_role ur on ur.user_id = u.id\r\n    where is_del = 0\r\n    ?{username , and username = #{username}}\r\n    ?{status != null , and status = #{status}}\r\n    ?{phone , and phone = #{phone}}\r\n    ?{name , and name like concat(\'%\',#{name},\'%\')}\r\n    order by update_time desc \r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"b2c3b55a5a2e4a23bfc7af17e6143b8f\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"列表\",\r\n  \"createTime\" : 1688627065488,\r\n  \"updateTime\" : 1688690611112,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"list\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.select(\"\"\"\r\n    select * from sys_user\r\n    where is_del = 0\r\n    ?{username , and username = #{username}}\r\n    ?{status != null , and status = #{status}}\r\n    ?{phone , and phone = #{phone}}\r\n    ?{name , and name like concat(\'%\',#{name},\'%\')}\r\n    order by update_time desc \r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"8370e79fd2694d5f86085f0bd7a0efe8\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : 1688627065491,\r\n  \"updateTime\" : 1688517330950,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"sys_user\").where().eq(\"id\", id).delete()\r\n    db.table(\"sys_user_role\").where().eq(\"user_id\", id).delete()\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/用户管理/详情.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"01cc62375d6c4a86b050d64e60cf5872\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"fc83134da85f4beaa18511d00d4ff661\",\r\n  \"name\" : \"详情\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688720745924,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"info\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport cn.dev33.satoken.stp.StpUtil;\r\n\r\nvar userId = StpUtil.getLoginId();\r\nvar user = db.table(\"sys_user\").where().eq(\"id\", userId).selectOne();\r\nuser.authorities = db.select(\"\"\"\r\n    select DISTINCT m.permission \r\n    from sys_menu m\r\n    left join sys_role_menu rm on rm.menu_id = m.id\r\n    left join sys_user_role ur on ur.role_id = rm.role_id \r\n    where m.is_del = 0\r\n    and m.permission != \'\'\r\n    and m.permission IS NOT NULL\r\n    ?{userId && userId != \'1\', and ur.user_id = #{userId}}\r\n\"\"\").map((it) => {return it.permission})\r\nreturn user;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"125a5f6a629d4afdbeca4cd45d3457fe\",\r\n  \"name\" : \"组织管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"org\",\r\n  \"createTime\" : 1688627065434,\r\n  \"updateTime\" : 1688634824150,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"ffb91faa7d574362ab4e6caf5ee5ea59\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"125a5f6a629d4afdbeca4cd45d3457fe\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688690620885,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar code = uuid().substring(10)\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO sys_org(`id`, `parent_id`, `name`, `code`, `sort`, `is_del`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (uuid(), #{body.parentId},#{body.name},#{code},#{body.sort},0,now(),now(),#{body.remarks})\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"3f8916b149cb447688ae10594819b807\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"125a5f6a629d4afdbeca4cd45d3457fe\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688690626789,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.update(\"\"\"\r\n    update sys_org set \r\n    update_time = now()\r\n    ?{body.parentId, ,`parent_id` = #{body.parentId}}\r\n    ?{body.name, ,`name` = #{body.name}}\r\n    ?{body.code, ,`code` = #{body.code}}\r\n    ?{body.sort, ,`sort` = #{body.sort}}\r\n    ?{body.is_del, ,`is_del` = #{body.is_del}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"fcec72133bc249cd8174de03e9e393ed\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"125a5f6a629d4afdbeca4cd45d3457fe\",\r\n  \"name\" : \"列表\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688700062821,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"list\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\n\r\nvar userId = StpUtil.getLoginId();\r\n\r\nvar list = db.select(\"\"\"\r\n    select DISTINCT * from (\r\n        with recursive t as (	\r\n            select * from sys_org \r\n            where 1 = 1\r\n            ?{userId && userId != 1, and id = (\r\n                    select ro.org_id\r\n                    from sys_user u\r\n                    left join sys_user_role ur on u.id = ur.user_id\r\n                    left join sys_role_org ro on ur.role_id = ro.role_id \r\n                    where u.id = #{userId}\r\n                )\r\n            }\r\n            union all\r\n            select a.* from sys_org a \r\n            join t on a.parent_id = t.id\r\n        )\r\n        select t.* from t\r\n    ) o\r\n\"\"\")\r\n\r\nif (list.length == 1) {\r\n    return list;\r\n}\r\nlist.filter(item => {\r\n    var arr = list.filter(child => item.id == child.parentId);\r\n    arr.length > 0 ? (item.children = arr) : false;\r\n    return item.parentId == 0;\r\n})\r\n\r\nreturn list.filter(item => item.parentId == 0);');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/组织管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"9bf5a6729ad345b1b79eddd263dc84af\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"125a5f6a629d4afdbeca4cd45d3457fe\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688690624815,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    var list = db.select(\"\"\"\r\n        with recursive t as (	\r\n            select id from sys_org where id = #{id}\r\n            union all\r\n            select a.id from sys_org a \r\n            join t on a.parent_id = t.id\r\n        )\r\n        select id from t\r\n    \"\"\")\r\n\r\n    for(item in list){\r\n        db.table(\"sys_org\").where().eq(\"id\", item.id).delete()\r\n    }\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"菜单管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"/menu\",\r\n  \"createTime\" : 1688627065445,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"cb156d8c8c38401eb8405ddb80de2d30\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : 1688627065511,\r\n  \"updateTime\" : 1688517299257,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO sys_menu(`id`, `parent_id`, `name`, `url`, `icon`, `chinese_name`, `english_name`, `permission`, `sort`, `component`, `component_type`, `open_mode`, `is_del`, `keep_alive`, `is_show`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (uuid(), #{body.parentId},#{body.name},#{body.url},#{body.icon},#{body.chineseName},#{body.englishName},#{body.permission},#{body.sort},#{body.component},#{body.componentType},#{body.openMode},0,#{body.keepAlive},#{body.isShow},now(),now(),#{body.remarks})\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"30ec3c62eca74e5695f2f96ddd6c1e10\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1708928338654,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.update(\"\"\"\r\n    update sys_menu set \r\n    update_time = now()\r\n    ?{body.parentId, ,`parent_id` = #{body.parentId}}\r\n    ?{body.name, ,`name` = #{body.name}}\r\n    ?{body.url, ,`url` = #{body.url}}\r\n    ?{body.icon, ,`icon` = #{body.icon}}\r\n    ?{body.chineseName, ,`chinese_name` = #{body.chineseName}}\r\n    ?{body.englishName, ,`english_name` = #{body.englishName}}\r\n    ?{body.permission, ,`permission` = #{body.permission}}\r\n    ?{body.sort != null, ,`sort` = #{body.sort}}\r\n    ?{body.component, ,`component` = #{body.component}}\r\n    ?{body.componentType != null, ,`component_type` = #{body.componentType}}\r\n    ?{body.openMode != null, ,`open_mode` = #{body.openMode}}\r\n    ?{body.isDel != null, ,`is_del` = #{body.isDel}}\r\n    ?{body.keepAlive != null, ,`keep_alive` = #{body.keepAlive}}\r\n    ?{body.isShow != null, ,`is_show` = #{body.isShow}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"26ff3d166de34575a3bf6d41465c80e7\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : 1688627065524,\r\n  \"updateTime\" : 1688517304774,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    var list = db.select(\"\"\"\r\n        with recursive t as (	\r\n            select id from sys_menu where id = #{id}\r\n            union all\r\n            select a.id from sys_menu a \r\n            join t on a.parent_id = t.id\r\n        )\r\n        select id from t\r\n    \"\"\")\r\n\r\n    for(item in list){\r\n        db.table(\"sys_menu\").where().eq(\"id\", item.id).delete()\r\n        db.table(\"sys_role_menu\").where().eq(\"menu_id\", item.id)\r\n    }\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/菜单树.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f90132707c3e401c926eaf2ada6ec81a\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"菜单树\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688721005404,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"tree\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\n\r\nvar userId = StpUtil.getLoginId();\r\n\r\nvar menus = db.select(\"\"\"\r\n    select m.* \r\n    from sys_menu m\r\n    where m.is_del = 0\r\n    ?{isShow  != null, and m.is_show = #{isShow}}\r\n    ?{userId && userId != 1, and m.id in (\r\n        select rm.menu_id \r\n        from sys_role_menu rm\r\n        left join sys_user_role ur on ur.role_id = rm.role_id\r\n        where ur.user_id = #{userId})\r\n    }\r\n    order by sort asc\r\n\"\"\")\r\n\r\nif (menus.length == 1) {\r\n    return menus;\r\n}\r\nmenus.filter(item => {\r\n    var arr = menus.filter(child => item.id == child.parentId);\r\n    arr.length > 0 ? (item.children = arr) : false;\r\n    return item.parentId == 0;\r\n})\r\n\r\nreturn menus.filter(item => item.parentId == 0);');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/菜单管理/菜单路由.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"62020bd7a49949378e90ce2d14fef8f7\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"67b2ce258e24491194b74992958c74aa\",\r\n  \"name\" : \"菜单路由\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1689229170425,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"menus\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'cn.dev33.satoken.stp.StpUtil\';\r\n\r\nvar userId = StpUtil.getLoginId();\r\n\r\nvar list = db.select(\"\"\"\r\n    select m.* \r\n    from sys_menu m\r\n    where m.is_del = 0\r\n    and m.is_show = 1\r\n    ?{userId && userId != 1, and m.id in (\r\n        select rm.menu_id \r\n        from sys_role_menu rm\r\n        left join sys_user_role ur on ur.role_id = rm.role_id\r\n        where ur.user_id = #{userId})\r\n    }\r\n    order by sort asc\r\n\"\"\")\r\n\r\nvar menus = []\r\nlist.each(item => {\r\n    menus.push({\r\n        id: item.id,\r\n        parentId: item.parentId,\r\n        path: item.url,\r\n        name: item.name,\r\n        icon: item.icon,\r\n        sort: item.sort,\r\n        component: item.component == null || item.component == \'\' ? \"Layout\" : item.component,\r\n        componentType: item.componentType,\r\n        isShow: item.isShow,\r\n        meta: {\r\n            title: item.chineseName,\r\n            keepAlive: item.keepAlive,\r\n            isShow: item.isShow,\r\n            id: item.id,\r\n            openMode: item.openMode,\r\n            type: item.componentType,\r\n        }\r\n    })\r\n})\r\n\r\nif (menus.length == 1) {\r\n    return menus;\r\n}\r\nmenus.filter(item => {\r\n    var arr = menus.filter(child => item.id == child.parentId);\r\n    arr.length > 0 ? (item.children = arr) : false;\r\n    return item.parentId == 0;\r\n})\r\n\r\nvar _menus = menus.filter(item => item.parentId == 0);\r\n_menus.each(item=>{\r\n    if(!item.children){\r\n        item.children = [{\r\n            id: item.id,\r\n            parentId: item.parentId,\r\n            path: item.path,\r\n            name: item.name,\r\n            icon: item.icon,\r\n            sort: item.sort,\r\n            component: item.component,\r\n            componentType: item.componentType,\r\n            isShow: item.isShow,\r\n            meta: item.meta\r\n        }]\r\n        item.componentType = 0;\r\n    }\r\n})\r\n\r\n\r\nreturn _menus;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/group.json', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"角色管理\",\r\n  \"type\" : \"api\",\r\n  \"parentId\" : \"acff5ad7aae64de2acb03e1d16a58ce2\",\r\n  \"path\" : \"role\",\r\n  \"createTime\" : 1688627065453,\r\n  \"updateTime\" : null,\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"paths\" : [ ],\r\n  \"options\" : [ ]\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/保存.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"963fbdab7f1e4c5482d94467994e076b\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"保存\",\r\n  \"createTime\" : 1688627065553,\r\n  \"updateTime\" : 1688517313199,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"save\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar code = uuid().substring(0,10)\r\nreturn db.insert(\"\"\"\r\n    INSERT INTO sys_role(`id`, `name`, `code`, `permission`, `sort`, `is_del`, `creator`, `update_time`, `create_time`, `remarks`) \r\n    VALUES \r\n    (uuid(), #{body.name},#{code},#{body.permission},#{body.sort},0,#{body.creator},now(),now(),#{body.remarks})\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/修改.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"62c0822e34124adcb52c79d9f2e128f3\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"修改\",\r\n  \"createTime\" : 1688627065559,\r\n  \"updateTime\" : 1688517323756,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"update\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.update(\"\"\"\r\n    update sys_role set \r\n    update_time = now()\r\n    ?{body.name, ,`name` = #{body.name}}\r\n    ?{body.code, ,`code` = #{body.code}}\r\n    ?{body.sort, ,`sort` = #{body.sort}}\r\n    ?{body.is_del, ,`is_del` = #{body.is_del}}\r\n    ?{body.permission, ,`permission` = #{body.permission}}\r\n    ?{body.remarks, ,`remarks` = #{body.remarks}}\r\n    where id = #{body.id}\r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/分页.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"d8a1114e2da54d7c857d4c54d5bc5880\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"分页\",\r\n  \"createTime\" : 1688627065564,\r\n  \"updateTime\" : 1688517316978,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"page\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.page(\"\"\"\r\n    select * from sys_role\r\n    where is_del = 0\r\n    ?{code , and code = #{code}}\r\n    ?{name , and name like concat(\'%\',#{name},\'%\')}\r\n    order by sort \r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/列表.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"71851668125c451f9e322f0c5f7828a8\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"列表\",\r\n  \"createTime\" : 1688627065570,\r\n  \"updateTime\" : 1688517320177,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"list\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nreturn db.select(\"\"\"\r\n    select * from sys_role\r\n    where is_del = 0\r\n    ?{code , and code = #{code}}\r\n    ?{name , and name like concat(\'%\',#{name},\'%\')}\r\n    order by sort \r\n\"\"\")');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/删除.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"f3450863db7c4600b8fb199e5c07eaec\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"删除\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688698546137,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"delete/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"sys_role\").where().eq(\"id\", id).delete()\r\n    db.table(\"sys_role_menu\").where().eq(\"role_id\", id).delete()\r\n    db.table(\"sys_user_role\").where().eq(\"role_id\", id).delete()\r\n    db.table(\"sys_user_org\").where().eq(\"role_id\", id).delete()\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/数据权限.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"06ca5c4e8ce04fbc85bece6274208bec\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"数据权限\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688698471253,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"dataPermissions\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"sys_role_org\").where().eq(\"role_id\", body.id).delete()\r\n\r\n    for(item in body.orgIds){\r\n        db.insert(\"\"\"INSERT INTO sys_role_org (role_id,org_id) VALUES (#{body.id}, #{item})\"\"\")\r\n    }\r\n\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/获取权限组织.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"9ea9a1c0a8a24a6e9e9b584c87d94a28\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"获取权限组织\",\r\n  \"createTime\" : null,\r\n  \"updateTime\" : 1688698474013,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : null,\r\n  \"path\" : \"orgList/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@get:/system/org/list\' as getOrg;\r\n\r\nvar list = db.select(\"\"\"select * from sys_role_org where role_id = #{id}\"\"\");\r\nvar selected = list.map((item) =>{\r\n    return item.orgId\r\n})\r\nreturn {\r\n    list: getOrg(),\r\n    selected: selected\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/获取权限菜单.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"95c1495b484e4f06ab5f1399e45fb643\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"获取权限菜单\",\r\n  \"createTime\" : 1688627065578,\r\n  \"updateTime\" : 1688517318645,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"menuList/{id}\",\r\n  \"method\" : \"GET\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nimport \'@get:/system/menu/tree\' as getTree;\r\n\r\nvar list = db.select(\"\"\"select * from sys_role_menu where role_id = #{id}\"\"\");\r\n\r\nvar ids = list.map((item) =>{\r\n    return item.menuId\r\n})\r\n\r\nreturn {\r\n    list: getTree(),\r\n    selected: ids\r\n}');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/api/系统管理/角色管理/菜单权限.ms', '{\r\n  \"properties\" : { },\r\n  \"id\" : \"e6b1376d15e44edea70becac58caeb35\",\r\n  \"script\" : null,\r\n  \"groupId\" : \"e3e7b79651ef4023bf808869bda70162\",\r\n  \"name\" : \"菜单权限\",\r\n  \"createTime\" : 1688627065583,\r\n  \"updateTime\" : 1688517315336,\r\n  \"lock\" : \"1\",\r\n  \"createBy\" : null,\r\n  \"updateBy\" : \"admin\",\r\n  \"path\" : \"menuPermissions\",\r\n  \"method\" : \"POST\",\r\n  \"parameters\" : [ ],\r\n  \"options\" : [ ],\r\n  \"requestBody\" : \"\",\r\n  \"headers\" : [ ],\r\n  \"paths\" : [ ],\r\n  \"responseBody\" : null,\r\n  \"description\" : null,\r\n  \"requestBodyDefinition\" : null,\r\n  \"responseBodyDefinition\" : null\r\n}\r\n================================\r\nvar val = db.transaction(()=>{\r\n    db.table(\"sys_role_menu\").where().eq(\"role_id\", body.id).delete()\r\n\r\n    for(item in body.menuIds){\r\n        db.insert(\"\"\"INSERT INTO sys_role_menu (role_id,menu_id) VALUES (#{body.id}, #{item})\"\"\")\r\n    }\r\n\r\n    return \"OK\"\r\n});\r\n\r\nreturn val;');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/datasource/', 'this is directory');
INSERT INTO `magic_api_file` VALUES ('/tansci-api/function/', 'this is directory');

-- ----------------------------
-- Table structure for sys_dict
-- ----------------------------
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键id',
  `parent_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '父ID',
  `group_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '分组名称',
  `type` int NULL DEFAULT NULL COMMENT '类型：0、系统，1、业务',
  `dic_value` int NOT NULL COMMENT '值',
  `dic_label` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `text1` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预留字段1',
  `text2` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预留字段2',
  `text3` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '预留字段3',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`) USING BTREE,
  INDEX `group_name`(`group_name`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '字典表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_dict
-- ----------------------------
INSERT INTO `sys_dict` VALUES ('3048f7228cf80e7f366b60f7138ce1ef', '46de04fc892b613abe4a5ecb88f4cd47', 'oper_log_status', 1, 0, '成功', 1, NULL, NULL, NULL, '2023-04-14 14:41:26', '2023-04-14 10:36:18', '操作成功');
INSERT INTO `sys_dict` VALUES ('3292493cc1195fc6ad1934e19d4bab2f', '7afe0187e05ce3465c810a49331babc8', 'user_type', 1, 1, '管理员', 1, NULL, NULL, NULL, '2023-04-14 15:40:40', '2023-04-14 15:40:40', '管理员');
INSERT INTO `sys_dict` VALUES ('402ab9a354ff5f9de90adb9e9afb33fb', '0', 'user_gender', 1, -1, '用户性别', 0, NULL, NULL, NULL, '2023-04-14 15:39:38', '2023-04-14 15:39:38', '用户性别');
INSERT INTO `sys_dict` VALUES ('46de04fc892b613abe4a5ecb88f4cd47', '0', 'oper_log_status', 1, -1, '操作日志状态', 0, NULL, NULL, NULL, '2023-04-14 10:35:49', '2023-04-14 10:35:49', '操作日志状态');
INSERT INTO `sys_dict` VALUES ('504f58ac31fd50cd0f250d4bd165bf0b', '0', 'business_type', 0, -1, '业务类型', 0, NULL, NULL, NULL, '2023-04-14 15:34:37', '2023-04-14 15:34:37', '业务类型');
INSERT INTO `sys_dict` VALUES ('565a9c6f24904ec7a4f084fa96c5434b', '7afe0187e05ce3465c810a49331babc8', 'user_type', 1, 2, '普通用户', 2, NULL, NULL, NULL, '2023-04-14 15:41:07', '2023-04-14 15:41:07', '普通用户');
INSERT INTO `sys_dict` VALUES ('7afe0187e05ce3465c810a49331babc8', '0', 'user_type', 1, -1, '用户类型', 0, NULL, NULL, NULL, '2023-04-14 15:39:15', '2023-04-14 15:39:15', '用户类型');
INSERT INTO `sys_dict` VALUES ('ba3ed2cc3a8c450f8a150ee5bbb09abe', '46de04fc892b613abe4a5ecb88f4cd47', 'oper_log_status', 1, 1, '失败', 2, NULL, NULL, NULL, '2023-04-14 14:41:31', '2023-04-14 10:36:43', '操作失败');
INSERT INTO `sys_dict` VALUES ('bd4b42486c1b522b07cec0d870834952', '402ab9a354ff5f9de90adb9e9afb33fb', 'user_gender', 1, 1, '女', 2, NULL, NULL, NULL, '2023-04-14 15:41:57', '2023-04-14 15:41:57', '女');
INSERT INTO `sys_dict` VALUES ('c7d736d70f722d15bebe282f4bd317d5', '504f58ac31fd50cd0f250d4bd165bf0b', 'business_type', 0, 1, '业务', 1, NULL, NULL, NULL, '2023-04-14 15:35:36', '2023-04-14 15:35:36', '');
INSERT INTO `sys_dict` VALUES ('df5903139958429ed65ee82424d69b1b', '402ab9a354ff5f9de90adb9e9afb33fb', 'user_gender', 1, 0, '男', 1, NULL, NULL, NULL, '2023-04-14 15:41:44', '2023-04-14 15:40:09', '男');
INSERT INTO `sys_dict` VALUES ('f60b86ff25cc5261dafdffdf78b590db', '504f58ac31fd50cd0f250d4bd165bf0b', 'business_type', 0, 0, '系统', 1, NULL, NULL, NULL, '2023-04-14 15:35:23', '2023-04-14 15:35:23', '');

-- ----------------------------
-- Table structure for sys_gen
-- ----------------------------
DROP TABLE IF EXISTS `sys_gen`;
CREATE TABLE `sys_gen`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `interface_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '接口编码',
  `data_source` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT '' COMMENT '数据源',
  `table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表名',
  `table_comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '表注释',
  `columns` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '字段信息json',
  `sub_table_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '字表名称',
  `sub_table_comment` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '子表注释',
  `sub_columns` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '子表字段信息json',
  `info` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '生成信息json',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '生成表信息' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_gen
-- ----------------------------

-- ----------------------------
-- Table structure for sys_login_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_login_log`;
CREATE TABLE `sys_login_log`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `username` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '登录账号',
  `fail_password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失败密码',
  `type` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '登录类型（成功、失败）',
  `browser` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '浏览器',
  `os` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作系统',
  `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '地理位置',
  `ip` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'ip地址',
  `token` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT 'token',
  `message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '失败原因',
  `create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_login_log
-- ----------------------------
INSERT INTO `sys_login_log` VALUES ('02763ac6-d474-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '0ef66cb9-11b6-4a82-a20d-9105719a7afe', '成功', '2024-02-26 14:55:21');
INSERT INTO `sys_login_log` VALUES ('220e0f59-d474-11ee-b5ef-e0be038740d4', 'system', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', 'e72ad4ea-aa9e-440d-9257-6a56b845751e', '成功', '2024-02-26 14:56:14');
INSERT INTO `sys_login_log` VALUES ('5610976d-d46f-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '7e5530c9-dd73-4e92-9478-b9521a59b429', '成功', '2024-02-26 14:21:54');
INSERT INTO `sys_login_log` VALUES ('5770bd1e-d473-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '0ef66cb9-11b6-4a82-a20d-9105719a7afe', '成功', '2024-02-26 14:50:34');
INSERT INTO `sys_login_log` VALUES ('59297ca7-b0f5-11ee-8efe-e0be038740d4', 'admin', 'a123456', '失败', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', NULL, '用户名或密码错误', '2024-01-12 10:50:30');
INSERT INTO `sys_login_log` VALUES ('613e5529-b0f5-11ee-8efe-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '42cba51f-f0f5-424d-a026-8a0730ab3570', '成功', '2024-01-12 10:50:44');
INSERT INTO `sys_login_log` VALUES ('7c699c79-b0f7-11ee-8efe-e0be038740d4', 'admin', 'a123456', '失败', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', NULL, '用户名或密码错误', '2024-01-12 11:05:48');
INSERT INTO `sys_login_log` VALUES ('823be61c-d46f-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '0ef66cb9-11b6-4a82-a20d-9105719a7afe', '成功', '2024-02-26 14:23:08');
INSERT INTO `sys_login_log` VALUES ('83facdd3-b0f3-11ee-8efe-e0be038740d4', 'admin', 'a123456', '失败', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', NULL, '用户名或密码错误', '2024-01-12 10:37:23');
INSERT INTO `sys_login_log` VALUES ('8632b858-b0f7-11ee-8efe-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', 'ed4494a2-e3ff-404f-890f-72402811a9fa', '成功', '2024-01-12 11:06:04');
INSERT INTO `sys_login_log` VALUES ('8c1b8151-b0f3-11ee-8efe-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '42cba51f-f0f5-424d-a026-8a0730ab3570', '成功', '2024-01-12 10:37:36');
INSERT INTO `sys_login_log` VALUES ('9e1a8bff-d46e-11ee-b5ef-e0be038740d4', 'admin', 'a123456', '失败', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', NULL, '用户名或密码错误', '2024-02-26 14:16:45');
INSERT INTO `sys_login_log` VALUES ('a7892882-c169-11ee-a758-e0be038740d4', 'admin', 'a123456', '失败', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', NULL, '用户名或密码错误', '2024-02-02 09:23:22');
INSERT INTO `sys_login_log` VALUES ('a7a7a201-d46e-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '37df14fb-f977-45b2-ae24-2df05fcb7d17', '成功', '2024-02-26 14:17:01');
INSERT INTO `sys_login_log` VALUES ('af101cb1-c169-11ee-a758-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', 'dc093c65-9c6e-4bcb-95a2-9c152d77cb15', '成功', '2024-02-02 09:23:34');
INSERT INTO `sys_login_log` VALUES ('d551d072-d479-11ee-b5ef-e0be038740d4', 'system', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', 'e72ad4ea-aa9e-440d-9257-6a56b845751e', '成功', '2024-02-26 15:37:03');
INSERT INTO `sys_login_log` VALUES ('dfa1a423-d479-11ee-b5ef-e0be038740d4', 'admin', NULL, '成功', 'Chrome', 'Windows 10 or Windows Server 2016', '内网IP', '127.0.0.1', '0ef66cb9-11b6-4a82-a20d-9105719a7afe', '成功', '2024-02-26 15:37:20');

-- ----------------------------
-- Table structure for sys_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_menu`;
CREATE TABLE `sys_menu`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `parent_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '父id',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '菜单名称',
  `url` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '菜单链接',
  `icon` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '图标',
  `chinese_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '中文名称',
  `english_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '英文名称',
  `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '权限',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `component` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组件名称',
  `component_type` int NULL DEFAULT 0 COMMENT '组件类型：0、默认，1、amis',
  `open_mode` int NULL DEFAULT 0 COMMENT '打开方式：0、默认，1、iframe，2、新标签页',
  `is_del` int NULL DEFAULT 0 COMMENT '是否删除：0、未删除，1、已删除',
  `keep_alive` int NULL DEFAULT NULL COMMENT '是否缓存：0、不缓存，1、缓存',
  `is_show` int NULL DEFAULT NULL COMMENT '是否显示：1显示，0不显示',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '菜单表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_menu
-- ----------------------------
INSERT INTO `sys_menu` VALUES ('02470e78-c178-11ee-a758-e0be038740d4', 'b25838d6e06c6cdad82c1ad9b1096f26', 'codeGen', '/lowcode/CodeGen', 'FolderRemove', '接口生成', 'APIGeneration', NULL, 2, NULL, 0, 0, 0, 1, 1, '2024-02-02 11:06:07', '2024-02-02 11:06:07', '');
INSERT INTO `sys_menu` VALUES ('06936eec3258c1fa675c8b6b697160f5', '1ec1c1cb127d83f6346904220b3ed20b', '', '', '', '列表', '', 'dict:list', 0, '', 0, 0, 0, 0, 0, '2023-04-13 16:26:51', '2023-04-13 16:26:51', '');
INSERT INTO `sys_menu` VALUES ('07e1aebb5b69b55b7eb0ce79fed00f40', 'b1851d1b13594e71840103c11a37a004', '', '', '', '列表', '', 'org:list', 3, '', 0, 0, 0, 0, 0, '2023-04-13 10:35:47', '2023-04-13 10:35:47', '');
INSERT INTO `sys_menu` VALUES ('0a59255aac53f421613c4d8516fcc305', '1cda1e6f35077cb1f89007fa36343a3d', '', '', '', '保存', '', 'pages:save', 0, NULL, 0, 0, 0, 0, 0, '2023-05-11 11:16:50', '2023-05-11 11:16:50', '');
INSERT INTO `sys_menu` VALUES ('0e769d6164cff598ae7215c99849bd1c', '1cda1e6f35077cb1f89007fa36343a3d', '', '', '', '删除', '', 'pages:delete', 2, NULL, 0, 0, 0, 0, 0, '2023-05-11 11:17:35', '2023-05-11 11:17:35', '');
INSERT INTO `sys_menu` VALUES ('11107c717306bd0d9e993cf32a94974e', 'b1851d1b13594e71840103c11a37a006', '', '', '', '删除', '', 'user:delete', 3, NULL, 0, 0, 0, 0, 0, '2023-04-13 11:34:29', '2023-04-13 11:34:29', NULL);
INSERT INTO `sys_menu` VALUES ('120d967459a9e7323692b3fa49c1ba59', '0', 'monitor', '/monitor', 'Odometer', '系统监控', 'Monitor', NULL, 3, NULL, 0, 0, 0, 1, 1, '2023-04-14 08:44:27', '2023-04-14 08:44:27', '');
INSERT INTO `sys_menu` VALUES ('1cda1e6f35077cb1f89007fa36343a3d', 'b25838d6e06c6cdad82c1ad9b1096f26', 'lcPages', '/lowcode/LcPages', 'Ticket', '页面管理', 'LcPages', NULL, 1, NULL, 0, 0, 0, 1, 1, '2023-07-07 17:07:55', '2023-05-11 10:52:58', '');
INSERT INTO `sys_menu` VALUES ('1ec1c1cb127d83f6346904220b3ed20b', 'b1851d1b13594e71840103c11a37a002', 'dict', '/system/Dict', 'Coin', '字典管理', 'Dist', NULL, 5, NULL, 0, 0, 0, 0, 1, '2023-04-13 16:26:19', '2023-04-13 16:26:19', NULL);
INSERT INTO `sys_menu` VALUES ('2a3d3641-c178-11ee-a758-e0be038740d4', '02470e78-c178-11ee-a758-e0be038740d4', '', '', '', '保存', '', 'generator:save', 0, NULL, 0, 0, 0, 0, 0, '2024-02-02 11:07:14', '2024-02-02 11:07:14', '');
INSERT INTO `sys_menu` VALUES ('37536b9d-c178-11ee-a758-e0be038740d4', '02470e78-c178-11ee-a758-e0be038740d4', '', '', '', '修改', '', 'generator:update', 1, NULL, 0, 0, 0, 0, 0, '2024-02-02 11:07:36', '2024-02-02 11:07:36', '');
INSERT INTO `sys_menu` VALUES ('3afbad18e475a7f7a4aeec6ab6e6c0fc', '1cda1e6f35077cb1f89007fa36343a3d', '', '', '', '修改', '', 'pages:update', 1, NULL, 0, 0, 0, 0, 0, '2023-05-11 11:17:13', '2023-05-11 11:17:13', '');
INSERT INTO `sys_menu` VALUES ('44692cac-c178-11ee-a758-e0be038740d4', '02470e78-c178-11ee-a758-e0be038740d4', '', '', '', '删除', '', 'generator:delete', 2, NULL, 0, 0, 0, 0, 0, '2024-02-02 11:07:58', '2024-02-02 11:07:58', '');
INSERT INTO `sys_menu` VALUES ('44979f524b88ed2dfbf14e4267ebd045', 'b1851d1b13594e71840103c11a37a004', '', '', '', '删除', '', 'org:delete', 1, '', 0, 0, 0, 0, 0, '2023-04-13 10:34:53', '2023-04-13 10:34:53', '');
INSERT INTO `sys_menu` VALUES ('5de088a93f0828a57e4c70959831458b', 'b1851d1b13594e71840103c11a37a004', '', '', '', '保存', '', 'org:save', 0, '', 0, 0, 0, 0, 0, '2023-04-13 10:33:43', '2023-04-13 10:33:43', '');
INSERT INTO `sys_menu` VALUES ('5df7c65d51129baefee123ef3bc2d7de', 'ea83fb03d2117cb287973d6889984686', 'magicapi', 'https://www.ssssssss.org/magic-api/pages/quick/single/', 'Clock', '框架', 'magicapi', NULL, 2, '', 0, 1, 0, 0, 1, '2023-04-11 11:25:08', '2023-04-11 11:25:08', NULL);
INSERT INTO `sys_menu` VALUES ('5e67672047d0a00bf861ba2255535238', '1ec1c1cb127d83f6346904220b3ed20b', '', '', '', '修改', '', 'dict:update', 2, '', 0, 0, 0, 0, 0, '2023-04-13 16:27:29', '2023-04-13 16:27:29', '');
INSERT INTO `sys_menu` VALUES ('628431d108e3530ac37dfa2180dff376', '1ec1c1cb127d83f6346904220b3ed20b', '', '', '', '保存', '', 'dict:save', 1, '', 0, 0, 0, 0, 0, '2023-04-13 16:27:07', '2023-04-13 16:27:07', '');
INSERT INTO `sys_menu` VALUES ('7b02ec134bcd2a74b7930ce03da4b8bb', '120d967459a9e7323692b3fa49c1ba59', 'loginLog', '/monitor/LoginLog', 'User', '登录日志', 'LoginLog', NULL, 1, NULL, 0, 0, 0, 1, 1, '2023-04-14 08:48:07', '2023-04-14 08:48:07', '');
INSERT INTO `sys_menu` VALUES ('850a1c29af28318e6e470a14aaeb50e5', 'b1851d1b13594e71840103c11a37a006', '', '', '', '保存', '', 'user:save', 0, '', 0, 0, 0, 0, 0, '2023-04-13 11:33:37', '2023-04-13 11:33:37', '');
INSERT INTO `sys_menu` VALUES ('9658b61b187ae33b7c8c39fc8c1265dc', '120d967459a9e7323692b3fa49c1ba59', 'onlineUser', '/monitor/OnlineUser', 'Avatar', '在线用户', 'OnlineUser', NULL, 3, NULL, 0, 0, 0, 1, 1, '2023-04-14 08:50:35', '2023-04-14 08:50:35', '');
INSERT INTO `sys_menu` VALUES ('9a36ed1841e3e6d2da32df17980edaa2', 'b25838d6e06c6cdad82c1ad9b1096f26', 'interface', '/lowcode/Interface', 'Connection', '接口开发', 'Interface', NULL, 2, NULL, 0, 0, 0, 1, 1, '2023-07-07 17:08:04', '2023-04-14 08:52:17', '');
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a002', '0', 'system', '/system', 'Tools', '系统管理', 'System', NULL, 1, NULL, 0, 0, 0, 0, 1, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a003', 'b1851d1b13594e71840103c11a37a002', 'menu', '/system/Menu', 'Grid', '菜单管理', 'Menu', NULL, 2, NULL, 0, 0, 0, 0, 1, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a004', 'b1851d1b13594e71840103c11a37a002', 'org', '/system/Org', 'SetUp', '组织管理', 'Org', NULL, 3, NULL, 0, 0, 0, 0, 1, '2023-04-13 11:30:56', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a005', 'b1851d1b13594e71840103c11a37a002', 'role', '/system/Role', 'Help', '角色管理', 'Role', NULL, 4, NULL, 0, 0, 0, 0, 1, '2023-04-13 11:32:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a006', 'b1851d1b13594e71840103c11a37a002', 'user', '/system/User', 'User', '用户管理', 'User', NULL, 5, NULL, 0, 0, 0, 0, 1, '2023-04-13 11:32:34', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a007', 'b1851d1b13594e71840103c11a37a003', NULL, NULL, NULL, '保存', 'save', 'menu:save', 6, NULL, 0, 0, 0, 0, 0, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a008', 'b1851d1b13594e71840103c11a37a003', NULL, NULL, NULL, '删除', 'delete', 'menu:delete', 6, NULL, 0, 0, 0, 0, 0, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a009', 'b1851d1b13594e71840103c11a37a003', NULL, NULL, NULL, '修改', 'update', 'menu:update', 6, NULL, 0, 0, 0, 0, 0, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a010', 'b1851d1b13594e71840103c11a37a003', NULL, NULL, NULL, '详情', 'view', 'menu:view', 6, NULL, 0, 0, 0, 0, 0, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b1851d1b13594e71840103c11a37a011', 'b1851d1b13594e71840103c11a37a003', NULL, NULL, NULL, '列表', 'list', 'menu:list', 6, NULL, 0, 0, 0, 0, 0, '2023-03-29 08:57:50', '2023-03-29 08:57:52', NULL);
INSERT INTO `sys_menu` VALUES ('b25838d6e06c6cdad82c1ad9b1096f26', '0', 'lowcode', '/lowcode', 'Edit', '应用开发', 'Lowcode', NULL, 2, NULL, 0, 0, 0, 1, 1, '2023-07-07 17:06:37', '2023-04-14 08:46:15', '');
INSERT INTO `sys_menu` VALUES ('b4cfa05bff2269fee06788b32115851a', 'b1851d1b13594e71840103c11a37a006', '', '', '', '修改', '', 'user:update', 1, '', 0, 0, 0, 0, 0, '2023-04-13 14:44:51', '2023-04-13 11:34:04', '');
INSERT INTO `sys_menu` VALUES ('b8db9ff560e383e59d604e19c9fbd3cb', 'b1851d1b13594e71840103c11a37a006', '', '', '', '列表', '', 'user:list', 4, '', 0, 0, 0, 0, 0, '2023-04-13 11:34:49', '2023-04-13 11:34:49', '');
INSERT INTO `sys_menu` VALUES ('b9401c42bc1e58e0a48e6b3308cff617', '1ec1c1cb127d83f6346904220b3ed20b', '', '', '', '删除', '', 'dict:delete', 4, '', 0, 0, 0, 0, 0, '2023-04-13 16:27:48', '2023-04-13 16:27:48', '');
INSERT INTO `sys_menu` VALUES ('d2df5734-1ca6-11ee-8b16-e0be038740d4', 'ea83fb03d2117cb287973d6889984686', 'table', '/table', 'Camera', '表格示例', 'table', NULL, 3, NULL, 1, 0, 0, 1, 1, '2023-07-07 17:15:32', '2023-07-07 17:15:32', '');
INSERT INTO `sys_menu` VALUES ('ea83fb03d2117cb287973d6889984686', '0', 'demo', '/demo', 'ChromeFilled', '菜单实例', 'Demo', NULL, 5, '', 0, 0, 0, 1, 1, '2023-07-07 17:06:06', '2023-04-11 11:10:46', '实例');
INSERT INTO `sys_menu` VALUES ('eb404f1c-1ca6-11ee-8b16-e0be038740d4', 'ea83fb03d2117cb287973d6889984686', 'images', '/images', 'Football', '轮播图', 'images', NULL, 4, NULL, 1, 0, 0, 1, 1, '2023-07-07 17:16:13', '2023-07-07 17:16:13', '');
INSERT INTO `sys_menu` VALUES ('f3138bd5b256d82f9eebe07c6679cf15', 'b1851d1b13594e71840103c11a37a004', '', '', '', '修改', '', 'org:update', 2, '', 0, 0, 0, 0, 0, '2023-04-13 10:35:17', '2023-04-13 10:35:17', '');
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0666', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '列表', 'list', 'role:list', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0667', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '添加', 'save', 'role:save', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0668', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '修改', 'update', 'role:update', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0669', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '删除', 'delete', 'role:delete', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0670', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '菜单权限', 'menu', 'role:menu', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0671', 'b1851d1b13594e71840103c11a37a005', NULL, NULL, NULL, '数据权限', 'data', 'role:data', 1, '', 0, 0, 0, 0, 0, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('f8b972bc005a9c6691a43b76839b0675', 'ea83fb03d2117cb287973d6889984686', 'Iframe', 'https://www.bing.com/?mkt=zh-CN', 'Bicycle', '必应', 'Iframe', NULL, 1, '', 0, 1, 0, 0, 1, '2023-04-11 11:26:05', '2023-04-11 11:12:16', NULL);
INSERT INTO `sys_menu` VALUES ('fdaf429afb33d54beeee7eaea93e5e96', '120d967459a9e7323692b3fa49c1ba59', 'operLog', '/monitor/OperLog', 'Cpu', '操作日志', 'OperLog', NULL, 2, NULL, 0, 0, 0, 1, 1, '2023-04-14 08:49:04', '2023-04-14 08:49:04', '');

-- ----------------------------
-- Table structure for sys_oper_log
-- ----------------------------
DROP TABLE IF EXISTS `sys_oper_log`;
CREATE TABLE `sys_oper_log`  (
  `id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键id',
  `module` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '功能模块',
  `method` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作方法',
  `type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作类型',
  `message` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作描述',
  `req_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '请求参数',
  `res_param` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '响应参数',
  `take_up_time` int NULL DEFAULT NULL COMMENT '耗时',
  `user_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作用户id',
  `user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '操作用户名称',
  `status` int NULL DEFAULT NULL COMMENT '状态：0、成功，1、失败',
  `uri` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '请求url',
  `ip` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '请求IP',
  `unusual` text CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL COMMENT '异常信息',
  `version` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '版本号',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '操作日志' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_oper_log
-- ----------------------------
INSERT INTO `sys_oper_log` VALUES ('00da2e8ed68f41509dab3eb75e08f4d8', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:20');
INSERT INTO `sys_oper_log` VALUES ('029765aa64d94b37a5ac442e2408abc9', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:38');
INSERT INTO `sys_oper_log` VALUES ('04fc6aeb071e4aff96ee85407c94a289', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 2, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:29');
INSERT INTO `sys_oper_log` VALUES ('06c7d2216dba4855ba529557ae8e5601', NULL, 'GET', 'GET', NULL, '{}', NULL, 18, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:44');
INSERT INTO `sys_oper_log` VALUES ('0754b88a12654bfc97fa1cfb97779f59', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:12');
INSERT INTO `sys_oper_log` VALUES ('082fc35f762d4569bccc4e52ef865f8f', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:54');
INSERT INTO `sys_oper_log` VALUES ('0852a5a169914ad1a50411a47910266a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:37');
INSERT INTO `sys_oper_log` VALUES ('08ccba4a4b60402981f9c2d195ca9f9f', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:09');
INSERT INTO `sys_oper_log` VALUES ('092e38471d544682a3cb36d18eccf119', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:41:47');
INSERT INTO `sys_oper_log` VALUES ('0baf0b86523e46428d9993a7fa06fbd4', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:03');
INSERT INTO `sys_oper_log` VALUES ('0e8a3ce893534253ba7acb3a5b63971b', NULL, 'GET', 'GET', NULL, '{}', NULL, 9, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('0ec652ccadfa4e87bb63e97e6dd6b9a2', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:19:22');
INSERT INTO `sys_oper_log` VALUES ('0ee9a802eaf4456fb8e6c6770ddadfd4', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:22');
INSERT INTO `sys_oper_log` VALUES ('0efd8f8e37dc41029110852d71c8bd1e', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:55');
INSERT INTO `sys_oper_log` VALUES ('0fc529f871f547278e77ffad029f31fb', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:43');
INSERT INTO `sys_oper_log` VALUES ('0fed0e3c9d874d29b53c2da37fa9da81', NULL, 'POST', 'POST', NULL, '{\"subTableName\":\"\",\"columns\":\"[{\\\"columnName\\\":\\\"columns\\\",\\\"columnComment\\\":\\\"字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"createTime\\\",\\\"columnComment\\\":\\\"创建时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"dataSource\\\",\\\"columnComment\\\":\\\"数据源\\\",\\\"columnType\\\":\\\"varchar(50)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"info\\\",\\\"columnComment\\\":\\\"生成信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subColumns\\\",\\\"columnComment\\\":\\\"子表字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableComment\\\",\\\"columnComment\\\":\\\"子表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableName\\\",\\\"columnComment\\\":\\\"字表名称\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableComment\\\",\\\"columnComment\\\":\\\"表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableName\\\",\\\"columnComment\\\":\\\"表名\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"updateTime\\\",\\\"columnComment\\\":\\\"更新时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false}]\",\"subColumns\":\"[]\",\"tableComment\":\"生成表信息\",\"interfaceId\":\"01d17bdac48a42fc9c84b7c724b309f5\",\"dataSource\":\"tansci_boot\",\"tableName\":\"sys_gen\",\"info\":\"{\\\"moduleName\\\":\\\"api\\\",\\\"modulePath\\\":\\\"/api\\\",\\\"businessName\\\":\\\"aa\\\",\\\"businessPath\\\":\\\"/aa\\\",\\\"template\\\":\\\"single\\\",\\\"pid\\\":\\\"\\\",\\\"treeId\\\":\\\"\\\",\\\"treePid\\\":\\\"\\\",\\\"subTable\\\":\\\"\\\",\\\"subTableKey\\\":\\\"\\\"}\"}', NULL, 21, '1', NULL, 0, '/tansci/lowcode/generator/save', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:30:30');
INSERT INTO `sys_oper_log` VALUES ('11d26594599044d5bb870ef897307c0a', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:04');
INSERT INTO `sys_oper_log` VALUES ('129af804aa0745da9ad061fa6f391251', NULL, 'POST', 'POST', NULL, '{}', NULL, 63, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-02 09:23:35');
INSERT INTO `sys_oper_log` VALUES ('12e4d69788c5438ca7c3de221012dda1', NULL, 'GET', 'GET', NULL, '{}', NULL, 6, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:22');
INSERT INTO `sys_oper_log` VALUES ('14855d62bdc441a2861b78c59d8d1496', NULL, 'POST', 'POST', NULL, '{}', NULL, 15, '1', NULL, 0, '/tansci/system/menu/save', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:58');
INSERT INTO `sys_oper_log` VALUES ('1494b69184e242ef891a2b198fa4b808', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 9, '1', NULL, 0, '/tansci/monitor/operLog', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:31:58');
INSERT INTO `sys_oper_log` VALUES ('15c66376b5434db38199ebfe826c497f', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 1, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:50:39');
INSERT INTO `sys_oper_log` VALUES ('16d58aed983c48d7885d5baf3fc6483e', NULL, 'GET', 'GET', NULL, '{}', NULL, 13, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:12');
INSERT INTO `sys_oper_log` VALUES ('1895bca9e8d84fa9b4a32d4bf710569b', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"表格\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('190708dc490e420b829ebbac5d0e125f', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:05');
INSERT INTO `sys_oper_log` VALUES ('1b3ba0f355f741dfa389976daa6113af', NULL, 'GET', 'GET', NULL, '{}', NULL, 8, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:06');
INSERT INTO `sys_oper_log` VALUES ('1c390008d09a444dbce45f63f57d3f67', NULL, 'GET', 'GET', NULL, '{\"total\":\"1\",\"size\":\"10\"}', NULL, 6, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:13:51');
INSERT INTO `sys_oper_log` VALUES ('1df94ac1cc614d2d852fce5fa806a670', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 12, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:49:33');
INSERT INTO `sys_oper_log` VALUES ('1f312d0213d245e6a40c32dc937511c6', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"aaaa\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:17');
INSERT INTO `sys_oper_log` VALUES ('205213373d284ddc8a5d41ab8a96897b', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('20e7c0d102d1424b868ae91d2295aad2', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('2204e72023f7489d87af7209ffa146a5', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:33');
INSERT INTO `sys_oper_log` VALUES ('223080e9fea046a7aa4d810472b4b2eb', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:17:22');
INSERT INTO `sys_oper_log` VALUES ('2295c1c56dd34616acde189fb0072cc2', NULL, 'GET', 'GET', NULL, '{}', NULL, 8, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('2358e1e7c3564b64a4928be620dcb712', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:43');
INSERT INTO `sys_oper_log` VALUES ('23caa8ec62a14aa0b085e9f6ca2acc48', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:05');
INSERT INTO `sys_oper_log` VALUES ('24d281eee47b407680d9b7c333735c5a', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 13, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:15:16');
INSERT INTO `sys_oper_log` VALUES ('254c766c779f45c0923bc1e06ce9ce9a', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('2a18910a51344f8b96ff2dbbaaf9b3e6', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 15, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:44:31');
INSERT INTO `sys_oper_log` VALUES ('2ac00432c253446f9fc3bfed26cc3433', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('2dc4a52abb714a96afe2fa57c3df21d9', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('2e080c4bc80a42a8bd1fbf79e8d15144', NULL, 'GET', 'GET', NULL, '{\"total\":\"1\",\"size\":\"10\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:31:16');
INSERT INTO `sys_oper_log` VALUES ('2e178449dbc545dda4b42385943d86d2', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('2eb953b1d8034c8a96177bed9236a8c2', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 4, '1', NULL, 0, '/tansci/monitor/operLog', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:57');
INSERT INTO `sys_oper_log` VALUES ('3220be4673f740269d197fbfe8b3d238', NULL, 'GET', 'GET', NULL, '{}', NULL, 88, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:09');
INSERT INTO `sys_oper_log` VALUES ('327002f9cb794b60886b351683320a3b', NULL, 'GET', 'GET', NULL, '{}', NULL, 6, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:30');
INSERT INTO `sys_oper_log` VALUES ('3485afeae16e4c388c2358cd832e9fad', NULL, 'GET', 'GET', NULL, '{}', NULL, 25, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:36');
INSERT INTO `sys_oper_log` VALUES ('34a2d0ecafcd4a5a8de667b2f952b0d6', NULL, 'POST', 'POST', NULL, '{}', NULL, 17, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:44');
INSERT INTO `sys_oper_log` VALUES ('363fdd6cba0a48dba33e37d5a38c82ce', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('383cee8ae902400892c5fa0daa53e7f8', NULL, 'POST', 'POST', NULL, '{}', NULL, 89, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:03');
INSERT INTO `sys_oper_log` VALUES ('39eafc1e313941cea82c6932e6095ea3', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:39');
INSERT INTO `sys_oper_log` VALUES ('3b5ab90c17b94c9dad60b734e78a8cb5', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-02 09:23:35');
INSERT INTO `sys_oper_log` VALUES ('3c4576004f0a4491b88791dbd6750917', NULL, 'GET', 'GET', NULL, '{}', NULL, 135, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:37:37');
INSERT INTO `sys_oper_log` VALUES ('3c94395a26764a0fb8e473399bcb7719', NULL, 'GET', 'GET', NULL, '{}', NULL, 49, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:14');
INSERT INTO `sys_oper_log` VALUES ('3dada7fbf63f4c2892a8b0da80c88cfd', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:43');
INSERT INTO `sys_oper_log` VALUES ('40ad6c63dbf44feab619bec5c6569bba', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"ffff\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:40');
INSERT INTO `sys_oper_log` VALUES ('41d5211ae6fe4caebe9e9aa9a78d792b', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 5, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:49:13');
INSERT INTO `sys_oper_log` VALUES ('42a078d8fe7940b1bcb532e726726d7d', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('4849eb83bcf042408b0e1884e21b3194', NULL, 'POST', 'POST', NULL, '{\"subTableName\":\"\",\"columns\":\"[{\\\"columnName\\\":\\\"content\\\",\\\"columnComment\\\":\\\"备份内容\\\",\\\"columnType\\\":\\\"blob\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"createBy\\\",\\\"columnComment\\\":\\\"操作人\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"createDate\\\",\\\"columnComment\\\":\\\"备份时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"id\\\",\\\"columnComment\\\":\\\"原对象ID\\\",\\\"columnType\\\":\\\"varchar(32)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":true},{\\\"columnName\\\":\\\"name\\\",\\\"columnComment\\\":\\\"原名称\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tag\\\",\\\"columnComment\\\":\\\"标签\\\",\\\"columnType\\\":\\\"varchar(32)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"type\\\",\\\"columnComment\\\":\\\"类型\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false}]\",\"subColumns\":\"[]\",\"tableComment\":\"magic api 备份\",\"dataSource\":\"tansci_boot\",\"tableName\":\"magic_api_backup\",\"info\":\"{\\\"moduleName\\\":\\\"api\\\",\\\"modulePath\\\":\\\"/api\\\",\\\"businessName\\\":\\\"接口\\\",\\\"businessPath\\\":\\\"/aa\\\",\\\"template\\\":\\\"single\\\",\\\"pid\\\":\\\"\\\",\\\"treeId\\\":\\\"\\\",\\\"treePid\\\":\\\"\\\",\\\"subTable\\\":\\\"\\\",\\\"subTableKey\\\":\\\"\\\"}\"}', NULL, 53, '1', NULL, 0, '/tansci/lowcode/generator/execute', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:22:56');
INSERT INTO `sys_oper_log` VALUES ('4a233f6f1ec34f0482eadd9eaf9989d2', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:50:35');
INSERT INTO `sys_oper_log` VALUES ('4ab95865d9014c81ab99c304e7832564', NULL, 'POST', 'POST', NULL, '{}', NULL, 298, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:37:37');
INSERT INTO `sys_oper_log` VALUES ('4c8b04d387244c1d919de827f57c5e97', NULL, 'GET', 'GET', NULL, '{}', NULL, 10, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:44:31');
INSERT INTO `sys_oper_log` VALUES ('4d4eb0a02e6a4caa82a84e45e75f86ae', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:19:22');
INSERT INTO `sys_oper_log` VALUES ('4d75a63de74a489faf19c70d19c28920', NULL, 'GET', 'GET', NULL, '{}', NULL, 6, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:44');
INSERT INTO `sys_oper_log` VALUES ('4e29a5709e2c47c98ad0ad196e296877', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 7, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:27');
INSERT INTO `sys_oper_log` VALUES ('4e43adffcead4bb09cfedf6d715f9672', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('4f69e6f8a449448ebb86b66f6bca4047', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:05');
INSERT INTO `sys_oper_log` VALUES ('5281cd9235ee4476a9e7200e25d28a40', NULL, 'GET', 'GET', NULL, '{}', NULL, 8, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:08:04');
INSERT INTO `sys_oper_log` VALUES ('54d630a6f97d4e038a2494f6a0c6fbef', NULL, 'GET', 'GET', NULL, '{}', NULL, 24, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:37:37');
INSERT INTO `sys_oper_log` VALUES ('54f2940020be4f9387f61fb087048fc0', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 27, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:13:41');
INSERT INTO `sys_oper_log` VALUES ('5512848f103b4f69a278238d57896289', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:54');
INSERT INTO `sys_oper_log` VALUES ('552e4160bdad46ad821041807b12aae5', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:05');
INSERT INTO `sys_oper_log` VALUES ('57214e54b63e4fc682057de09c505a53', NULL, 'GET', 'GET', NULL, '{}', NULL, 16, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:08:05');
INSERT INTO `sys_oper_log` VALUES ('58f0cab177224b87abeb6a792c086eb3', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('59f010e482d9449ca3e550432ff764ea', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 10, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:20:39');
INSERT INTO `sys_oper_log` VALUES ('5ab32d7812cd4e3995c65c3c53d89d82', NULL, 'GET', 'GET', NULL, '{}', NULL, 10, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-02 10:49:42');
INSERT INTO `sys_oper_log` VALUES ('5b540f9ac4314ea8a3526f1e992fbe84', NULL, 'GET', 'GET', NULL, '{\"name\":\"lc_pages_menu\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:34:09');
INSERT INTO `sys_oper_log` VALUES ('5cf7789fb0ba4c37af8312b0ddede85e', NULL, 'GET', 'GET', NULL, '{}', NULL, 6, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:30');
INSERT INTO `sys_oper_log` VALUES ('5d8505950aca4496ab7db49fd43771c9', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:33');
INSERT INTO `sys_oper_log` VALUES ('5e7e2555fb684ddfb2247087076ab9b2', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:39');
INSERT INTO `sys_oper_log` VALUES ('609627240c9e425ebd2cf304fa141699', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:19:22');
INSERT INTO `sys_oper_log` VALUES ('61a2d2f6256643b49d269ba4d62b867e', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('63262f9b90054b1c80598d79f637e87d', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 5, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:52:56');
INSERT INTO `sys_oper_log` VALUES ('63c5ed1d75ec4036b5fc875bee52936f', NULL, 'POST', 'POST', NULL, '{}', NULL, 20, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:30');
INSERT INTO `sys_oper_log` VALUES ('64c82312b49448c78c2fe65c9487422f', NULL, 'GET', 'GET', NULL, '{\"total\":\"1\",\"size\":\"10\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:31:18');
INSERT INTO `sys_oper_log` VALUES ('662c7c0947534ed6b1e9facb6f7d1782', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('66cc05d329b34805b3af4c65107c973a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:37');
INSERT INTO `sys_oper_log` VALUES ('672ada40e1614f83ab8ca7bc54ba0803', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:15');
INSERT INTO `sys_oper_log` VALUES ('69d1dd3806b24a7b9ad7f9be7b241654', NULL, 'GET', 'GET', NULL, '{}', NULL, 8, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:13');
INSERT INTO `sys_oper_log` VALUES ('6b2680246b76432e8a6e3bff499f4f88', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:33:30');
INSERT INTO `sys_oper_log` VALUES ('6cc7e08b80b24ae58f53b234f9a34d7f', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 2, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:58');
INSERT INTO `sys_oper_log` VALUES ('6ce67aae183d40b2b350242618d9bedc', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:08:05');
INSERT INTO `sys_oper_log` VALUES ('6dac9393e2ce42eca1e8c2472743992c', NULL, 'GET', 'GET', NULL, '{}', NULL, 64, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:15');
INSERT INTO `sys_oper_log` VALUES ('6e893d070b48476cb1c84997c9365700', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:05');
INSERT INTO `sys_oper_log` VALUES ('6fdd9cbcd25c4effaa6eea466287d478', NULL, 'GET', 'GET', NULL, '{}', NULL, 7, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:19:29');
INSERT INTO `sys_oper_log` VALUES ('706951fae28f404a8dfdb536225622c0', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:15:55');
INSERT INTO `sys_oper_log` VALUES ('72e12d39949441a99d1b325ec0fa44f7', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 3, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:19');
INSERT INTO `sys_oper_log` VALUES ('73d05194cb164d38b359164c7fcf7124', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:15');
INSERT INTO `sys_oper_log` VALUES ('74049f2fb1d94dd48f1fdb2aef0047a1', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:03:10');
INSERT INTO `sys_oper_log` VALUES ('74851230da33451f9851de4f39ab05ec', NULL, 'GET', 'GET', NULL, '{\"name\":\"sys_gen\"}', NULL, 9, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:26:57');
INSERT INTO `sys_oper_log` VALUES ('748b2ecabda14fe49bc6426c79ef09b9', NULL, 'GET', 'GET', NULL, '{}', NULL, 10, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:22');
INSERT INTO `sys_oper_log` VALUES ('788845a2038146598bceed9284c6a95b', NULL, 'GET', 'GET', NULL, '{}', NULL, 23, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:22');
INSERT INTO `sys_oper_log` VALUES ('78f53e4750de4ed788fee8c85e9f51f7', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 3, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:54:09');
INSERT INTO `sys_oper_log` VALUES ('793a2826a6a946a590768b5e989061f2', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:11');
INSERT INTO `sys_oper_log` VALUES ('795da0e4c781438fac3c97041c473b2a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:55');
INSERT INTO `sys_oper_log` VALUES ('7a2562c3da9749da8438119d137e769a', NULL, 'GET', 'GET', NULL, '{}', NULL, 383, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:36:55');
INSERT INTO `sys_oper_log` VALUES ('7a4daebb77c64a9184cc418d17994a1e', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:30');
INSERT INTO `sys_oper_log` VALUES ('7c06ca545c4a4184a8f3a28a17269b63', NULL, 'POST', 'POST', NULL, '{}', NULL, 16, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:15');
INSERT INTO `sys_oper_log` VALUES ('7db79f6ddd11443fba556d36aa33a583', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:01');
INSERT INTO `sys_oper_log` VALUES ('8202d6756c7d443488019833a28985ea', NULL, 'GET', 'GET', NULL, '{}', NULL, 18, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:05');
INSERT INTO `sys_oper_log` VALUES ('84653f0c359a48369621dc79f85f4b29', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:17');
INSERT INTO `sys_oper_log` VALUES ('8695bb18c35843a788679bb5bcd360a3', NULL, 'GET', 'GET', NULL, '{}', NULL, 24, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-02 09:23:35');
INSERT INTO `sys_oper_log` VALUES ('86c3e02e3ea542e5bb3c0838b521ebf6', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:03');
INSERT INTO `sys_oper_log` VALUES ('885cb43aa97941bbb8e806383f30364f', NULL, 'GET', 'GET', NULL, '{}', NULL, 7, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:09');
INSERT INTO `sys_oper_log` VALUES ('8aa4580a5bed4706b027a6cf1c4ce89b', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 6, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:54:56');
INSERT INTO `sys_oper_log` VALUES ('8adffb3e340c4304b6dabb41eafe7dd5', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('8b1426abf919484e9c7dba5e5a0ddbd0', NULL, 'GET', 'GET', NULL, '{}', NULL, 19, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:17:02');
INSERT INTO `sys_oper_log` VALUES ('8d884fb639694018abfae38551e2a772', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 56, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:39:53');
INSERT INTO `sys_oper_log` VALUES ('8fd2865d5eb14118828aa214d99faf91', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-02 09:23:35');
INSERT INTO `sys_oper_log` VALUES ('8febf2f1d7284174bb9473c93c681f43', NULL, 'GET', 'GET', NULL, '{}', NULL, 6, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:55');
INSERT INTO `sys_oper_log` VALUES ('916561913d7c49efb3fe0309f376a15e', NULL, 'GET', 'GET', NULL, '{}', NULL, 7, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:08:05');
INSERT INTO `sys_oper_log` VALUES ('9176c4b837904172996e003ab02efbd2', NULL, 'POST', 'POST', NULL, '{}', NULL, 71, '1', NULL, 0, '/tansci/system/menu/save', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:06:07');
INSERT INTO `sys_oper_log` VALUES ('91f4d39dba4e4601bb5b257036ef9104', NULL, 'POST', 'POST', NULL, '{\"subTableName\":\"\",\"columns\":\"[{\\\"columnName\\\":\\\"columns\\\",\\\"columnComment\\\":\\\"字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"createTime\\\",\\\"columnComment\\\":\\\"创建时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"dataSource\\\",\\\"columnComment\\\":\\\"数据源\\\",\\\"columnType\\\":\\\"varchar(50)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"info\\\",\\\"columnComment\\\":\\\"生成信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subColumns\\\",\\\"columnComment\\\":\\\"子表字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableComment\\\",\\\"columnComment\\\":\\\"子表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableName\\\",\\\"columnComment\\\":\\\"字表名称\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableComment\\\",\\\"columnComment\\\":\\\"表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableName\\\",\\\"columnComment\\\":\\\"表名\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"updateTime\\\",\\\"columnComment\\\":\\\"更新时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false}]\",\"subColumns\":\"[]\",\"tableComment\":\"生成表信息\",\"dataSource\":\"tansci_boot\",\"tableName\":\"sys_gen\",\"info\":\"{\\\"moduleName\\\":\\\"api\\\",\\\"modulePath\\\":\\\"/api\\\",\\\"businessName\\\":\\\"aa\\\",\\\"businessPath\\\":\\\"/aa\\\",\\\"template\\\":\\\"single\\\",\\\"pid\\\":\\\"\\\",\\\"treeId\\\":\\\"\\\",\\\"treePid\\\":\\\"\\\",\\\"subTable\\\":\\\"\\\",\\\"subTableKey\\\":\\\"\\\"}\"}', NULL, 133, '1', NULL, 0, '/tansci/lowcode/generator/execute', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:30:30');
INSERT INTO `sys_oper_log` VALUES ('926f6d83c9474ef0b4ea11743e023535', NULL, 'POST', 'POST', NULL, '{}', NULL, 13, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:55:22');
INSERT INTO `sys_oper_log` VALUES ('9319d3482d594a918a0a1e78c74252d9', NULL, 'GET', 'GET', NULL, '{}', NULL, 11, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('93bcfca7ac8b40fea0d1bb8fecadab32', NULL, 'GET', 'GET', NULL, '{}', NULL, 13, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:44');
INSERT INTO `sys_oper_log` VALUES ('952a9ef08311438489aadc8800a297e8', NULL, 'GET', 'GET', NULL, '{\"name\":\"lc_pages\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:33:31');
INSERT INTO `sys_oper_log` VALUES ('9653a85c332b4f7bb1617c298daab0ba', NULL, 'DELETE', 'DELETE', NULL, '{}', NULL, 18, '1', NULL, 0, '/tansci/lowcode/generator/delete/cbe2a1a1-c183-11ee-a758-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:31:18');
INSERT INTO `sys_oper_log` VALUES ('968753f67c074cfb9720c79e0436e1a6', NULL, 'GET', 'GET', NULL, '{}', NULL, 22, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:24');
INSERT INTO `sys_oper_log` VALUES ('9a3c239fa384477cad5e2f7b3bf90c61', NULL, 'GET', 'GET', NULL, '{}', NULL, 0, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:33');
INSERT INTO `sys_oper_log` VALUES ('9a76a45b960f411081d782114f9326cd', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:17');
INSERT INTO `sys_oper_log` VALUES ('9c162de7847043e58f77df70553c841b', NULL, 'POST', 'POST', NULL, '{}', NULL, 15, '1', NULL, 0, '/tansci/system/menu/save', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:36');
INSERT INTO `sys_oper_log` VALUES ('9e6de7463cc04aaf93d2b58b893d6e0c', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('9f6255a1f9ab45a89189e55dbd13f731', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('a03990963d5941a494aaf6ae4a8192e3', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:17:02');
INSERT INTO `sys_oper_log` VALUES ('a2158e0e2948405f8345558f85843030', NULL, 'GET', 'GET', NULL, '{}', NULL, 12, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:15');
INSERT INTO `sys_oper_log` VALUES ('a2f019c3bb0e4b429a99c14cda1fd60e', NULL, 'GET', 'GET', NULL, '{}', NULL, 48, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:58');
INSERT INTO `sys_oper_log` VALUES ('a3bdb3a4106e43a6a09c1ce54f013479', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"ffff\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:39');
INSERT INTO `sys_oper_log` VALUES ('a68c43916d704fa6bdbd020ce2548f3b', NULL, 'POST', 'POST', NULL, '{}', NULL, 11, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:55');
INSERT INTO `sys_oper_log` VALUES ('a91c0bc2a9f34139bb8d1a30a9694c08', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:14:09');
INSERT INTO `sys_oper_log` VALUES ('aa397756d8f4401dacd16330bae4a6d1', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:03:10');
INSERT INTO `sys_oper_log` VALUES ('ab358bde5a52421d90dacc821c3780a4', NULL, 'GET', 'GET', NULL, '{}', NULL, 54, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:03:19');
INSERT INTO `sys_oper_log` VALUES ('ac47a77049f5472aa65d56c2f9ceee2a', NULL, 'GET', 'GET', NULL, '{}', NULL, 23, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:30');
INSERT INTO `sys_oper_log` VALUES ('ac77a5737be24a80baa0491ca3a6791c', NULL, 'GET', 'GET', NULL, '{}', NULL, 12, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-02 10:49:42');
INSERT INTO `sys_oper_log` VALUES ('ad5d1cec435d41b9af117446af66a037', NULL, 'GET', 'GET', NULL, '{}', NULL, 11, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:15');
INSERT INTO `sys_oper_log` VALUES ('ad963244da314071be87c2fc0719dc3c', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:05');
INSERT INTO `sys_oper_log` VALUES ('af4c989f900a4261833550f9e77a5120', NULL, 'POST', 'POST', NULL, '{}', NULL, 11, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:50:35');
INSERT INTO `sys_oper_log` VALUES ('afa407ab49854dc4a36431013ca00aff', NULL, 'GET', 'GET', NULL, '{}', NULL, 17, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:37');
INSERT INTO `sys_oper_log` VALUES ('afb73107be6b4a85b910062f4669a603', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('afe0b2bb78f042d1a3f166e0cd5350ea', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 10, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:47:19');
INSERT INTO `sys_oper_log` VALUES ('b03769b676b14ca8b1110e67c104b16d', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:39');
INSERT INTO `sys_oper_log` VALUES ('b16b6ad824814d838e8307f1afd45bdd', NULL, 'GET', 'GET', NULL, '{}', NULL, 33, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:19');
INSERT INTO `sys_oper_log` VALUES ('b1bbee3d5b1e4db5838cbac8855632bb', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:05');
INSERT INTO `sys_oper_log` VALUES ('b1e1926a442a40ff9ab89b8f1e36afc5', NULL, 'GET', 'GET', NULL, '{}', NULL, 125, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-02 10:49:42');
INSERT INTO `sys_oper_log` VALUES ('b261a76f331647b89ba00231e1e28b0f', NULL, 'POST', 'POST', NULL, '{}', NULL, 40, '1', NULL, 0, '/tansci/system/menu/save', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:07:14');
INSERT INTO `sys_oper_log` VALUES ('b27eb6b79bdd4b00a5874b69b61dbdc5', NULL, 'POST', 'POST', NULL, '{}', NULL, 70, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:17:02');
INSERT INTO `sys_oper_log` VALUES ('b3013379f0a24ab2bfd1187a66b7072b', NULL, 'GET', 'GET', NULL, '{}', NULL, 28, '1', NULL, 0, '/tansci/system/menu/tree', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:06:07');
INSERT INTO `sys_oper_log` VALUES ('b629989c97a84171b868222646b5846c', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\",\"tableName\":\"ffff\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:17:03');
INSERT INTO `sys_oper_log` VALUES ('b7c610ce8e2941b9ac880f220bf59548', NULL, 'POST', 'POST', NULL, '{}', NULL, 99, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:20');
INSERT INTO `sys_oper_log` VALUES ('bcac98880b5a461cb364b5684bd81550', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:38');
INSERT INTO `sys_oper_log` VALUES ('bd2b821c4cf547fda63fa02b0453315b', NULL, 'GET', 'GET', NULL, '{}', NULL, 14, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:37:37');
INSERT INTO `sys_oper_log` VALUES ('bdeb63358bef4972b83135331a9042bf', NULL, 'GET', 'GET', NULL, '{}', NULL, 9, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:44:31');
INSERT INTO `sys_oper_log` VALUES ('c0fb8da9e1954c2f87cd7828993f2ba0', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 5, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:33');
INSERT INTO `sys_oper_log` VALUES ('c15ec39cf8d6498692df2199b08c84fa', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:21:38');
INSERT INTO `sys_oper_log` VALUES ('c2083a6774ee452789d820331729b90c', NULL, 'GET', 'GET', NULL, '{\"name\":\"lc_pages_menu\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:44:57');
INSERT INTO `sys_oper_log` VALUES ('c284be36f5e44d59a8686a93dba59ee6', NULL, 'POST', 'POST', NULL, '{\"subTableName\":\"\",\"columns\":\"[{\\\"columnName\\\":\\\"columns\\\",\\\"columnComment\\\":\\\"字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"createTime\\\",\\\"columnComment\\\":\\\"创建时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"dataSource\\\",\\\"columnComment\\\":\\\"数据源\\\",\\\"columnType\\\":\\\"varchar(50)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"info\\\",\\\"columnComment\\\":\\\"生成信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subColumns\\\",\\\"columnComment\\\":\\\"子表字段信息json\\\",\\\"columnType\\\":\\\"text\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableComment\\\",\\\"columnComment\\\":\\\"子表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"subTableName\\\",\\\"columnComment\\\":\\\"字表名称\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableComment\\\",\\\"columnComment\\\":\\\"表注释\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"tableName\\\",\\\"columnComment\\\":\\\"表名\\\",\\\"columnType\\\":\\\"varchar(255)\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false},{\\\"columnName\\\":\\\"updateTime\\\",\\\"columnComment\\\":\\\"更新时间\\\",\\\"columnType\\\":\\\"datetime\\\",\\\"component\\\":\\\"component: \'input\'\\\",\\\"where\\\":\\\"=\\\",\\\"save\\\":true,\\\"query\\\":true,\\\"list\\\":true,\\\"required\\\":false}]\",\"subColumns\":\"[]\",\"tableComment\":\"生成表信息\",\"dataSource\":\"tansci_boot\",\"tableName\":\"sys_gen\",\"info\":\"{\\\"moduleName\\\":\\\"api\\\",\\\"modulePath\\\":\\\"/api\\\",\\\"businessName\\\":\\\"aa\\\",\\\"businessPath\\\":\\\"/aa\\\",\\\"template\\\":\\\"single\\\",\\\"pid\\\":\\\"\\\",\\\"treeId\\\":\\\"\\\",\\\"treePid\\\":\\\"\\\",\\\"subTable\\\":\\\"\\\",\\\"subTableKey\\\":\\\"\\\"}\"}', NULL, 162, '1', NULL, 0, '/tansci/lowcode/generator/execute', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:27:15');
INSERT INTO `sys_oper_log` VALUES ('c331e33c89c84a87981d74797b97ff95', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:03');
INSERT INTO `sys_oper_log` VALUES ('c3ee16832daa4ccda840689a90350779', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:15');
INSERT INTO `sys_oper_log` VALUES ('c4012db9d30c406c8d432403c2115dd2', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:50:35');
INSERT INTO `sys_oper_log` VALUES ('c44f52aa52974ac89d3d751ea402574f', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:17:02');
INSERT INTO `sys_oper_log` VALUES ('c45308e6616f45b7aacb028805d477a0', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:40');
INSERT INTO `sys_oper_log` VALUES ('c515fff127b349f8a1f3386f08842f33', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('c5237ef6dcee4bfabe3897210a34b8d6', NULL, 'GET', 'GET', NULL, '{}', NULL, 67, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:44:31');
INSERT INTO `sys_oper_log` VALUES ('c58f23458ed44cb0bde33af29872a165', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:01');
INSERT INTO `sys_oper_log` VALUES ('c6753065e1f4495197bd47bb4c9f05bc', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:33:28');
INSERT INTO `sys_oper_log` VALUES ('c844e9ae03424ede9296fd2ddaf1a47d', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:17:20');
INSERT INTO `sys_oper_log` VALUES ('c93c2d78d64941aaa48f5f7e12540ff9', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:20');
INSERT INTO `sys_oper_log` VALUES ('c983814c023d4c1a802239997d8b7aeb', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('c9bc3d4c8a5944068bad6615e784af3d', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:15');
INSERT INTO `sys_oper_log` VALUES ('c9cb1229476b4aba8c81a8f571a99d9f', NULL, 'GET', 'GET', NULL, '{}', NULL, 7, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:54');
INSERT INTO `sys_oper_log` VALUES ('ca62a7d370074f51913ad14354d4ac7c', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:44:34');
INSERT INTO `sys_oper_log` VALUES ('cb213f1b1971463d8ef503f7379555d3', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:27');
INSERT INTO `sys_oper_log` VALUES ('cc1857f579214659a854fa9cc644dff9', NULL, 'GET', 'GET', NULL, '{\"total\":\"0\",\"size\":\"10\"}', NULL, 6, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:30:30');
INSERT INTO `sys_oper_log` VALUES ('cfcbe64f657d4f4398310b3933d871d9', NULL, 'GET', 'GET', NULL, '{}', NULL, 5, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:01');
INSERT INTO `sys_oper_log` VALUES ('cff7c28b76ca41c6b0e0e0f740960d59', NULL, 'GET', 'GET', NULL, '{}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:43');
INSERT INTO `sys_oper_log` VALUES ('d085f6e7d14a4694a6cd55bf2dff601c', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:17');
INSERT INTO `sys_oper_log` VALUES ('d13f20d5747f416fad752e273e74b574', NULL, 'POST', 'POST', NULL, '{}', NULL, 72, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:05');
INSERT INTO `sys_oper_log` VALUES ('d2421c5d6d634b459ada5c7c4e64b421', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:49');
INSERT INTO `sys_oper_log` VALUES ('d380ed52e2834a84b74a47bb1b0e7691', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:20:41');
INSERT INTO `sys_oper_log` VALUES ('d44fec11bc1249e6b8fea8fc56e48e5a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/pagesInfo/d2df5734-1ca6-11ee-8b16-e0be038740d4', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:18');
INSERT INTO `sys_oper_log` VALUES ('d4a79ba2baa24060ae6cb2b58a6a3e7a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:24:16');
INSERT INTO `sys_oper_log` VALUES ('d4afbc8cb76d4f8289529d36fa58ca16', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 1, '1', NULL, 0, '/tansci/lowcode/generator/page', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:33:28');
INSERT INTO `sys_oper_log` VALUES ('d6563830cd7b4024bb77158832f6c337', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 5, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:48:54');
INSERT INTO `sys_oper_log` VALUES ('d85a20204c8a4e07afc9c6c001e9972f', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:37');
INSERT INTO `sys_oper_log` VALUES ('da12395bf908420a87da19540a25df8f', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"aaaa\"}', NULL, 2, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:12:18');
INSERT INTO `sys_oper_log` VALUES ('dbca60c8260645afb9c86e0bd9951b42', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 8, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:15:59');
INSERT INTO `sys_oper_log` VALUES ('dd79bf16e66c4f889f0652d6c8509e03', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/user/info', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:20');
INSERT INTO `sys_oper_log` VALUES ('df6fe18996e34e26983c40e154d140df', NULL, 'GET', 'GET', NULL, '{}', NULL, 4, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('dfd4b390a1464378bca2dae7f49444cd', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 5, '1', NULL, 0, '/tansci/monitor/onlineUser', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:49:54');
INSERT INTO `sys_oper_log` VALUES ('e127f3b99c6f4e89958d717cacd1357a', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:43');
INSERT INTO `sys_oper_log` VALUES ('e17fa7b11e9c4ec5847f9178e052d8ef', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"total\":\"1\",\"size\":\"10\"}', NULL, 35, '1', NULL, 0, '/tansci/monitor/loginLog', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:31:38');
INSERT INTO `sys_oper_log` VALUES ('e252b91361f1492db4770b035893bc02', NULL, 'GET', 'GET', NULL, '{}', NULL, 1, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:06:47');
INSERT INTO `sys_oper_log` VALUES ('e39f38b3250f4b9c880accb0764d4ea2', NULL, 'DELETE', 'DELETE', NULL, '{}', NULL, 31, '1', NULL, 0, '/tansci/lowcode/generator/delete/a54cb7225aa84346843957cb3299ed1f', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:13:51');
INSERT INTO `sys_oper_log` VALUES ('e70b6d91c8e246a9a119ded9f156e190', NULL, 'GET', 'GET', NULL, '{}', NULL, 9, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:50:35');
INSERT INTO `sys_oper_log` VALUES ('e88ebcdfa1d74814876cb57703812214', NULL, 'POST', 'POST', NULL, '{}', NULL, 450, '1', NULL, 0, '/tansci/system/auth/login', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:09');
INSERT INTO `sys_oper_log` VALUES ('e969ac18596647ebb2c5f41aaab42d28', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:42');
INSERT INTO `sys_oper_log` VALUES ('e9daae9a038c445996fd1f487a3f6bb6', NULL, 'GET', 'GET', NULL, '{}', NULL, 2, '1', NULL, 0, '/tansci/system/dict/list', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:01');
INSERT INTO `sys_oper_log` VALUES ('eb2eac9b692c4f96969136edb0479d4e', NULL, 'GET', 'GET', NULL, '{}', NULL, 8, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:56:15');
INSERT INTO `sys_oper_log` VALUES ('eb65891eff0f428c90602843a348eebc', NULL, 'GET', 'GET', NULL, '{}', NULL, 14, '3ad1bd6b76c2e5573ea1805b7d68c6a9', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-02-26 15:37:10');
INSERT INTO `sys_oper_log` VALUES ('ec38b0142ca942a1bf1073a5878f04b0', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:40:09');
INSERT INTO `sys_oper_log` VALUES ('ec65e14c20474b5583560efaecb204aa', NULL, 'GET', 'GET', NULL, '{}', NULL, 17, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-26 14:23:12');
INSERT INTO `sys_oper_log` VALUES ('ef1271397f504bbb884b601747e69df3', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:09:37');
INSERT INTO `sys_oper_log` VALUES ('f01331ccc0c047d2ab432cac5667e40c', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 4, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:41:55');
INSERT INTO `sys_oper_log` VALUES ('f34101a8c21c433e94a7fb11c5c3e443', NULL, 'GET', 'GET', NULL, '{\"name\":\"tansci_boot\"}', NULL, 3, '1', NULL, 0, '/tansci/lowcode/generator/tables', '127.0.0.1', NULL, '2.0.0', '2024-02-02 12:26:48');
INSERT INTO `sys_oper_log` VALUES ('f413746dcfa441a98f37bfa5313468d0', NULL, 'GET', 'GET', NULL, '{\"name\":\"magic_api_backup\"}', NULL, 7, '1', NULL, 0, '/tansci/lowcode/generator/columns', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:17:26');
INSERT INTO `sys_oper_log` VALUES ('f858f9383b4d4da987c736a75b7607b4', NULL, 'GET', 'GET', NULL, '{\"current\":\"1\",\"size\":\"10\",\"title\":\"表格\"}', NULL, 1, '1', NULL, 0, '/tansci/lowcode/lcPages/page', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:44');
INSERT INTO `sys_oper_log` VALUES ('f8fae55f2eeb42b6ba0134de2a36e751', NULL, 'GET', 'GET', NULL, '{}', NULL, 14, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-02-02 11:03:10');
INSERT INTO `sys_oper_log` VALUES ('fa4ad9148014408da79d7d00d67734d2', NULL, 'GET', 'GET', NULL, '{}', NULL, 19, '1', NULL, 0, '/tansci/system/auth/code', '127.0.0.1', NULL, '2.0.0', '2024-01-12 10:50:38');
INSERT INTO `sys_oper_log` VALUES ('fda6924bea6e44c5b576a8555178c891', NULL, 'GET', 'GET', NULL, '{}', NULL, 12, '1', NULL, 0, '/tansci/system/menu/menus', '127.0.0.1', NULL, '2.0.0', '2024-01-12 11:11:33');

-- ----------------------------
-- Table structure for sys_org
-- ----------------------------
DROP TABLE IF EXISTS `sys_org`;
CREATE TABLE `sys_org`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键id',
  `parent_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '父id',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '名称',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '组织机构编码',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `is_del` int(1) UNSIGNED ZEROFILL NULL DEFAULT NULL COMMENT '删除状态：0、正常，1、删除',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '组织' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_org
-- ----------------------------
INSERT INTO `sys_org` VALUES ('534a37c366ec47878a6b0c85703d0001', '534a37c366ec47878a6b0c85703d0bc4', '兰州子公司', 'SO00002', 2, 0, '2023-03-29 08:53:41', '2023-03-29 08:53:43', NULL);
INSERT INTO `sys_org` VALUES ('534a37c366ec47878a6b0c85703d0bc4', '0', '总公司', 'SO00001', 0, 0, '2023-03-29 08:53:41', '2023-03-29 08:53:43', NULL);

-- ----------------------------
-- Table structure for sys_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '角色名称',
  `code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '角色编码',
  `permission` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '0：全部，1：自定义，2：本级级子级，3：本级',
  `sort` int NULL DEFAULT NULL COMMENT '排序',
  `is_del` int NULL DEFAULT 0 COMMENT '是否删除：0未删除，1已删除',
  `creator` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '描述',
  PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role` VALUES ('441b6dae329b3a20ad8b4f4ca8f83a0b', '普通用户', '1020cb789f', '2', 0, 0, '534a37c366ec47878a6b0c85703d0bc2', '2023-04-12 14:29:16', '2023-04-12 14:29:16', '');
INSERT INTO `sys_role` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '管理员', 'SR000001', '0', 0, 0, NULL, '2023-04-12 14:27:40', '2023-03-29 08:51:39', '管理员');

-- ----------------------------
-- Table structure for sys_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_menu`;
CREATE TABLE `sys_role_menu`  (
  `role_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色id',
  `menu_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '菜单id',
  PRIMARY KEY (`role_id`, `menu_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '角色和菜单关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_menu
-- ----------------------------
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '06936eec3258c1fa675c8b6b697160f5');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '07e1aebb5b69b55b7eb0ce79fed00f40');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '0a59255aac53f421613c4d8516fcc305');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '0e769d6164cff598ae7215c99849bd1c');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '11107c717306bd0d9e993cf32a94974e');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '120d967459a9e7323692b3fa49c1ba59');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '1cda1e6f35077cb1f89007fa36343a3d');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '1ec1c1cb127d83f6346904220b3ed20b');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '223588533ceb03066c89940863dc747e');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '3afbad18e475a7f7a4aeec6ab6e6c0fc');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '44979f524b88ed2dfbf14e4267ebd045');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '5de088a93f0828a57e4c70959831458b');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '5df7c65d51129baefee123ef3bc2d7de');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '5e67672047d0a00bf861ba2255535238');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '628431d108e3530ac37dfa2180dff376');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '7b02ec134bcd2a74b7930ce03da4b8bb');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '850a1c29af28318e6e470a14aaeb50e5');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '9658b61b187ae33b7c8c39fc8c1265dc');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', '9a36ed1841e3e6d2da32df17980edaa2');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a002');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a003');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a004');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a005');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a006');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a007');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a008');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a009');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a010');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b1851d1b13594e71840103c11a37a011');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b25838d6e06c6cdad82c1ad9b1096f26');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b4cfa05bff2269fee06788b32115851a');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b8db9ff560e383e59d604e19c9fbd3cb');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'b9401c42bc1e58e0a48e6b3308cff617');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'ea83fb03d2117cb287973d6889984686');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'ed9b00353e7f4cf6c446b2d631db8029');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f3138bd5b256d82f9eebe07c6679cf15');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0666');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0667');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0668');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0669');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0670');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0671');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'f8b972bc005a9c6691a43b76839b0675');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'fb9f883cfbacefcaf0805eeea895fd32');
INSERT INTO `sys_role_menu` VALUES ('534a37c366ec47878a6b0c85703d0bc3', 'fdaf429afb33d54beeee7eaea93e5e96');

-- ----------------------------
-- Table structure for sys_role_org
-- ----------------------------
DROP TABLE IF EXISTS `sys_role_org`;
CREATE TABLE `sys_role_org`  (
  `org_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '组织机构id',
  `role_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色id',
  PRIMARY KEY (`org_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户组织机构关联表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_role_org
-- ----------------------------
INSERT INTO `sys_role_org` VALUES ('534a37c366ec47878a6b0c85703d0bc4', '534a37c366ec47878a6b0c85703d0bc3');

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`  (
  `id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '主键',
  `username` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '登录名',
  `nickname` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '姓名/昵称',
  `password` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '密码',
  `type` int NULL DEFAULT NULL COMMENT '用户类型：1、管理员，2、普通用户',
  `phone` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '手机号',
  `avatar` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '头像',
  `gender` int NULL DEFAULT NULL COMMENT '性别：0、男，1、女',
  `birthday` date NULL DEFAULT NULL COMMENT '出生日期',
  `is_login` int NULL DEFAULT 0 COMMENT '禁止登录：0未禁用，1已禁用',
  `is_del` int NULL DEFAULT 0 COMMENT '删除标识：0未删除，1已删除',
  `open_id` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '唯一标识',
  `address` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '地址',
  `id_card` varchar(18) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '身份证号码',
  `email` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '邮箱',
  `create_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '创建人',
  `update_time` datetime NULL DEFAULT NULL COMMENT '更新时间',
  `create_time` datetime NULL DEFAULT NULL COMMENT '创建时间',
  `remarks` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
  PRIMARY KEY (`id`, `username`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user
-- ----------------------------
INSERT INTO `sys_user` VALUES ('1', 'admin', '管理员', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 1, NULL, NULL, 0, '2023-03-29', 0, 0, '', '', '', '', NULL, '2023-04-14 15:48:44', '2023-03-29 08:49:27', NULL);
INSERT INTO `sys_user` VALUES ('3ad1bd6b76c2e5573ea1805b7d68c6a9', 'system', '管理者', '8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6c92', 2, '18810011002', '', 0, '2023-04-03', 0, 0, NULL, '甘肃兰州', NULL, 'system@qq.com', NULL, '2023-07-07 11:08:29', '2023-04-13 14:41:21', '普通管理者');

-- ----------------------------
-- Table structure for sys_user_role
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_role`;
CREATE TABLE `sys_user_role`  (
  `user_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '用户id',
  `role_id` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL COMMENT '角色id',
  PRIMARY KEY (`user_id`, `role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci COMMENT = '用户角色' ROW_FORMAT = DYNAMIC;

-- ----------------------------
-- Records of sys_user_role
-- ----------------------------
INSERT INTO `sys_user_role` VALUES ('1', '534a37c366ec47878a6b0c85703d0bc3');
INSERT INTO `sys_user_role` VALUES ('3ad1bd6b76c2e5573ea1805b7d68c6a9', '441b6dae329b3a20ad8b4f4ca8f83a0b');

SET FOREIGN_KEY_CHECKS = 1;
