提供批量更新服务配置API(阶段性提交)

This commit is contained in:
刘祥超
2023-04-06 20:49:22 +08:00
parent 648fc2cac3
commit 199349084e
16 changed files with 680 additions and 8 deletions

View File

@@ -782,7 +782,7 @@
"name": "edgeAdmins",
"engine": "InnoDB",
"charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeAdmins` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `username` varchar(64) DEFAULT NULL COMMENT '用户名',\n `password` varchar(32) DEFAULT NULL COMMENT '密码',\n `fullname` varchar(64) DEFAULT NULL COMMENT '全名',\n `isSuper` tinyint(1) unsigned DEFAULT '0' COMMENT '是否为超级管理员',\n `createdAt` bigint(11) unsigned DEFAULT '0' COMMENT '创建时间',\n `updatedAt` bigint(11) unsigned DEFAULT '0' COMMENT '修改时间',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `modules` json DEFAULT NULL COMMENT '允许的模块',\n `canLogin` tinyint(1) unsigned DEFAULT '1' COMMENT '是否可以登录',\n `theme` varchar(64) DEFAULT NULL COMMENT '模板设置',\n PRIMARY KEY (`id`),\n KEY `username` (`username`) USING BTREE\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员'",
"definition": "CREATE TABLE `edgeAdmins` (\n `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `isOn` tinyint(1) unsigned DEFAULT '1' COMMENT '是否启用',\n `username` varchar(64) DEFAULT NULL COMMENT '用户名',\n `password` varchar(32) DEFAULT NULL COMMENT '密码',\n `fullname` varchar(64) DEFAULT NULL COMMENT '全名',\n `isSuper` tinyint(1) unsigned DEFAULT '0' COMMENT '是否为超级管理员',\n `createdAt` bigint(11) unsigned DEFAULT '0' COMMENT '创建时间',\n `updatedAt` bigint(11) unsigned DEFAULT '0' COMMENT '修改时间',\n `state` tinyint(1) unsigned DEFAULT '1' COMMENT '状态',\n `modules` json DEFAULT NULL COMMENT '允许的模块',\n `canLogin` tinyint(1) unsigned DEFAULT '1' COMMENT '是否可以登录',\n `theme` varchar(64) DEFAULT NULL COMMENT '模板设置',\n PRIMARY KEY (`id`),\n KEY `username` (`username`) USING BTREE,\n KEY `password` (`password`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='管理员'",
"fields": [
{
"name": "id",
@@ -841,6 +841,10 @@
{
"name": "username",
"definition": "KEY `username` (`username`) USING BTREE"
},
{
"name": "password",
"definition": "KEY `password` (`password`) USING BTREE"
}
],
"records": []
@@ -190143,6 +190147,53 @@
],
"records": []
},
{
"name": "edgeUpdatingServerLists",
"engine": "InnoDB",
"charset": "utf8mb4_general_ci",
"definition": "CREATE TABLE `edgeUpdatingServerLists` (\n `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID',\n `clusterId` int(11) unsigned DEFAULT '0' COMMENT '集群ID',\n `uniqueId` varchar(32) DEFAULT NULL COMMENT '唯一ID',\n `serverIds` json DEFAULT NULL COMMENT '服务IDs',\n `day` varchar(8) DEFAULT NULL COMMENT '创建日期',\n PRIMARY KEY (`id`),\n UNIQUE KEY `uniqueId` (`uniqueId`),\n KEY `clusterId` (`clusterId`),\n KEY `day` (`day`)\n) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='待更新服务列表'",
"fields": [
{
"name": "id",
"definition": "bigint(20) unsigned auto_increment COMMENT 'ID'"
},
{
"name": "clusterId",
"definition": "int(11) unsigned DEFAULT '0' COMMENT '集群ID'"
},
{
"name": "uniqueId",
"definition": "varchar(32) COMMENT '唯一ID'"
},
{
"name": "serverIds",
"definition": "json COMMENT '服务IDs'"
},
{
"name": "day",
"definition": "varchar(8) COMMENT '创建日期'"
}
],
"indexes": [
{
"name": "PRIMARY",
"definition": "UNIQUE KEY `PRIMARY` (`id`) USING BTREE"
},
{
"name": "uniqueId",
"definition": "UNIQUE KEY `uniqueId` (`uniqueId`) USING BTREE"
},
{
"name": "clusterId",
"definition": "KEY `clusterId` (`clusterId`) USING BTREE"
},
{
"name": "day",
"definition": "KEY `day` (`day`) USING BTREE"
}
],
"records": []
},
{
"name": "edgeUserADInstances",
"engine": "InnoDB",