diff --git a/aspnet-core/database/ApiGateway-Init.sql b/aspnet-core/database/ApiGateway-Init.sql index 2b32fe50e..66dea66c0 100644 --- a/aspnet-core/database/ApiGateway-Init.sql +++ b/aspnet-core/database/ApiGateway-Init.sql @@ -1,1770 +1,1761 @@ -/* - Navicat Premium Data Transfer - - Source Server : 本机服务器 - Source Server Type : MySQL - Source Server Version : 80020 - Source Host : localhost:3306 - Source Schema : apigateway - - Target Server Type : MySQL - Target Server Version : 80020 - File Encoding : 65001 - - Date: 29/03/2021 21:22:25 -*/ - -SET NAMES utf8mb4; -SET FOREIGN_KEY_CHECKS = 0; - --- ---------------------------- --- Table structure for __efmigrationshistory --- ---------------------------- -DROP TABLE IF EXISTS `__efmigrationshistory`; -CREATE TABLE `__efmigrationshistory` ( - `MigrationId` varchar(95) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, - `ProductVersion` varchar(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, - PRIMARY KEY (`MigrationId`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of __efmigrationshistory --- ---------------------------- -INSERT INTO `__efmigrationshistory` VALUES ('20200513034946_Migration-ApiGateway-MySql', '3.1.3'); -INSERT INTO `__efmigrationshistory` VALUES ('20200513111130_Rename-Router-To-RouteGroup', '3.1.3'); -INSERT INTO `__efmigrationshistory` VALUES ('20200618090102_Modify-ReRoute-Index-Unique', '3.1.4'); -INSERT INTO `__efmigrationshistory` VALUES ('20200908020925_Upgrade-abp-3.1.0', '3.1.7'); - --- ---------------------------- --- Table structure for appapigatewayaggregate --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayaggregate`; -CREATE TABLE `appapigatewayaggregate` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `Name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ReRouteId` bigint(0) NOT NULL, - `ReRouteKeys` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `UpstreamPathTemplate` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `UpstreamHost` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `ReRouteIsCaseSensitive` tinyint(1) NOT NULL DEFAULT 0, - `Aggregator` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Priority` int(0) NULL DEFAULT NULL, - `UpstreamHttpMethod` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayaggregate --- ---------------------------- -INSERT INTO `appapigatewayaggregate` VALUES (5, '{}', '90044e20fde546bab1bdd45999f8208a', 'TEST-APP', 'abp接口代理服务', 1263083077348196352, 'platform-api-definition,backend-admin-api-definition,messages-api-definition,apigateway-api-definition,identity-server-api-definition,localization-api-definition,', '/api/abp/api-definition', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); -INSERT INTO `appapigatewayaggregate` VALUES (6, '{}', '870a2c5df9b34f8c9514aef0250fbb47', 'TEST-APP', 'abp框架配置', 1263102116090970112, 'apigateway-configuration,platform-configuration,backend-admin-configuration,messages-configuration,identity-server-configuration,', '/api/abp/application-configuration', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); -INSERT INTO `appapigatewayaggregate` VALUES (8, '{}', 'edc962f7e0844bb09cb0fb731f358b4b', 'TEST-APP', '我的消息订阅', 1322503807309881344, 'assignables-notifilers,my-subscribes,', '/api/my-subscribes/assignables-notifilers', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); -INSERT INTO `appapigatewayaggregate` VALUES (9, '{}', 'c65227b8a0e143b2a0b6186ffde3dfc1', 'TEST-APP', '全局设置', 1329708867127799808, 'setting-global,wechat-setting-global,aliyun-setting-global,oss-management-global,', '/api/setting-management/settings/by-global', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); -INSERT INTO `appapigatewayaggregate` VALUES (10, '{}', '29fb4cbfcdfe41478b931df8c549992b', 'TEST-APP', '当前租户设置', 1329709265255329792, 'setting-current-tenant,wechat-setting-current-tenant,aliyun-setting-current-tenant,oss-management-current-tenant,', '/api/setting-management/settings/by-current-tenant', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); - --- ---------------------------- --- Table structure for appapigatewayaggregateconfig --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayaggregateconfig`; -CREATE TABLE `appapigatewayaggregateconfig` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `ReRouteKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Parameter` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `JsonPath` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AggregateReRouteId` int(0) NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - INDEX `IX_AppApiGatewayAggregateConfig_AggregateReRouteId`(`AggregateReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayAggregateConfig_AppApiGatewayAggregate_Aggregat~` FOREIGN KEY (`AggregateReRouteId`) REFERENCES `appapigatewayaggregate` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Table structure for appapigatewayauthoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayauthoptions`; -CREATE TABLE `appapigatewayauthoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `AuthenticationProviderKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AllowedScopes` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayAuthOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayAuthOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayauthoptions --- ---------------------------- -INSERT INTO `appapigatewayauthoptions` VALUES (3, 1261299170387169280, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (4, 1261585859064872960, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (5, 1261586605810368512, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (6, 1261587558609436672, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (7, 1261588213298348032, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (8, 1261588367619375104, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (9, 1261588628450557952, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (10, 1261588881564221440, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (11, 1261588983053795328, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (12, 1261589139039961088, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (13, 1261589197483393024, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (14, 1261589278857084928, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (15, 1261589420356124672, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (16, 1261589960393736192, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (17, 1261606600242085888, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (18, 1261606689601732608, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (21, 1262220447629058048, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (22, 1262230734939758592, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (23, 1262296916350869504, NULL, ''); -INSERT INTO `appapigatewayauthoptions` VALUES (24, 1262632376348594176, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (25, 1262632791869902848, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (28, 1262660336921235456, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (29, 1262660528277966848, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (30, 1262660706875625472, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (31, 1262660966393991168, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (32, 1262661109474283520, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (33, 1262663888804663296, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (34, 1262664024096133120, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (35, 1262664186252120064, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (36, 1262664357044178944, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (37, 1262664632928718848, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (38, 1262664751409418240, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (39, 1262664871274237952, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (40, 1262665026111164416, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (41, 1262665159905267712, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (42, 1262665329829105664, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (43, 1262665456471920640, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (44, 1262665628165754880, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (45, 1262666172682883072, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (47, 1262723402331885568, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (48, 1262935771746734080, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (49, 1262935906522304512, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (52, 1263074419073593344, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (53, 1263075249394790400, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (54, 1263075593499684864, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (56, 1263101898440146944, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (57, 1263303878648569856, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (58, 1263304204797648896, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (59, 1263304872891555840, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (60, 1263305106250047488, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (61, 1263305244594970624, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (62, 1263305430536855552, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (63, 1263639172959174656, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (64, 1264799968944640000, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (65, 1264800070161584128, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (66, 1267360794414161920, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (67, 1267383367629807616, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (68, 1267817055527632896, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (69, 1267817221286526976, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (70, 1268893687085518848, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (94, 1288657613998579712, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (95, 1288657941770854400, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (96, 1288658134067109888, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (97, 1288658305156964352, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (98, 1288658491216289792, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (99, 1288658638302142464, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (100, 1288658791784308736, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (101, 1290849478956199936, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (102, 1290849628051124224, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (103, 1290849798553776128, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (105, 1291259822512693248, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (114, 1293470838745821184, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (115, 1293471661785706496, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (116, 1293472678392721408, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (117, 1293472857510473728, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (118, 1299273336009359360, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (119, 1299273436282585088, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (120, 1299273618470567936, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (121, 1299273770182737920, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (122, 1299273978023084032, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (123, 1299274123225694208, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (124, 1299274222299348992, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (125, 1304238876758495232, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (126, 1304678610343383040, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (127, 1304679169305694208, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (128, 1310460417141817344, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (129, 1310502391475519488, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (130, 1310515546943569920, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (131, 1310515735292985344, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (132, 1316628769783480320, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (133, 1316628940663619584, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (134, 1316629112428756992, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (135, 1316652047017246720, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (136, 1316913899996737536, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (137, 1319200951383199744, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (138, 1319221929807024128, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (139, 1319554431134306304, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (140, 1319554550458060800, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (141, 1319554948434595840, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (142, 1319555067183730688, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (143, 1319555230765780992, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (144, 1319555333790470144, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (145, 1321001932510203904, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (146, 1321002059803136000, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (147, 1321002256440496128, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (148, 1321002350686507008, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (149, 1322190027988525056, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (150, 1322452079688458240, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (151, 1322452183929495552, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (152, 1322452308651319296, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (153, 1322452858176446464, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (154, 1322452989235863552, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (155, 1322453089655889920, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (156, 1329706860249804800, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (157, 1329707002411544576, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (158, 1329708512277098496, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (159, 1329708625917571072, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (160, 1335049839287357440, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (161, 1335050034221830144, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (162, 1335050145899368448, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (163, 1335050283434790912, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (164, 1335050381770248192, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (165, 1335050520941449216, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (166, 1335050615829188608, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (167, 1335111798720450560, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (168, 1335118541370314752, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (169, 1335118660417245184, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (170, 1335118782727344128, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (171, 1335118903200337920, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (172, 1336230645078921216, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (173, 1337314809113722880, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (174, 1337314938973569024, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (175, 1340961907637243904, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (176, 1341652247554379776, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (177, 1341652385555369984, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (178, 1342457939827552256, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (179, 1342458050112581632, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (180, 1363382062055915520, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (181, 1363382298501414912, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (182, 1368854800347848704, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (183, 1368855936576413696, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (184, 1368856295889854464, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (185, 1368856703572008960, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (186, 1368856819242524672, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (187, 1368856927887581184, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (188, 1368857128383700992, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (189, 1369560306297233408, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (190, 1369560450472239104, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (191, 1371705034307375104, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (192, 1376442078396276736, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (193, 1376442309850554368, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (194, 1376442440536678400, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (195, 1376442557943635968, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (196, 1376442689674141696, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (197, 1376442971032248320, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (198, 1376443123021242368, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (199, 1376443238851141632, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (200, 1376443392249421824, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (201, 1376443586777047040, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (202, 1376467826087682048, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (203, 1376467990894469120, '', ''); -INSERT INTO `appapigatewayauthoptions` VALUES (204, 1376468110214029312, '', ''); - --- ---------------------------- --- Table structure for appapigatewaybalanceroptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewaybalanceroptions`; -CREATE TABLE `appapigatewaybalanceroptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ItemId` bigint(0) NULL DEFAULT NULL, - `ReRouteId` bigint(0) NULL DEFAULT NULL, - `Type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Expiry` int(0) NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayBalancerOptions_ItemId`(`ItemId`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayBalancerOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayBalancerOptions_AppApiGatewayGlobalConfiguratio~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, - CONSTRAINT `FK_AppApiGatewayBalancerOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewaybalanceroptions --- ---------------------------- -INSERT INTO `appapigatewaybalanceroptions` VALUES (1, 1260841964962947072, NULL, 'LeastConnection', NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (4, NULL, 1261299170387169280, 'LeastConnection', NULL, 60000); -INSERT INTO `appapigatewaybalanceroptions` VALUES (5, NULL, 1261585859064872960, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (6, NULL, 1261586605810368512, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (7, NULL, 1261587558609436672, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (8, NULL, 1261588213298348032, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (9, NULL, 1261588367619375104, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (10, NULL, 1261588628450557952, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (11, NULL, 1261588881564221440, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (12, NULL, 1261588983053795328, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (13, NULL, 1261589139039961088, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (14, NULL, 1261589197483393024, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (15, NULL, 1261589278857084928, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (16, NULL, 1261589420356124672, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (17, NULL, 1261589960393736192, 'LeastConnection', NULL, 60000); -INSERT INTO `appapigatewaybalanceroptions` VALUES (18, NULL, 1261606600242085888, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (19, NULL, 1261606689601732608, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (22, NULL, 1262220447629058048, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (23, NULL, 1262230734939758592, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (24, NULL, 1262296916350869504, NULL, NULL, NULL); -INSERT INTO `appapigatewaybalanceroptions` VALUES (25, NULL, 1262632376348594176, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (26, NULL, 1262632791869902848, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (29, NULL, 1262660336921235456, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (30, NULL, 1262660528277966848, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (31, NULL, 1262660706875625472, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (32, NULL, 1262660966393991168, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (33, NULL, 1262661109474283520, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (34, NULL, 1262663888804663296, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (35, NULL, 1262664024096133120, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (36, NULL, 1262664186252120064, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (37, NULL, 1262664357044178944, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (38, NULL, 1262664632928718848, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (39, NULL, 1262664751409418240, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (40, NULL, 1262664871274237952, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (41, NULL, 1262665026111164416, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (42, NULL, 1262665159905267712, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (43, NULL, 1262665329829105664, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (44, NULL, 1262665456471920640, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (45, NULL, 1262665628165754880, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (46, NULL, 1262666172682883072, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (48, NULL, 1262723402331885568, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (49, NULL, 1262935771746734080, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (50, NULL, 1262935906522304512, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (53, NULL, 1263074419073593344, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (54, NULL, 1263075249394790400, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (55, NULL, 1263075593499684864, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (57, NULL, 1263101898440146944, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (58, NULL, 1263303878648569856, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (59, NULL, 1263304204797648896, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (60, NULL, 1263304872891555840, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (61, NULL, 1263305106250047488, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (62, NULL, 1263305244594970624, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (63, NULL, 1263305430536855552, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (64, NULL, 1263639172959174656, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (65, NULL, 1264799968944640000, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (66, NULL, 1264800070161584128, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (68, NULL, 1267360794414161920, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (69, NULL, 1267383367629807616, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (70, NULL, 1267817055527632896, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (71, NULL, 1267817221286526976, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (72, NULL, 1268893687085518848, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (97, NULL, 1288657613998579712, 'LeastConnection', '', 60000); -INSERT INTO `appapigatewaybalanceroptions` VALUES (98, NULL, 1288657941770854400, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (99, NULL, 1288658134067109888, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (100, NULL, 1288658305156964352, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (101, NULL, 1288658491216289792, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (102, NULL, 1288658638302142464, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (103, NULL, 1288658791784308736, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (104, NULL, 1290849478956199936, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (105, NULL, 1290849628051124224, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (106, NULL, 1290849798553776128, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (108, NULL, 1291259822512693248, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (117, NULL, 1293470838745821184, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (118, NULL, 1293471661785706496, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (119, NULL, 1293472678392721408, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (120, NULL, 1293472857510473728, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (121, NULL, 1299273336009359360, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (122, NULL, 1299273436282585088, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (123, NULL, 1299273618470567936, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (124, NULL, 1299273770182737920, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (125, NULL, 1299273978023084032, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (126, NULL, 1299274123225694208, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (127, NULL, 1299274222299348992, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (128, NULL, 1304238876758495232, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (129, NULL, 1304678610343383040, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (130, NULL, 1304679169305694208, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (131, NULL, 1310460417141817344, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (132, NULL, 1310502391475519488, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (133, NULL, 1310515546943569920, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (134, NULL, 1310515735292985344, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (135, NULL, 1316628769783480320, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (136, NULL, 1316628940663619584, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (137, NULL, 1316629112428756992, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (138, NULL, 1316652047017246720, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (139, NULL, 1316913899996737536, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (140, NULL, 1319200951383199744, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (141, NULL, 1319221929807024128, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (142, NULL, 1319554431134306304, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (143, NULL, 1319554550458060800, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (144, NULL, 1319554948434595840, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (145, NULL, 1319555067183730688, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (146, NULL, 1319555230765780992, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (147, NULL, 1319555333790470144, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (148, NULL, 1321001932510203904, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (149, NULL, 1321002059803136000, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (150, NULL, 1321002256440496128, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (151, NULL, 1321002350686507008, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (152, NULL, 1322190027988525056, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (153, NULL, 1322452079688458240, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (154, NULL, 1322452183929495552, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (155, NULL, 1322452308651319296, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (156, NULL, 1322452858176446464, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (157, NULL, 1322452989235863552, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (158, NULL, 1322453089655889920, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (159, NULL, 1329706860249804800, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (160, NULL, 1329707002411544576, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (161, NULL, 1329708512277098496, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (162, NULL, 1329708625917571072, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (163, NULL, 1335049839287357440, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (164, NULL, 1335050034221830144, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (165, NULL, 1335050145899368448, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (166, NULL, 1335050283434790912, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (167, NULL, 1335050381770248192, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (168, NULL, 1335050520941449216, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (169, NULL, 1335050615829188608, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (170, NULL, 1335111798720450560, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (171, NULL, 1335118541370314752, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (172, NULL, 1335118660417245184, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (173, NULL, 1335118782727344128, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (174, NULL, 1335118903200337920, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (175, NULL, 1336230645078921216, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (176, NULL, 1337314809113722880, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (177, NULL, 1337314938973569024, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (178, NULL, 1340961907637243904, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (179, NULL, 1341652247554379776, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (180, NULL, 1341652385555369984, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (181, NULL, 1342457939827552256, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (182, NULL, 1342458050112581632, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (183, NULL, 1363382062055915520, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (184, NULL, 1363382298501414912, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (185, NULL, 1368854800347848704, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (186, NULL, 1368855936576413696, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (187, NULL, 1368856295889854464, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (188, NULL, 1368856703572008960, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (189, NULL, 1368856819242524672, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (190, NULL, 1368856927887581184, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (191, NULL, 1368857128383700992, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (192, NULL, 1369560306297233408, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (193, NULL, 1369560450472239104, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (194, NULL, 1371705034307375104, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (195, NULL, 1376442078396276736, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (196, NULL, 1376442309850554368, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (197, NULL, 1376442440536678400, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (198, NULL, 1376442557943635968, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (199, NULL, 1376442689674141696, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (200, NULL, 1376442971032248320, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (201, NULL, 1376443123021242368, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (202, NULL, 1376443238851141632, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (203, NULL, 1376443392249421824, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (204, NULL, 1376443586777047040, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (205, NULL, 1376467826087682048, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (206, NULL, 1376467990894469120, '', '', 0); -INSERT INTO `appapigatewaybalanceroptions` VALUES (207, NULL, 1376468110214029312, '', '', 0); - --- ---------------------------- --- Table structure for appapigatewaycacheoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewaycacheoptions`; -CREATE TABLE `appapigatewaycacheoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `TtlSeconds` int(0) NULL DEFAULT NULL, - `Region` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayCacheOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayCacheOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewaycacheoptions --- ---------------------------- -INSERT INTO `appapigatewaycacheoptions` VALUES (3, 1261299170387169280, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (4, 1261585859064872960, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (5, 1261586605810368512, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (6, 1261587558609436672, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (7, 1261588213298348032, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (8, 1261588367619375104, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (9, 1261588628450557952, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (10, 1261588881564221440, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (11, 1261588983053795328, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (12, 1261589139039961088, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (13, 1261589197483393024, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (14, 1261589278857084928, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (15, 1261589420356124672, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (16, 1261589960393736192, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (17, 1261606600242085888, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (18, 1261606689601732608, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (21, 1262220447629058048, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (22, 1262230734939758592, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (23, 1262296916350869504, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (24, 1262632376348594176, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (25, 1262632791869902848, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (28, 1262660336921235456, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (29, 1262660528277966848, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (30, 1262660706875625472, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (31, 1262660966393991168, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (32, 1262661109474283520, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (33, 1262663888804663296, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (34, 1262664024096133120, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (35, 1262664186252120064, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (36, 1262664357044178944, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (37, 1262664632928718848, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (38, 1262664751409418240, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (39, 1262664871274237952, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (40, 1262665026111164416, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (41, 1262665159905267712, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (42, 1262665329829105664, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (43, 1262665456471920640, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (44, 1262665628165754880, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (45, 1262666172682883072, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (47, 1262723402331885568, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (48, 1262935771746734080, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (49, 1262935906522304512, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (52, 1263074419073593344, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (53, 1263075249394790400, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (54, 1263075593499684864, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (56, 1263101898440146944, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (57, 1263303878648569856, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (58, 1263304204797648896, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (59, 1263304872891555840, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (60, 1263305106250047488, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (61, 1263305244594970624, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (62, 1263305430536855552, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (63, 1263639172959174656, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (64, 1264799968944640000, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (65, 1264800070161584128, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (66, 1267360794414161920, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (67, 1267383367629807616, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (68, 1267817055527632896, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (69, 1267817221286526976, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (70, 1268893687085518848, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (94, 1288657613998579712, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (95, 1288657941770854400, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (96, 1288658134067109888, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (97, 1288658305156964352, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (98, 1288658491216289792, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (99, 1288658638302142464, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (100, 1288658791784308736, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (101, 1290849478956199936, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (102, 1290849628051124224, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (103, 1290849798553776128, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (105, 1291259822512693248, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (114, 1293470838745821184, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (115, 1293471661785706496, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (116, 1293472678392721408, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (117, 1293472857510473728, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (118, 1299273336009359360, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (119, 1299273436282585088, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (120, 1299273618470567936, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (121, 1299273770182737920, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (122, 1299273978023084032, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (123, 1299274123225694208, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (124, 1299274222299348992, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (125, 1304238876758495232, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (126, 1304678610343383040, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (127, 1304679169305694208, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (128, 1310460417141817344, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (129, 1310502391475519488, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (130, 1310515546943569920, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (131, 1310515735292985344, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (132, 1316628769783480320, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (133, 1316628940663619584, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (134, 1316629112428756992, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (135, 1316652047017246720, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (136, 1316913899996737536, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (137, 1319200951383199744, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (138, 1319221929807024128, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (139, 1319554431134306304, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (140, 1319554550458060800, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (141, 1319554948434595840, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (142, 1319555067183730688, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (143, 1319555230765780992, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (144, 1319555333790470144, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (145, 1321001932510203904, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (146, 1321002059803136000, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (147, 1321002256440496128, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (148, 1321002350686507008, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (149, 1322190027988525056, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (150, 1322452079688458240, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (151, 1322452183929495552, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (152, 1322452308651319296, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (153, 1322452858176446464, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (154, 1322452989235863552, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (155, 1322453089655889920, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (156, 1329706860249804800, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (157, 1329707002411544576, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (158, 1329708512277098496, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (159, 1329708625917571072, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (160, 1335049839287357440, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (161, 1335050034221830144, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (162, 1335050145899368448, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (163, 1335050283434790912, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (164, 1335050381770248192, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (165, 1335050520941449216, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (166, 1335050615829188608, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (167, 1335111798720450560, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (168, 1335118541370314752, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (169, 1335118660417245184, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (170, 1335118782727344128, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (171, 1335118903200337920, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (172, 1336230645078921216, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (173, 1337314809113722880, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (174, 1337314938973569024, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (175, 1340961907637243904, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (176, 1341652247554379776, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (177, 1341652385555369984, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (178, 1342457939827552256, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (179, 1342458050112581632, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (180, 1363382062055915520, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (181, 1363382298501414912, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (182, 1368854800347848704, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (183, 1368855936576413696, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (184, 1368856295889854464, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (185, 1368856703572008960, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (186, 1368856819242524672, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (187, 1368856927887581184, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (188, 1368857128383700992, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (189, 1369560306297233408, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (190, 1369560450472239104, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (191, 1371705034307375104, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (192, 1376442078396276736, NULL, NULL); -INSERT INTO `appapigatewaycacheoptions` VALUES (193, 1376442309850554368, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (194, 1376442440536678400, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (195, 1376442557943635968, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (196, 1376442689674141696, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (197, 1376442971032248320, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (198, 1376443123021242368, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (199, 1376443238851141632, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (200, 1376443392249421824, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (201, 1376443586777047040, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (202, 1376467826087682048, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (203, 1376467990894469120, 0, ''); -INSERT INTO `appapigatewaycacheoptions` VALUES (204, 1376468110214029312, 0, ''); - --- ---------------------------- --- Table structure for appapigatewaydiscovery --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewaydiscovery`; -CREATE TABLE `appapigatewaydiscovery` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ItemId` bigint(0) NOT NULL, - `Host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Port` int(0) NULL DEFAULT NULL, - `Type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Token` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `ConfigurationKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `PollingInterval` int(0) NULL DEFAULT NULL, - `Namespace` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Scheme` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayDiscovery_ItemId`(`ItemId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayDiscovery_AppApiGatewayGlobalConfiguration_Item~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewaydiscovery --- ---------------------------- -INSERT INTO `appapigatewaydiscovery` VALUES (1, 1260841964962947072, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); - --- ---------------------------- --- Table structure for appapigatewaydynamicreroute --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewaydynamicreroute`; -CREATE TABLE `appapigatewaydynamicreroute` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `DynamicReRouteId` bigint(0) NOT NULL, - `ServiceName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `AK_AppApiGatewayDynamicReRoute_DynamicReRouteId`(`DynamicReRouteId`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Table structure for appapigatewayglobalconfiguration --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayglobalconfiguration`; -CREATE TABLE `appapigatewayglobalconfiguration` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `ItemId` bigint(0) NOT NULL, - `RequestIdKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `BaseUrl` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `DownstreamScheme` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `IsDeleted` tinyint(1) NOT NULL DEFAULT 0, - `IsActive` tinyint(1) NOT NULL, - `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `AK_AppApiGatewayGlobalConfiguration_ItemId`(`ItemId`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayglobalconfiguration --- ---------------------------- -INSERT INTO `appapigatewayglobalconfiguration` VALUES (1, '{}', 'f7973118f2c2425c8cc96b59883b99aa', 1260841964962947072, NULL, 'http://localhost:30000', 'HTTP', NULL, 0, 1, 'TEST-APP'); - --- ---------------------------- --- Table structure for appapigatewayheaders --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayheaders`; -CREATE TABLE `appapigatewayheaders` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `Key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Value` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Table structure for appapigatewayhostandport --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayhostandport`; -CREATE TABLE `appapigatewayhostandport` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `Host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `Port` int(0) NULL DEFAULT 0, - PRIMARY KEY (`Id`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Table structure for appapigatewayhttpoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayhttpoptions`; -CREATE TABLE `appapigatewayhttpoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ItemId` bigint(0) NULL DEFAULT NULL, - `ReRouteId` bigint(0) NULL DEFAULT NULL, - `MaxConnectionsPerServer` int(0) NULL DEFAULT NULL, - `AllowAutoRedirect` tinyint(1) NOT NULL, - `UseCookieContainer` tinyint(1) NOT NULL, - `UseTracing` tinyint(1) NOT NULL, - `UseProxy` tinyint(1) NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayHttpOptions_ItemId`(`ItemId`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayHttpOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayHttpOptions_AppApiGatewayGlobalConfiguration_It~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, - CONSTRAINT `FK_AppApiGatewayHttpOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayhttpoptions --- ---------------------------- -INSERT INTO `appapigatewayhttpoptions` VALUES (1, 1260841964962947072, NULL, NULL, 0, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (4, NULL, 1261299170387169280, 1000, 1, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (5, NULL, 1261585859064872960, NULL, 0, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (6, NULL, 1261586605810368512, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (7, NULL, 1261587558609436672, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (8, NULL, 1261588213298348032, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (9, NULL, 1261588367619375104, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (10, NULL, 1261588628450557952, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (11, NULL, 1261588881564221440, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (12, NULL, 1261588983053795328, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (13, NULL, 1261589139039961088, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (14, NULL, 1261589197483393024, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (15, NULL, 1261589278857084928, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (16, NULL, 1261589420356124672, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (17, NULL, 1261589960393736192, 1000, 1, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (18, NULL, 1261606600242085888, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (19, NULL, 1261606689601732608, NULL, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (22, NULL, 1262220447629058048, NULL, 0, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (23, NULL, 1262230734939758592, NULL, 0, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (24, NULL, 1262296916350869504, NULL, 0, 0, 1, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (25, NULL, 1262632376348594176, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (26, NULL, 1262632791869902848, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (29, NULL, 1262660336921235456, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (30, NULL, 1262660528277966848, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (31, NULL, 1262660706875625472, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (32, NULL, 1262660966393991168, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (33, NULL, 1262661109474283520, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (34, NULL, 1262663888804663296, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (35, NULL, 1262664024096133120, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (36, NULL, 1262664186252120064, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (37, NULL, 1262664357044178944, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (38, NULL, 1262664632928718848, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (39, NULL, 1262664751409418240, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (40, NULL, 1262664871274237952, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (41, NULL, 1262665026111164416, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (42, NULL, 1262665159905267712, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (43, NULL, 1262665329829105664, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (44, NULL, 1262665456471920640, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (45, NULL, 1262665628165754880, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (46, NULL, 1262666172682883072, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (48, NULL, 1262723402331885568, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (49, NULL, 1262935771746734080, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (50, NULL, 1262935906522304512, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (53, NULL, 1263074419073593344, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (54, NULL, 1263075249394790400, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (55, NULL, 1263075593499684864, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (57, NULL, 1263101898440146944, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (58, NULL, 1263303878648569856, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (59, NULL, 1263304204797648896, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (60, NULL, 1263304872891555840, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (61, NULL, 1263305106250047488, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (62, NULL, 1263305244594970624, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (63, NULL, 1263305430536855552, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (64, NULL, 1263639172959174656, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (65, NULL, 1264799968944640000, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (66, NULL, 1264800070161584128, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (68, NULL, 1267360794414161920, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (69, NULL, 1267383367629807616, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (70, NULL, 1267817055527632896, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (71, NULL, 1267817221286526976, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (72, NULL, 1268893687085518848, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (97, NULL, 1288657613998579712, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (98, NULL, 1288657941770854400, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (99, NULL, 1288658134067109888, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (100, NULL, 1288658305156964352, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (101, NULL, 1288658491216289792, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (102, NULL, 1288658638302142464, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (103, NULL, 1288658791784308736, 1000, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (104, NULL, 1290849478956199936, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (105, NULL, 1290849628051124224, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (106, NULL, 1290849798553776128, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (108, NULL, 1291259822512693248, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (117, NULL, 1293470838745821184, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (118, NULL, 1293471661785706496, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (119, NULL, 1293472678392721408, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (120, NULL, 1293472857510473728, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (121, NULL, 1299273336009359360, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (122, NULL, 1299273436282585088, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (123, NULL, 1299273618470567936, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (124, NULL, 1299273770182737920, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (125, NULL, 1299273978023084032, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (126, NULL, 1299274123225694208, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (127, NULL, 1299274222299348992, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (128, NULL, 1304238876758495232, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (129, NULL, 1304678610343383040, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (130, NULL, 1304679169305694208, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (131, NULL, 1310460417141817344, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (132, NULL, 1310502391475519488, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (133, NULL, 1310515546943569920, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (134, NULL, 1310515735292985344, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (135, NULL, 1316628769783480320, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (136, NULL, 1316628940663619584, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (137, NULL, 1316629112428756992, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (138, NULL, 1316652047017246720, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (139, NULL, 1316913899996737536, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (140, NULL, 1319200951383199744, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (141, NULL, 1319221929807024128, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (142, NULL, 1319554431134306304, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (143, NULL, 1319554550458060800, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (144, NULL, 1319554948434595840, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (145, NULL, 1319555067183730688, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (146, NULL, 1319555230765780992, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (147, NULL, 1319555333790470144, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (148, NULL, 1321001932510203904, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (149, NULL, 1321002059803136000, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (150, NULL, 1321002256440496128, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (151, NULL, 1321002350686507008, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (152, NULL, 1322190027988525056, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (153, NULL, 1322452079688458240, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (154, NULL, 1322452183929495552, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (155, NULL, 1322452308651319296, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (156, NULL, 1322452858176446464, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (157, NULL, 1322452989235863552, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (158, NULL, 1322453089655889920, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (159, NULL, 1329706860249804800, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (160, NULL, 1329707002411544576, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (161, NULL, 1329708512277098496, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (162, NULL, 1329708625917571072, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (163, NULL, 1335049839287357440, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (164, NULL, 1335050034221830144, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (165, NULL, 1335050145899368448, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (166, NULL, 1335050283434790912, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (167, NULL, 1335050381770248192, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (168, NULL, 1335050520941449216, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (169, NULL, 1335050615829188608, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (170, NULL, 1335111798720450560, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (171, NULL, 1335118541370314752, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (172, NULL, 1335118660417245184, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (173, NULL, 1335118782727344128, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (174, NULL, 1335118903200337920, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (175, NULL, 1336230645078921216, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (176, NULL, 1337314809113722880, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (177, NULL, 1337314938973569024, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (178, NULL, 1340961907637243904, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (179, NULL, 1341652247554379776, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (180, NULL, 1341652385555369984, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (181, NULL, 1342457939827552256, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (182, NULL, 1342458050112581632, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (183, NULL, 1363382062055915520, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (184, NULL, 1363382298501414912, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (185, NULL, 1368854800347848704, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (186, NULL, 1368855936576413696, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (187, NULL, 1368856295889854464, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (188, NULL, 1368856703572008960, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (189, NULL, 1368856819242524672, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (190, NULL, 1368856927887581184, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (191, NULL, 1368857128383700992, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (192, NULL, 1369560306297233408, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (193, NULL, 1369560450472239104, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (194, NULL, 1371705034307375104, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (195, NULL, 1376442078396276736, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (196, NULL, 1376442309850554368, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (197, NULL, 1376442440536678400, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (198, NULL, 1376442557943635968, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (199, NULL, 1376442689674141696, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (200, NULL, 1376442971032248320, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (201, NULL, 1376443123021242368, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (202, NULL, 1376443238851141632, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (203, NULL, 1376443392249421824, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (204, NULL, 1376443586777047040, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (205, NULL, 1376467826087682048, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (206, NULL, 1376467990894469120, 0, 0, 0, 0, 0); -INSERT INTO `appapigatewayhttpoptions` VALUES (207, NULL, 1376468110214029312, 0, 0, 0, 0, 0); - --- ---------------------------- --- Table structure for appapigatewayqosoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayqosoptions`; -CREATE TABLE `appapigatewayqosoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ItemId` bigint(0) NULL DEFAULT NULL, - `ReRouteId` bigint(0) NULL DEFAULT NULL, - `ExceptionsAllowedBeforeBreaking` int(0) NULL DEFAULT NULL, - `DurationOfBreak` int(0) NULL DEFAULT NULL, - `TimeoutValue` int(0) NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayQoSOptions_ItemId`(`ItemId`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayQoSOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayQoSOptions_AppApiGatewayGlobalConfiguration_Ite~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, - CONSTRAINT `FK_AppApiGatewayQoSOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayqosoptions --- ---------------------------- -INSERT INTO `appapigatewayqosoptions` VALUES (1, 1260841964962947072, NULL, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (4, NULL, 1261299170387169280, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (5, NULL, 1261585859064872960, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (6, NULL, 1261586605810368512, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (7, NULL, 1261587558609436672, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (8, NULL, 1261588213298348032, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (9, NULL, 1261588367619375104, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (10, NULL, 1261588628450557952, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (11, NULL, 1261588881564221440, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (12, NULL, 1261588983053795328, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (13, NULL, 1261589139039961088, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (14, NULL, 1261589197483393024, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (15, NULL, 1261589278857084928, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (16, NULL, 1261589420356124672, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (17, NULL, 1261589960393736192, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (18, NULL, 1261606600242085888, NULL, NULL, NULL); -INSERT INTO `appapigatewayqosoptions` VALUES (19, NULL, 1261606689601732608, NULL, NULL, NULL); -INSERT INTO `appapigatewayqosoptions` VALUES (22, NULL, 1262220447629058048, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (23, NULL, 1262230734939758592, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (24, NULL, 1262296916350869504, 60, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (25, NULL, 1262632376348594176, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (26, NULL, 1262632791869902848, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (29, NULL, 1262660336921235456, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (30, NULL, 1262660528277966848, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (31, NULL, 1262660706875625472, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (32, NULL, 1262660966393991168, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (33, NULL, 1262661109474283520, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (34, NULL, 1262663888804663296, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (35, NULL, 1262664024096133120, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (36, NULL, 1262664186252120064, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (37, NULL, 1262664357044178944, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (38, NULL, 1262664632928718848, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (39, NULL, 1262664751409418240, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (40, NULL, 1262664871274237952, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (41, NULL, 1262665026111164416, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (42, NULL, 1262665159905267712, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (43, NULL, 1262665329829105664, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (44, NULL, 1262665456471920640, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (45, NULL, 1262665628165754880, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (46, NULL, 1262666172682883072, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (48, NULL, 1262723402331885568, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (49, NULL, 1262935771746734080, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (50, NULL, 1262935906522304512, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (53, NULL, 1263074419073593344, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (54, NULL, 1263075249394790400, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (55, NULL, 1263075593499684864, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (57, NULL, 1263101898440146944, 50, 60000, 120000); -INSERT INTO `appapigatewayqosoptions` VALUES (58, NULL, 1263303878648569856, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (59, NULL, 1263304204797648896, 50, 60000, 120000); -INSERT INTO `appapigatewayqosoptions` VALUES (60, NULL, 1263304872891555840, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (61, NULL, 1263305106250047488, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (62, NULL, 1263305244594970624, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (63, NULL, 1263305430536855552, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (64, NULL, 1263639172959174656, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (65, NULL, 1264799968944640000, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (66, NULL, 1264800070161584128, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (68, NULL, 1267360794414161920, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (69, NULL, 1267383367629807616, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (70, NULL, 1267817055527632896, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (71, NULL, 1267817221286526976, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (72, NULL, 1268893687085518848, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (97, NULL, 1288657613998579712, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (98, NULL, 1288657941770854400, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (99, NULL, 1288658134067109888, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (100, NULL, 1288658305156964352, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (101, NULL, 1288658491216289792, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (102, NULL, 1288658638302142464, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (103, NULL, 1288658791784308736, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (104, NULL, 1290849478956199936, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (105, NULL, 1290849628051124224, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (106, NULL, 1290849798553776128, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (108, NULL, 1291259822512693248, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (117, NULL, 1293470838745821184, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (118, NULL, 1293471661785706496, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (119, NULL, 1293472678392721408, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (120, NULL, 1293472857510473728, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (121, NULL, 1299273336009359360, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (122, NULL, 1299273436282585088, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (123, NULL, 1299273618470567936, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (124, NULL, 1299273770182737920, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (125, NULL, 1299273978023084032, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (126, NULL, 1299274123225694208, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (127, NULL, 1299274222299348992, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (128, NULL, 1304238876758495232, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (129, NULL, 1304678610343383040, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (130, NULL, 1304679169305694208, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (131, NULL, 1310460417141817344, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (132, NULL, 1310502391475519488, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (133, NULL, 1310515546943569920, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (134, NULL, 1310515735292985344, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (135, NULL, 1316628769783480320, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (136, NULL, 1316628940663619584, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (137, NULL, 1316629112428756992, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (138, NULL, 1316652047017246720, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (139, NULL, 1316913899996737536, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (140, NULL, 1319200951383199744, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (141, NULL, 1319221929807024128, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (142, NULL, 1319554431134306304, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (143, NULL, 1319554550458060800, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (144, NULL, 1319554948434595840, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (145, NULL, 1319555067183730688, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (146, NULL, 1319555230765780992, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (147, NULL, 1319555333790470144, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (148, NULL, 1321001932510203904, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (149, NULL, 1321002059803136000, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (150, NULL, 1321002256440496128, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (151, NULL, 1321002350686507008, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (152, NULL, 1322190027988525056, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (153, NULL, 1322452079688458240, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (154, NULL, 1322452183929495552, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (155, NULL, 1322452308651319296, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (156, NULL, 1322452858176446464, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (157, NULL, 1322452989235863552, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (158, NULL, 1322453089655889920, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (159, NULL, 1329706860249804800, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (160, NULL, 1329707002411544576, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (161, NULL, 1329708512277098496, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (162, NULL, 1329708625917571072, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (163, NULL, 1335049839287357440, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (164, NULL, 1335050034221830144, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (165, NULL, 1335050145899368448, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (166, NULL, 1335050283434790912, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (167, NULL, 1335050381770248192, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (168, NULL, 1335050520941449216, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (169, NULL, 1335050615829188608, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (170, NULL, 1335111798720450560, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (171, NULL, 1335118541370314752, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (172, NULL, 1335118660417245184, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (173, NULL, 1335118782727344128, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (174, NULL, 1335118903200337920, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (175, NULL, 1336230645078921216, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (176, NULL, 1337314809113722880, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (177, NULL, 1337314938973569024, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (178, NULL, 1340961907637243904, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (179, NULL, 1341652247554379776, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (180, NULL, 1341652385555369984, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (181, NULL, 1342457939827552256, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (182, NULL, 1342458050112581632, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (183, NULL, 1363382062055915520, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (184, NULL, 1363382298501414912, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (185, NULL, 1368854800347848704, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (186, NULL, 1368855936576413696, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (187, NULL, 1368856295889854464, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (188, NULL, 1368856703572008960, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (189, NULL, 1368856819242524672, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (190, NULL, 1368856927887581184, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (191, NULL, 1368857128383700992, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (192, NULL, 1369560306297233408, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (193, NULL, 1369560450472239104, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (194, NULL, 1371705034307375104, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (195, NULL, 1376442078396276736, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (196, NULL, 1376442309850554368, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (197, NULL, 1376442440536678400, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (198, NULL, 1376442557943635968, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (199, NULL, 1376442689674141696, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (200, NULL, 1376442971032248320, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (201, NULL, 1376443123021242368, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (202, NULL, 1376443238851141632, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (203, NULL, 1376443392249421824, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (204, NULL, 1376443586777047040, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (205, NULL, 1376467826087682048, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (206, NULL, 1376467990894469120, 50, 60000, 30000); -INSERT INTO `appapigatewayqosoptions` VALUES (207, NULL, 1376468110214029312, 50, 60000, 30000); - --- ---------------------------- --- Table structure for appapigatewayratelimitoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayratelimitoptions`; -CREATE TABLE `appapigatewayratelimitoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ItemId` bigint(0) NOT NULL, - `ClientIdHeader` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'ClientId', - `QuotaExceededMessage` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `RateLimitCounterPrefix` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'ocelot', - `DisableRateLimitHeaders` tinyint(1) NOT NULL, - `HttpStatusCode` int(0) NULL DEFAULT 429, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayRateLimitOptions_ItemId`(`ItemId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayRateLimitOptions_AppApiGatewayGlobalConfigurati~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayratelimitoptions --- ---------------------------- -INSERT INTO `appapigatewayratelimitoptions` VALUES (1, 1260841964962947072, 'ClientId', '您的操作过快,请稍后再试!', 'ocelot', 1, 429); - --- ---------------------------- --- Table structure for appapigatewayratelimitrule --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayratelimitrule`; -CREATE TABLE `appapigatewayratelimitrule` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NULL DEFAULT NULL, - `DynamicReRouteId` bigint(0) NULL DEFAULT NULL, - `ClientWhitelist` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `EnableRateLimiting` tinyint(1) NOT NULL, - `Period` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `PeriodTimespan` double NULL DEFAULT NULL, - `Limit` bigint(0) NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayRateLimitRule_DynamicReRouteId`(`DynamicReRouteId`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayRateLimitRule_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewayRateLimitRule_AppApiGatewayDynamicReRoute_Dynam~` FOREIGN KEY (`DynamicReRouteId`) REFERENCES `appapigatewaydynamicreroute` (`DynamicReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT, - CONSTRAINT `FK_AppApiGatewayRateLimitRule_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayratelimitrule --- ---------------------------- -INSERT INTO `appapigatewayratelimitrule` VALUES (3, 1261299170387169280, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (4, 1261585859064872960, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (5, 1261586605810368512, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (6, 1261587558609436672, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (7, 1261588213298348032, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (8, 1261588367619375104, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (9, 1261588628450557952, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (10, 1261588881564221440, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (11, 1261588983053795328, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (12, 1261589139039961088, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (13, 1261589197483393024, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (14, 1261589278857084928, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (15, 1261589420356124672, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (16, 1261589960393736192, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (17, 1261606600242085888, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (18, 1261606689601732608, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (21, 1262220447629058048, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (22, 1262230734939758592, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (23, 1262296916350869504, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (24, 1262632376348594176, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (25, 1262632791869902848, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (28, 1262660336921235456, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (29, 1262660528277966848, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (30, 1262660706875625472, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (31, 1262660966393991168, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (32, 1262661109474283520, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (33, 1262663888804663296, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (34, 1262664024096133120, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (35, 1262664186252120064, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (36, 1262664357044178944, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (37, 1262664632928718848, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (38, 1262664751409418240, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (39, 1262664871274237952, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (40, 1262665026111164416, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (41, 1262665159905267712, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (42, 1262665329829105664, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (43, 1262665456471920640, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (44, 1262665628165754880, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (45, 1262666172682883072, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (47, 1262723402331885568, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (48, 1262935771746734080, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (49, 1262935906522304512, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (52, 1263074419073593344, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (53, 1263075249394790400, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (54, 1263075593499684864, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (56, 1263101898440146944, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (57, 1263303878648569856, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (58, 1263304204797648896, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (59, 1263304872891555840, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (60, 1263305106250047488, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (61, 1263305244594970624, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (62, 1263305430536855552, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (63, 1263639172959174656, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (64, 1264799968944640000, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (65, 1264800070161584128, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (66, 1267360794414161920, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (67, 1267383367629807616, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (68, 1267817055527632896, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (69, 1267817221286526976, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (70, 1268893687085518848, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (94, 1288657613998579712, NULL, '', 1, '1m', 60, 200); -INSERT INTO `appapigatewayratelimitrule` VALUES (95, 1288657941770854400, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (96, 1288658134067109888, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (97, 1288658305156964352, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (98, 1288658491216289792, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (99, 1288658638302142464, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (100, 1288658791784308736, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (101, 1290849478956199936, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (102, 1290849628051124224, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (103, 1290849798553776128, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (105, 1291259822512693248, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (114, 1293470838745821184, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (115, 1293471661785706496, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (116, 1293472678392721408, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (117, 1293472857510473728, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (118, 1299273336009359360, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (119, 1299273436282585088, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (120, 1299273618470567936, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (121, 1299273770182737920, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (122, 1299273978023084032, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (123, 1299274123225694208, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (124, 1299274222299348992, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (125, 1304238876758495232, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (126, 1304678610343383040, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (127, 1304679169305694208, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (128, 1310460417141817344, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (129, 1310502391475519488, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (130, 1310515546943569920, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (131, 1310515735292985344, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (132, 1316628769783480320, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (133, 1316628940663619584, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (134, 1316629112428756992, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (135, 1316652047017246720, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (136, 1316913899996737536, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (137, 1319200951383199744, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (138, 1319221929807024128, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (139, 1319554431134306304, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (140, 1319554550458060800, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (141, 1319554948434595840, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (142, 1319555067183730688, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (143, 1319555230765780992, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (144, 1319555333790470144, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (145, 1321001932510203904, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (146, 1321002059803136000, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (147, 1321002256440496128, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (148, 1321002350686507008, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (149, 1322190027988525056, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (150, 1322452079688458240, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (151, 1322452183929495552, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (152, 1322452308651319296, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (153, 1322452858176446464, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (154, 1322452989235863552, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (155, 1322453089655889920, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (156, 1329706860249804800, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (157, 1329707002411544576, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (158, 1329708512277098496, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (159, 1329708625917571072, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (160, 1335049839287357440, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (161, 1335050034221830144, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (162, 1335050145899368448, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (163, 1335050283434790912, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (164, 1335050381770248192, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (165, 1335050520941449216, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (166, 1335050615829188608, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (167, 1335111798720450560, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (168, 1335118541370314752, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (169, 1335118660417245184, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (170, 1335118782727344128, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (171, 1335118903200337920, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (172, 1336230645078921216, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (173, 1337314809113722880, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (174, 1337314938973569024, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (175, 1340961907637243904, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (176, 1341652247554379776, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (177, 1341652385555369984, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (178, 1342457939827552256, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (179, 1342458050112581632, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (180, 1363382062055915520, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (181, 1363382298501414912, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (182, 1368854800347848704, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (183, 1368855936576413696, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (184, 1368856295889854464, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (185, 1368856703572008960, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (186, 1368856819242524672, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (187, 1368856927887581184, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (188, 1368857128383700992, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (189, 1369560306297233408, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (190, 1369560450472239104, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (191, 1371705034307375104, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (192, 1376442078396276736, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (193, 1376442309850554368, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (194, 1376442440536678400, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (195, 1376442557943635968, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (196, 1376442689674141696, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (197, 1376442971032248320, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (198, 1376443123021242368, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (199, 1376443238851141632, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (200, 1376443392249421824, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (201, 1376443586777047040, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (202, 1376467826087682048, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (203, 1376467990894469120, NULL, '', 0, NULL, NULL, NULL); -INSERT INTO `appapigatewayratelimitrule` VALUES (204, 1376468110214029312, NULL, '', 0, NULL, NULL, NULL); - --- ---------------------------- --- Table structure for appapigatewayreroute --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayreroute`; -CREATE TABLE `appapigatewayreroute` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `ReRouteId` bigint(0) NOT NULL, - `ReRouteName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `DownstreamPathTemplate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `ChangeDownstreamPathTemplate` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DownstreamHttpMethod` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `UpstreamPathTemplate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `UpstreamHttpMethod` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `AddHeadersToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `UpstreamHeaderTransform` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DownstreamHeaderTransform` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AddClaimsToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `RouteClaimsRequirement` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AddQueriesToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `RequestIdKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `ReRouteIsCaseSensitive` tinyint(1) NOT NULL, - `ServiceName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `ServiceNamespace` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DownstreamScheme` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DownstreamHostAndPorts` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `DelegatingHandlers` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `UpstreamHost` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `Priority` int(0) NULL DEFAULT NULL, - `Timeout` int(0) NULL DEFAULT NULL, - `DangerousAcceptAnyServerCertificateValidator` tinyint(1) NOT NULL, - `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `AK_AppApiGatewayReRoute_ReRouteId`(`ReRouteId`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewayReRoute_AppId_DownstreamPathTemplate_UpstreamPa~`(`AppId`, `DownstreamPathTemplate`, `UpstreamPathTemplate`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 212 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayreroute --- ---------------------------- -INSERT INTO `appapigatewayreroute` VALUES (4, '{}', '84059fcecc91498b9beafac914865e2c', 1261299170387169280, '【后台管理】- 权限管理', '/api/permission-management/permissions', '', NULL, '/api/permission-management/permissions', 'GET,PUT,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30010,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (5, '{}', 'f2312eed73cc4d3cbefcd1816849fd74', 1261585859064872960, '【身份认证服务】- 客户端', '/api/identity-server/clients', '', NULL, '/api/identity-server/clients', 'POST,GET,', '', '', 'X-Forwarded-For:{RemoteIpAddress},', '', '', '', NULL, 1, '', NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (6, '{}', 'b764ec7b994147abb12974bfcee4a0a9', 1261586605810368512, '【身份认证服务】- 管理客户端', '/api/identity-server/clients/{Id}', '', NULL, '/api/identity-server/clients/{Id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (7, '{}', 'b4ce189320804dc6b87e602594e93d35', 1261587558609436672, '【服务网关管理】- 路由组管理', '/api/ApiGateway/RouteGroups', '', '', '/api/ApiGateway/RouteGroups', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (8, '{}', '8736fefa36da4b129f3fcf6aa095f2ce', 1261588213298348032, '【服务网关管理】- 查询单个路由组', '/api/ApiGateway/RouteGroups/By-AppId/{AppId}', '', '', '/api/ApiGateway/RouteGroups/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (9, '{}', 'befd14ad39e244bc9dea7e0c01e642ce', 1261588367619375104, '【服务网关管理】- 查询所有有效路由组', '/api/ApiGateway/RouteGroups/Actived', '', '', '/api/ApiGateway/RouteGroups/Actived', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (10, '{}', '0a95945d77144ce69addb0d1e8d37837', 1261588628450557952, '【服务网关管理】- 基础配置', '/api/ApiGateway/Globals', '', '', '/api/ApiGateway/Globals', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (11, '{}', '70ee7f919bf44b42b549c905316bfd75', 1261588881564221440, '【服务网关管理】- 查询单个基础配置', '/api/ApiGateway/Globals/By-AppId/{AppId}', '', '', '/api/ApiGateway/Globals/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (12, '{}', 'caf54542d561428a9123ebed88e4b2e9', 1261588983053795328, '【服务网关管理】- 路由配置', '/api/ApiGateway/Routes', '', '', '/api/ApiGateway/Routes', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (13, '{}', 'df6c48fdaab44a37842992ae61c59dc5', 1261589139039961088, '【服务网关管理】- 通过标识查询路由', '/api/ApiGateway/Routes/By-RouteId/{RouteId}', '', '', '/api/ApiGateway/Routes/By-RouteId/{RouteId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (14, '{}', 'aaeaedebd24a4011ad565b5559f84c5f', 1261589197483393024, '【服务网关管理】- 通过名称查询路由', '/api/ApiGateway/Routes/By-RouteName/{RouteName}', '', '', '/api/ApiGateway/Routes/By-RouteName/{RouteName}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (15, '{}', '559c9f1b2b8c44caac86f7a643a16aaa', 1261589278857084928, '【服务网关管理】- 通过应用标识查询路由', '/api/ApiGateway/Routes/By-AppId/{AppId}', '', '', '/api/ApiGateway/Routes/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (16, '{}', '00d0a12f403a4a919c99c534bd76d0d0', 1261589420356124672, '【服务网关管理】- 清空应用标识下所有路由', '/api/ApiGateway/Routes/Clear', '', '', '/api/ApiGateway/Routes/Clear', 'DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (17, '{}', '8c308f1386ad49c799cd281eb95170ac', 1261589960393736192, '【服务网关管理】- 通过应用标识查询动态路由', '/api/ApiGateway/DynamicRoutes/By-AppId/{AppId}', '', NULL, '/api/ApiGateway/DynamicRoutes/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (18, '{}', 'e659ebbf61534a978335cfeabdc0b375', 1261606600242085888, '【服务网关管理】- 通过应用标识查询聚合路由', '/api/ApiGateway/Aggregates/by-AppId/{AppId}', '', NULL, '/api/ApiGateway/Aggregates/by-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (19, '{}', 'd665e4491b81413385858601d9cf9a1d', 1261606689601732608, '【服务网关管理】- 聚合路由', '/api/ApiGateway/Aggregates', '', NULL, '/api/ApiGateway/Aggregates', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (22, '{}', '2aad614e2c2a497593a4784ff639c3d9', 1262220447629058048, '【身份认证服务】- 克隆客户端', '/api/identity-server/clients/{id}/clone', '', NULL, '/api/identity-server/clients/{id}/clone', 'POST,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (23, '{}', '1504c5e4a7334298878339a305445b21', 1262230734939758592, '【身份认证服务】- 可用的Api资源', '/api/identity-server/clients/assignable-api-resources', '', NULL, '/api/identity-server/clients/assignable-api-resources', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, 'assignable-api-resources', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (25, '{}', '53dd1751d9104940a966006a5e93d1fa', 1262296916350869504, '【身份认证服务】- 可用的身份资源', '/api/identity-server/clients/assignable-identity-resources', '', NULL, '/api/identity-server/clients/assignable-identity-resources', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, 'assignable-identity-resources', NULL, 30000, 1, NULL, 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (26, '{}', '3fccd1318d0d47d9aef85542668829a6', 1262632376348594176, '【身份认证服务】- Api资源', '/api/identity-server/api-resources', '', '', '/api/identity-server/api-resources', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (27, '{}', 'de6bd0ddea6d4019b4855be5442fafdc', 1262632791869902848, '【身份认证服务】- 管理Api资源', '/api/identity-server/api-resources/{id}', '', '', '/api/identity-server/api-resources/{id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (30, '{}', '0f9875697b74420c9dc2eaf77099b210', 1262660336921235456, '【身份认证服务】- 用户登录', '/api/account/login', '', '', '/api/account/login', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (31, '{}', 'a890c6ecc6a64c9fa313a0f6b5406e1c', 1262660528277966848, '【身份认证服务】- 用户登出', '/api/account/logout', '', '', '/api/account/logout', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (32, '{}', '88de580b6beb4d9d9d4367840ba1fcea', 1262660706875625472, '【身份认证服务】- 检查密码', '/api/account/checkPassword', '', '', '/api/account/checkPassword', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (33, '{}', '78f3c1adc7a54696af37a419eda47c62', 1262660966393991168, '【身份认证服务】- 个人信息页', '/api/identity/my-profile', '', '', '/api/identity/my-profile', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (34, '{}', '95b23aa5cebb40598a78c0761cfd0b26', 1262661109474283520, '【身份认证服务】- 修改密码', '/api/identity/my-profile/change-password', '', '', '/api/identity/my-profile/change-password', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (35, '{}', '4828f7c2aff8485189f37aba5de62d60', 1262663888804663296, '【身份认证管理】- 角色管理', '/api/identity/roles', '', '', '/api/identity/roles', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (36, '{}', '0fddcd3b50a24c6795ec9034fdb44778', 1262664024096133120, '【身份认证服务】- 角色列表', '/api/identity/roles/all', '', '', '/api/identity/roles/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (37, '{}', '191e555219e845069dfd93793263a840', 1262664186252120064, '【身份认证服务】- 单个角色', '/api/identity/roles/{id}', '', '', '/api/identity/roles/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (38, '{}', 'c316858e82f74e6ca6e923d6b3a3fa76', 1262664357044178944, '【身份认证服务】- 用户注册', '/api/account/register', '', '', '/api/account/register', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (39, '{}', 'db53b6f957914a10a6a97ba306b1f6ef', 1262664632928718848, '【身份认证服务】- 单个用户', '/api/identity/users/{id}', '', '', '/api/identity/users/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (40, '{}', '1833434b8ce34f8ab791e7e950f4c61f', 1262664751409418240, '【身份认证服务】- 用户管理', '/api/identity/users', '', '', '/api/identity/users', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (41, '{}', 'b3c963a1612144918bffaf272697498c', 1262664871274237952, '【身份认证服务】- 用户角色', '/api/identity/users/{id}/roles', '', '', '/api/identity/users/{id}/roles', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (42, '{}', '33dd757b79cb4f52994af13bfb4f6783', 1262665026111164416, '【身份认证服务】- 通过用户名查询用户', '/api/identity/users/by-username/{userName}', '', '', '/api/identity/users/by-username/{userName}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (43, '{}', 'e46fd6cb3a104da3aadfe0149fe4de68', 1262665159905267712, '【身份认证服务】- 通过邮件查询用户', '/api/identity/users/by-email/{email}', '', '', '/api/identity/users/by-email/{email}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (44, '{}', '8c8ec5ad6aaa4145981ee7ac876c36c9', 1262665329829105664, '【身份认证服务】- 通过标识查询用户', '/api/identity/users/lookup/{id}', '', '', '/api/identity/users/lookup/{id}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (45, '{}', 'f5c0c8c02c0846fdbe5015cd86f3d81b', 1262665456471920640, '【身份认证服务】- 通过名称查询用户', '/api/identity/users/lookup/by-username/{userName}', '', '', '/api/identity/users/lookup/by-username/{userName}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (46, '{}', 'ecf0ea4a3e3c4b2e8fa3621514d00c74', 1262665628165754880, '【基础服务】- 通过名称查询租户', '/api/abp/multi-tenancy/tenants/by-name/{name}', '', '', '/api/abp/multi-tenancy/tenants/by-name/{name}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (47, '{}', '69132bc515b64005af4292ce0dee5626', 1262666172682883072, '【基础服务】- 通过标识查询租户', '/api/abp/multi-tenancy/tenants/by-id/{id}', '', '', '/api/abp/multi-tenancy/tenants/by-id/{id}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (49, '{}', '35f48d7bc3694bbf95d64fe59aa631ac', 1262723402331885568, '【身份认证服务】- 已有的跨域资源', '/api/identity-server/clients/distinct-cors-origins', '', '', '/api/identity-server/clients/distinct-cors-origins', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'distinct-cors-origins', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (50, '{}', 'f333d028839d4fc2aafa8509e674d7dd', 1262935771746734080, '【身份认证服务】- 身份资源', '/api/identity-server/identity-resources', '', '', '/api/identity-server/identity-resources', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (51, '{}', 'dffd1bfaca5b4c1890221678f2b16cd5', 1262935906522304512, '【身份认证服务】- 身份资源管理', '/api/identity-server/identity-resources/{id}', '', '', '/api/identity-server/identity-resources/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (54, '{}', '7b847d8434bc4d1db07fa8961d90c14a', 1263074419073593344, '【服务网关管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/apigateway/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', 'apigateway-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (55, '{}', 'ca2cedfa620045a9adef0be2f958c4bc', 1263075249394790400, '【服务网关管理】- 查询聚合路由', '/api/ApiGateway/Aggregates/{RouteId}', '', '', '/api/ApiGateway/Aggregates/{RouteId}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (57, '{}', '98fbc99fc8644946ac0a72cc3dc5fd1f', 1263075593499684864, '【服务网关管理】- 聚合路由配置', '/api/ApiGateway/Aggregates/RouteConfig', '', '', '/api/ApiGateway/Aggregates/RouteConfig', 'POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (59, '{}', 'c692b30c72d4424eb4740ac49f4e9373', 1263101898440146944, '【服务网关管理】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/apigateway/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', 'apigateway-configuration', 0, 120000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (60, '{}', '8409117162504f71aa66982f05c38a80', 1263303878648569856, '【平台服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/platform/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'platform-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (61, '{}', '9f520820071b4e14bc94ab57989cea1f', 1263304204797648896, '【平台服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/platform/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'platform-configuration', 0, 120000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (62, '{}', '530ab314560f41678b40f48da9383d51', 1263304872891555840, '【后台管理】- 租户管理', '/api/tenant-management/tenants', '', '', '/api/tenant-management/tenants', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (63, '{}', '21334c6da4c349cc883c38c13de0e754', 1263305106250047488, '【后台管理】- 特定租户管理', '/api/tenant-management/tenants/{id}', '', '', '/api/tenant-management/tenants/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (64, '{}', 'cc8fdf1b2d0b414ebf2dc51a6dc78305', 1263305244594970624, '【后台管理】- 租户连接字符串', '/api/tenant-management/tenants/{id}/connection-string', '', '', '/api/tenant-management/tenants/{id}/connection-string', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 2, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (65, '{}', 'aaf285ed10da4024ba561d5cf8c6322b', 1263305430536855552, '【后台管理】- 特定租户连接字符串', '/api/tenant-management/tenants/{id}/connection-string/{name}', '', '', '/api/tenant-management/tenants/{id}/connection-string/{name}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (66, '{}', '6a7da198f4c84d94969a437adc47642b', 1263639172959174656, '【后台管理】- 全局设置', '/api/setting-management/settings/by-global', '', '', '/api/setting-management/settings/by-global/app', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'setting-global', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (67, '{}', '755b4dce5c34444785fa3b647fef4131', 1264799968944640000, '【身份认证服务】- 验证手机号', '/api/account/phone/verify', '', '', '/api/account/phone/verify', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (68, '{}', '535191c570ae453ab320012304d7a62c', 1264800070161584128, '【身份认证服务】- 手机号注册', '/api/account/phone/register', '', '', '/api/account/phone/register', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (69, '{}', '723c9b111f9f4a1aa804118cdde193d3', 1267360794414161920, '【消息服务】- 通知', '/signalr-hubs/notifications/{everything}', '', '', '/signalr-hubs/notifications/{everything}', 'POST,GET,OPTIONS,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (70, '{}', 'f3aa2b42dd9f468aa5aae4ef64754427', 1267383367629807616, '【消息服务】- 通知0', '/signalr-hubs/notifications', '', '', '/signalr-hubs/notifications', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (71, '{}', '0344947bb79b401baa2ef7b4e58297f6', 1267817055527632896, '【消息服务】- 聊天', '/signalr-hubs/messages', '', '', '/signalr-hubs/messages', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (72, '{}', '6676b5e5f76d40739f9ccc3e371e2f18', 1267817221286526976, '【消息服务】- 聊天1', '/signalr-hubs/messages/{everything}', '', '', '/signalr-hubs/messages/{everything}', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (73, '{}', 'cfb5f09a12bf495fbcaf2fa5d9123a40', 1268893687085518848, '【身份认证服务】- 重置密码', '/api/account/phone/reset-password', '', '', '/api/account/phone/reset-password', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (101, '{}', '997a4c27a433458aafed9b8aa252d957', 1288657613998579712, '【身份认证服务】- 组织机构列表', '/api/identity/organization-units', '', '', '/api/identity/organization-units', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (102, '{}', 'a2c6acc9882a425ab26bd3ad5a9c17c6', 1288657941770854400, '【身份认证服务】- 组织机构管理', '/api/identity/organization-units/{id}', '', '', '/api/identity/organization-units/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (103, '{}', '390acfb0e16943c6b61e731d47c282e9', 1288658134067109888, '【身份认证服务】- 组织机构移动', '/api/identity/organization-units/{id}/move', '', '', '/api/identity/organization-units/{id}/move', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (104, '{}', '3515e75becf9447492ad60466b27c397', 1288658305156964352, '【身份认证服务】- 查询组织机构子级', '/api/identity/organization-units/find-children', '', '', '/api/identity/organization-units/find-children', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (105, '{}', 'aab0a24d930f4f9687497e5ccaac2a31', 1288658491216289792, '【身份认证服务】- 查询组织机构最后一个子节点', '/api/identity/organization-units/last-children', '', '', '/api/identity/organization-units/last-children', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (106, '{}', '9b7c999b1c5140c497bc15914a815401', 1288658638302142464, '【身份认证服务】- 未加入组织机构角色', '/api/identity/organization-units/{id}/unadded-roles', '', '', '/api/identity/organization-units/{id}/unadded-roles', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (107, '{}', 'b0cdb3f6908e42bd934ca99a78f22c3f', 1288658791784308736, '【身份认证服务】- 未加入组织机构用户', '/api/identity/organization-units/{id}/unadded-users', '', '', '/api/identity/organization-units/{id}/unadded-users', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (108, '{}', '9362040d10a94fb991f60bc391efcb85', 1290849478956199936, '【后台管理】- 当前租户设置', '/api/setting-management/settings/by-current-tenant', '', '', '/api/setting-management/settings/by-current-tenant/app', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (109, '{}', 'a7df3a04805d4cc8a6e6b3823c6dd468', 1290849628051124224, '【后台管理】- 用户设置', '/api/setting-management/settings/by-user/{userId}', '', '', '/api/setting-management/settings/by-user/{userId}', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (110, '{}', 'ef6e38a529a345fab67f6a627cf20635', 1290849798553776128, '【后台管理】- 当前用户设置', '/api/setting-management/settings/by-current-user', '', '', '/api/setting-management/settings/by-current-user', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (112, '{}', '9844fed6507844f2ac64bd08649bd3a6', 1291259822512693248, '【身份认证服务】- 查询组织机构根节点', '/api/identity/organization-units/root-node', '', '', '/api/identity/organization-units/root-node', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (121, '{}', 'c6c7b027000942dda8ba0d2e2d8cf705', 1293470838745821184, '【后台管理】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/backend-admin/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'backend-admin-configuration', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (122, '{}', 'becd4342079d4399abda5b5ba3b46fdc', 1293471661785706496, '【消息服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/messages/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'messages-configuration', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (123, '{}', 'c828140cee3043c18ffc274f6461f0f2', 1293472678392721408, '【后台管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/backend-admin/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'backend-admin-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (124, '{}', 'e683cff8066d4c2899a17d0f618f1a0b', 1293472857510473728, '【消息服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/messages/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'messages-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (125, '{}', '0e9c3bff5b58428eba97a5516140ba5e', 1299273336009359360, '【消息服务】- Hangfire仪表板 ', '/hangfire', '', '', '/hangfire', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (126, '{}', 'e906924ad3a947cf8e6956e2dd258192', 1299273436282585088, '【消息服务】- Hangfire仪表板 - 主页', '/hangfire/', '', '', '/hangfire/', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (127, '{}', 'e02f2049efbc4ee1ad6629bd0341ed2b', 1299273618470567936, '【消息服务】- Hangfire仪表板 - 状态', '/hangfire/stats', '', '', '/hangfire/stats', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (128, '{}', 'f8d2b2f0f1d649c2a07eeef23d6adb0e', 1299273770182737920, '【消息服务】- Hangfire仪表板 - 作业管理', '/hangfire/jobs/{everything}', '', '', '/hangfire/jobs/{everything}', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (129, '{}', '9785be7a29774b468e271b23009fe115', 1299273978023084032, '【消息服务】- Hangfire仪表板 - 重试', '/hangfire/retries', '', '', '/hangfire/retries', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (130, '{}', '9c0c1cd196bb45c0bc03fafb7a1eb8f2', 1299274123225694208, '【消息服务】- Hangfire仪表板 - 周期性作业', '/hangfire/recurring', '', '', '/hangfire/recurring', 'GET,POST,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (131, '{}', '243bafe828be463ea63a3e2b521f9923', 1299274222299348992, '【消息服务】- Hangfire仪表板 - 服务器列表', '/hangfire/servers', '', '', '/hangfire/servers', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (132, '{}', '57a8ac1b41bb434cad38fbde0e2ba2f0', 1304238876758495232, '【后台管理】- 管理功能', '/api/feature-management/features', '', '', '/api/feature-management/features', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (133, '{}', '40a150f629b047f587c91a9436a699c0', 1304678610343383040, '【身份认证服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/identity-server/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'identity-server-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (134, '{}', '3a2d5d538fa44ac690402fc5c4e1a401', 1304679169305694208, '【身份认证服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/identity-server/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'identity-server-configuration', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (135, '{}', '2ecfe7483bc94c28ad0769b654eb765d', 1310460417141817344, '【后台管理】- 审计日志列表', '/api/auditing/audit-log', '', '', '/api/auditing/audit-log', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (136, '{}', '744e340c0024462d88458b7ea9605b3c', 1310502391475519488, '【后台服务】- 安全日志列表', '/api/auditing/security-log', '', '', '/api/auditing/security-log', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (137, '{}', 'a99639f4172547c4ba9b4f4ca5cb4ab9', 1310515546943569920, '【后台服务】- 安全日志', '/api/auditing/security-log/{id}', '', '', '/api/auditing/security-log/{id}', 'DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (138, '{}', 'c3ebc82d55f640fb9d70a911e97e4ec1', 1310515735292985344, '【后台管理】- 审计日志', '/api/auditing/audit-log/{id}', '', '', '/api/auditing/audit-log/{id}', 'DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (139, '{}', '0379fcb3a9cd4b13b562b3b5b5c3eb7d', 1316628769783480320, '【身份认证服务】- 声明类型', '/api/identity/claim-types', '', '', '/api/identity/claim-types', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (140, '{}', 'de25c9a80d994f728b37eb483b2f5127', 1316628940663619584, '【身份认证服务】- 管理声明类型', '/api/identity/claim-types/{id}', '', '', '/api/identity/claim-types/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (141, '{}', '25c19106baff4cf3a877ae8cd690a1b5', 1316629112428756992, '【身份认证服务】- 查询在用的声明类型列表', '/api/identity/claim-types/actived-list', '', '', '/api/identity/claim-types/actived-list', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (142, '{}', '7d3b941d8c4d4d3ebc05b6332308b992', 1316652047017246720, '【身份认证服务】- 管理用户声明', '/api/identity/users/{id}/claims', '', '', '/api/identity/users/{id}/claims', 'POST,PUT,DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (143, '{}', 'b86af44a34a14db4b482df8550f1bde1', 1316913899996737536, '【身份认证管理】- 管理角色声明', '/api/identity/roles/claims/{id}', '', '', '/api/identity/roles/claims/{id}', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (144, '{}', '51a14bc295044de985ae014fbcc5bddf', 1319200951383199744, '【IdentityServer4】- 发现端点', '/.well-known/openid-configuration', '', '', '/.well-known/openid-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:44385,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (145, '{}', '9d859a444d774e93818237e53b6cc102', 1319221929807024128, '【身份认证服务】- 查询所有组织机构', '/api/identity/organization-units/all', '', '', '/api/identity/organization-units/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (146, '{}', '89f42175b24540caba2a1fded145acf8', 1319554431134306304, '【身份认证服务】- 管理组织机构用户', '/api/identity/organization-units/{id}/users', '', '', '/api/identity/organization-units/{id}/users', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (147, '{}', '126d82509cec43eda712e94737b01039', 1319554550458060800, '【身份认证服务】- 管理组织机构角色', '/api/identity/organization-units/{id}/roles', '', '', '/api/identity/organization-units/{id}/roles', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (148, '{}', '824f5eee6877489f96f1022e306c968a', 1319554948434595840, '【身份认证服务】- 管理角色组织机构', '/api/identity/roles/{id}/organization-units', '', '', '/api/identity/roles/{id}/organization-units', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (149, '{}', 'fe1379d4a13f41afb6410f4c948871f3', 1319555067183730688, '【身份认证服务】- 删除角色组织机构', '/api/identity/roles/{id}/organization-units/{ouId}', '', '', '/api/identity/roles/{id}/organization-units/{ouId}', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (150, '{}', '197a69bb723346aba3601bd61e7fa655', 1319555230765780992, '【身份认证服务】- 管理用户组织机构', '/api/identity/users/{id}/organization-units', '', '', '/api/identity/users/{id}/organization-units', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (151, '{}', '1a7e6d0b1c95484f82a75a2ce6e6f453', 1319555333790470144, '【身份认证服务】- 删除用户组织机构', '/api/identity/users/{id}/organization-units/{ouId}', '', '', '/api/identity/users/{id}/organization-units/{ouId}', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (152, '{}', 'ecfa9bbd19694097b33e691b653f2124', 1321001932510203904, '【消息服务】- 我的消息', '/api/im/chat/my-messages', '', '', '/api/im/chat/my-messages', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (153, '{}', '4867ad188ca54acb8b961d20297b6545', 1321002059803136000, '【消息服务】- 我的最近消息', '/api/im/chat/my-last-messages', '', '', '/api/im/chat/my-last-messages', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (154, '{}', '291ab802d7bc4af98fc15c509f98fa75', 1321002256440496128, '【消息服务】- 我的朋友', '/api/im/my-friends', '', '', '/api/im/my-friends', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (155, '{}', '08438dabb1e849988e0c304f82b08a10', 1321002350686507008, '【消息服务】- 我的所有朋友', '/api/im/my-friends/all', '', '', '/api/im/my-friends/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (156, '{}', 'cecf632785b7402299764698369c751f', 1322190027988525056, '【消息服务】- 发送好友请求', '/api/im/my-friends/add-request', '', '', '/api/im/my-friends/add-request', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (157, '{}', '91b088ab3e164116b8c4a2b6109e37e9', 1322452079688458240, '【消息服务】- 我的订阅', '/api/my-subscribes', '', '', '/api/my-subscribes', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (158, '{}', 'b9f57600634b40c087ac0730926895e2', 1322452183929495552, '【消息服务】- 我的订阅列表', '/api/my-subscribes/all', '', '', '/api/my-subscribes/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'my-subscribes', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (159, '{}', '8e6a0c6759df42e29b9abd4d833646a3', 1322452308651319296, '【消息服务】- 是否已订阅', '/api/my-subscribes/is-subscribed/{Name}', '', '', '/api/my-subscribes/is-subscribed/{Name}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (160, '{}', '6b747d0acfee478ea64241b7ea519861', 1322452858176446464, '【消息服务】- 我的通知', '/api/my-notifilers', '', '', '/api/my-notifilers', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (161, '{}', '25a64613f37f44cf8efff8d0cf6cd0ca', 1322452989235863552, '【消息服务】- 管理我的通知', '/api/my-notifilers/{id}', '', '', '/api/my-notifilers/{id}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (162, '{}', 'ddc7f13aaa2741b28c2102fbff18d836', 1322453089655889920, '【消息服务】- 可用通知列表', '/api/my-notifilers/assignables', '', '', '/api/my-notifilers/assignables', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'assignables-notifilers', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (163, '{}', '1d586107d7e240b3bfc14c8ca04baea8', 1329706860249804800, '【微信管理】- 微信公共配置', '/api/setting-management/wechat/by-global', '', '', '/api/setting-management/wechat/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'wechat-setting-global', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (164, '{}', 'bd9b34dd564f405bb3a063d6a719ce6e', 1329707002411544576, '【微信管理】- 微信租户配置', '/api/setting-management/wechat/by-current-tenant', '', '', '/api/setting-management/wechat/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'wechat-setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (165, '{}', 'e9847659244b47dc80101b1c3f4edb31', 1329708512277098496, '【后台管理】- 变更全局设置', '/api/setting-management/settings/change-global', '', '', '/api/setting-management/settings/change-global', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (166, '{}', '94c3692dea394b39ac0cc19f60fc1964', 1329708625917571072, '【后台管理】- 变更当前租户设置', '/api/setting-management/settings/change-current-tenant', '', '', '/api/setting-management/settings/change-current-tenant', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (167, '{}', '626efeddcc0a474aa5e472b6089ca6fe', 1335049839287357440, '【平台服务】- 菜单管理', '/api/platform/menus', '', '', '/api/platform/menus', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (168, '{}', 'e4b4acf5f7dd4015828bdcd735424937', 1335050034221830144, '【平台服务】- 管理菜单', '/api/platform/menus/{id}', '', '', '/api/platform/menus/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (169, '{}', 'bbdb31a7eaba4bf7bead6a7e1151872c', 1335050145899368448, '【平台服务】- 获取当前用户菜单', '/api/platform/menus/by-current-user', '', '', '/api/platform/menus/by-current-user', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (170, '{}', '56a6d15682ba489aa46296cd8235cf81', 1335050283434790912, '【平台服务】- 管理用户菜单', '/api/platform/menus/by-user', '', '', '/api/platform/menus/by-user', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (171, '{}', '484dc97d5f4843fc85679c1faf1488bf', 1335050381770248192, '【平台服务】- 获取用户菜单', '/api/platform/menus/by-user/{userId}/{platformType}', '', '', '/api/platform/menus/by-user/{userId}/{platformType}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (172, '{}', '63b34bbe4d3b41f397432aa12e73a40d', 1335050520941449216, '【平台服务】- 管理角色菜单', '/api/platform/menus/by-role', '', '', '/api/platform/menus/by-role', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (173, '{}', 'c858522741c941bf838aef7eba34b213', 1335050615829188608, '【平台服务】- 获取角色菜单', '/api/platform/menus/by-role/{role}/{platformType}', '', '', '/api/platform/menus/by-role/{role}/{platformType}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (174, '{}', 'da02cbd7a46746f288bb98d40af03a21', 1335111798720450560, '【平台服务】- 获取所有数据字典', '/api/platform/datas/all', '', '', '/api/platform/datas/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (175, '{}', '6c6096b6593c47398d59f73ab62e54a3', 1335118541370314752, '【平台服务】- 数据字典', '/api/platform/datas', '', '', '/api/platform/datas', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (176, '{}', '5efb1b49a1cc4d34a3e338b9e83c12c7', 1335118660417245184, '【平台服务】- 管理数据字典', '/api/platform/datas/{id}', '', '', '/api/platform/datas/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (177, '{}', '00bd2892c6574942bda538aa9d3513cd', 1335118782727344128, '【平台服务】- 增加数据字典项目', '/api/platform/datas/{id}/items', '', '', '/api/platform/datas/{id}/items', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (178, '{}', '9fae5da5d4634eaab7a59d643a8248a7', 1335118903200337920, '【平台服务】- 管理数据字典项目', '/api/platform/datas/{id}/items/{name}', '', '', '/api/platform/datas/{id}/items/{name}', 'DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (179, '{}', '70d6120e560f41c3879ec4549636cdb8', 1336230645078921216, '【平台服务】- 获取所有菜单', '/api/platform/menus/all', '', '', '/api/platform/menus/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (180, '{}', 'c67549cd6cd246f08d9f6ce93c906c21', 1337314809113722880, '【平台服务】- 布局', '/api/platform/layouts', '', '', '/api/platform/layouts', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (181, '{}', 'bacca946a092434cb2ee5994c88f2c33', 1337314938973569024, '【平台服务】- 管理布局', '/api/platform/layouts/{id}', '', '', '/api/platform/layouts/{id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (182, '{}', '741fdd4cc05a4025a9073a2e1ab9d5ea', 1340961907637243904, '【平台服务】- 获取所有布局', '/api/platform/layouts/all', '', '', '/api/platform/layouts/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (183, '{}', '26a1ef4016704dab8c254f90bc26ecfe', 1341652247554379776, '【身份认证服务】- Api范围', '/api/identity-server/api-scopes', '', '', '/api/identity-server/api-scopes', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (184, '{}', '3bfc1fef7f5446638f91c9b6e2fb12db', 1341652385555369984, '【身份认证服务】- 管理Api范围', '/api/identity-server/api-scopes/{id}', '', '', '/api/identity-server/api-scopes/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (185, '{}', '3288c25dd61e491db95313ca72016918', 1342457939827552256, '【身份认证服务】- 持久授权', '/api/identity-server/persisted-grants', '', '', '/api/identity-server/persisted-grants', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (186, '{}', '23f94678093148f58ba842096c3a0e39', 1342458050112581632, '【身份认证服务】- 管理持久授权', '/api/identity-server/persisted-grants/{id}', '', '', '/api/identity-server/persisted-grants/{id}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (187, '{}', '1f61a3e35b374277ae2c13c671bc5d30', 1363382062055915520, '【阿里云】- 阿里云公共配置', '/api/setting-management/aliyun/by-global', '', '', '/api/setting-management/aliyun/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'aliyun-setting-global', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (188, '{}', '46001a60f3d54b85a8417f6af24066e5', 1363382298501414912, '【阿里云】- 阿里云租户配置', '/api/setting-management/aliyun/by-current-tenant', '', '', '/api/setting-management/aliyun/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'aliyun-setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (189, '{}', '0d21bec8bcc044bf9000227663039ef4', 1368854800347848704, '【Oss对象存储】- 管理容器(Bucket)', '/api/oss-management/containes/{name}', '', '', '/api/oss-management/containes/{name}', 'POST,GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (190, '{}', 'ca33dc2834e4439d9ca7827fb31c70f8', 1368855936576413696, '【Oss对象存储】- 获取容器列表', '/api/oss-management/containes', '', '', '/api/oss-management/containes', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (191, '{}', 'e00fb37d9757471fbd1e64dca92e5d7d', 1368856295889854464, '【Oss对象存储】- 获取对象列表', '/api/oss-management/containes/objects', '', '', '/api/oss-management/containes/objects', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (192, '{}', 'cef75a4f7eac43789a3e246229fd5a1b', 1368856703572008960, '【Oss对象存储】- 管理Oss对象', '/api/oss-management/objects', '', '', '/api/oss-management/objects', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (193, '{}', 'ee0d5e6de17c481ca2c0ee5c156b1973', 1368856819242524672, '【Oss对象存储】- 上传Oss对象', '/api/oss-management/objects/upload', '', '', '/api/oss-management/objects/upload', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (194, '{}', '6c1a0f98129d418cba55a52dbdd88937', 1368856927887581184, '【Oss对象存储】- 批量删除Oss对象', '/api/oss-management/objects/bulk-delete', '', '', '/api/oss-management/objects/bulk-delete', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (195, '{}', 'de285bf4b6114032a45d5611ea8e3101', 1368857128383700992, '【Oss对象存储】- 静态文件管理', '/api/files/static/{everything}', '', '', '/api/api/files/static/{everything}', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (196, '{}', '6287c30d31c147faae917cb6e52636ec', 1369560306297233408, '【Oss对象存储】- 获取公共配置', '/api/setting-management/oss-management/by-global', '', '', '/api/setting-management/oss-management/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'oss-management-global', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (197, '{}', '1012bb902aba47ada9a374fc73ed2632', 1369560450472239104, '【Oss对象存储】- 获取租户配置', '/api/setting-management/oss-management/by-current-tenant', '', '', '/api/setting-management/oss-management/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'oss-management-current-tenant', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (198, '{}', '3ff4788f62744b27bc30f7247fb76b08', 1371705034307375104, '【Oss对象存储】- 静态文件', '/api/files/static/{everything}', '', '', '/api/files/static/{everything}', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (199, '{}', '2203b1db040942a3bbe1ed86b57a8501', 1376442078396276736, '【本地化管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/localization/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', 'localization-api-definition', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (200, '{}', '67206f8a85d94666a0c707697e706742', 1376442309850554368, '【本地化管理】- 资源管理', '/api/localization/resources', '', '', '/api/localization/resources', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (201, '{}', '055929710e414c5e97fc9168a1c25182', 1376442440536678400, '【本地化管理】- 管理单个资源', '/api/localization/resources/{id}', '', '', '/api/localization/resources/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (202, '{}', 'c314a94d515045a4a27763aa5d3631de', 1376442557943635968, '【本地化管理】- 获取所有资源', '/api/localization/resources/all', '', '', '/api/localization/resources/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (203, '{}', '67fb0a90132c4a02b7ff44f82bf9fd13', 1376442689674141696, '【本地化管理】- 语言管理', '/api/localization/languages', '', '', '/api/localization/languages', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (204, '{}', 'c6fab01d2b37434886f07bb601c36599', 1376442971032248320, '【本地化管理】- 管理单个语言', '/api/localization/languages/{id}', '', '', '/api/localization/languages/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (205, '{}', '074c20491b294a068fbb1df7874d0d4d', 1376443123021242368, '【本地化管理】- 获取所有语言', '/api/localization/languages/all', '', '', '/api/localization/languages/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (206, '{}', '75e48367d8f14ef99541abdb86d30b96', 1376443238851141632, '【本地化管理】- 文档管理', '/api/localization/texts', '', '', '/api/localization/texts', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (207, '{}', '5f8d7d88a97f4ff7b3bdb6fb105d527e', 1376443392249421824, '【本地化管理】- 管理单个文档', '/api/localization/texts/{id}', '', '', '/api/localization/texts/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (208, '{}', '35f470892bf04571ab49efadb2cb1eb5', 1376443586777047040, '【本地化管理】- 通过文化名称查询文档', '/api/localization/texts/by-culture-key', '', '', '/api/localization/texts/by-culture-key', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (209, '{}', '72073c75c2fa4e1db162c7a74004558f', 1376467826087682048, '【身份认证服务】- 发送登录验证码', '/api/account/phone/send-signin-code', '', '', '/api/account/phone/send-signin-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (210, '{}', 'e8e2f943dd56456f8f5dd957dd30e8b9', 1376467990894469120, '【身份认证服务】- 发送重置密码短信', '/api/account/phone/send-password-reset-code', '', '', '/api/account/phone/send-password-reset-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); -INSERT INTO `appapigatewayreroute` VALUES (211, '{}', '89fd6b8a830d457f9d1d43263c7074b4', 1376468110214029312, '【身份认证服务】- 发送注册短信', '/api/account/phone/send-register-code', '', '', '/api/account/phone/send-register-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); - --- ---------------------------- --- Table structure for appapigatewayroutegroup --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewayroutegroup`; -CREATE TABLE `appapigatewayroutegroup` ( - `Id` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, - `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, - `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `CreationTime` datetime(6) NOT NULL, - `CreatorId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, - `LastModificationTime` datetime(6) NULL DEFAULT NULL, - `LastModifierId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, - `IsDeleted` tinyint(1) NOT NULL, - `DeleterId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, - `DeletionTime` datetime(6) NULL DEFAULT NULL, - `Name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `AppName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `AppIpAddress` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, - `Description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `IsActive` tinyint(1) NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - INDEX `IX_AppApiGatewayRouteGroup_AppId_AppName_AppIpAddress`(`AppId`, `AppName`, `AppIpAddress`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewayroutegroup --- ---------------------------- -INSERT INTO `appapigatewayroutegroup` VALUES ('08d7f735-a83b-49ab-8cee-5d602502bea8', '{}', '83cac848676f4b658d5c9f7d802a497a', '2020-05-13 20:03:32.524271', NULL, '2020-08-05 15:43:28.205288', 'bf289dbb-838e-a89b-c622-39f51dcc4f43', 0, NULL, NULL, 'abp后台管理', 'TEST-APP', 'abp后台管理', '127.0.0.1', 'abp后台管理项目网关', 1); - --- ---------------------------- --- Table structure for appapigatewaysecurityoptions --- ---------------------------- -DROP TABLE IF EXISTS `appapigatewaysecurityoptions`; -CREATE TABLE `appapigatewaysecurityoptions` ( - `Id` int(0) NOT NULL AUTO_INCREMENT, - `ReRouteId` bigint(0) NOT NULL, - `IPAllowedList` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - `IPBlockedList` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, - PRIMARY KEY (`Id`) USING BTREE, - UNIQUE INDEX `IX_AppApiGatewaySecurityOptions_ReRouteId`(`ReRouteId`) USING BTREE, - CONSTRAINT `FK_AppApiGatewaySecurityOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT -) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of appapigatewaysecurityoptions --- ---------------------------- -INSERT INTO `appapigatewaysecurityoptions` VALUES (3, 1261299170387169280, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (4, 1261585859064872960, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (5, 1261586605810368512, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (6, 1261587558609436672, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (7, 1261588213298348032, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (8, 1261588367619375104, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (9, 1261588628450557952, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (10, 1261588881564221440, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (11, 1261588983053795328, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (12, 1261589139039961088, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (13, 1261589197483393024, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (14, 1261589278857084928, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (15, 1261589420356124672, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (16, 1261589960393736192, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (17, 1261606600242085888, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (18, 1261606689601732608, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (21, 1262220447629058048, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (22, 1262230734939758592, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (23, 1262296916350869504, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (24, 1262632376348594176, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (25, 1262632791869902848, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (28, 1262660336921235456, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (29, 1262660528277966848, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (30, 1262660706875625472, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (31, 1262660966393991168, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (32, 1262661109474283520, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (33, 1262663888804663296, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (34, 1262664024096133120, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (35, 1262664186252120064, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (36, 1262664357044178944, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (37, 1262664632928718848, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (38, 1262664751409418240, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (39, 1262664871274237952, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (40, 1262665026111164416, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (41, 1262665159905267712, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (42, 1262665329829105664, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (43, 1262665456471920640, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (44, 1262665628165754880, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (45, 1262666172682883072, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (47, 1262723402331885568, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (48, 1262935771746734080, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (49, 1262935906522304512, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (52, 1263074419073593344, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (53, 1263075249394790400, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (54, 1263075593499684864, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (56, 1263101898440146944, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (57, 1263303878648569856, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (58, 1263304204797648896, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (59, 1263304872891555840, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (60, 1263305106250047488, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (61, 1263305244594970624, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (62, 1263305430536855552, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (63, 1263639172959174656, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (64, 1264799968944640000, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (65, 1264800070161584128, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (66, 1267360794414161920, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (67, 1267383367629807616, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (68, 1267817055527632896, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (69, 1267817221286526976, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (70, 1268893687085518848, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (94, 1288657613998579712, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (95, 1288657941770854400, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (96, 1288658134067109888, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (97, 1288658305156964352, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (98, 1288658491216289792, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (99, 1288658638302142464, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (100, 1288658791784308736, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (101, 1290849478956199936, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (102, 1290849628051124224, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (103, 1290849798553776128, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (105, 1291259822512693248, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (114, 1293470838745821184, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (115, 1293471661785706496, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (116, 1293472678392721408, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (117, 1293472857510473728, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (118, 1299273336009359360, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (119, 1299273436282585088, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (120, 1299273618470567936, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (121, 1299273770182737920, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (122, 1299273978023084032, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (123, 1299274123225694208, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (124, 1299274222299348992, '127.0.0.1', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (125, 1304238876758495232, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (126, 1304678610343383040, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (127, 1304679169305694208, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (128, 1310460417141817344, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (129, 1310502391475519488, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (130, 1310515546943569920, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (131, 1310515735292985344, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (132, 1316628769783480320, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (133, 1316628940663619584, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (134, 1316629112428756992, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (135, 1316652047017246720, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (136, 1316913899996737536, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (137, 1319200951383199744, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (138, 1319221929807024128, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (139, 1319554431134306304, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (140, 1319554550458060800, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (141, 1319554948434595840, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (142, 1319555067183730688, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (143, 1319555230765780992, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (144, 1319555333790470144, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (145, 1321001932510203904, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (146, 1321002059803136000, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (147, 1321002256440496128, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (148, 1321002350686507008, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (149, 1322190027988525056, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (150, 1322452079688458240, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (151, 1322452183929495552, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (152, 1322452308651319296, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (153, 1322452858176446464, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (154, 1322452989235863552, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (155, 1322453089655889920, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (156, 1329706860249804800, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (157, 1329707002411544576, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (158, 1329708512277098496, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (159, 1329708625917571072, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (160, 1335049839287357440, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (161, 1335050034221830144, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (162, 1335050145899368448, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (163, 1335050283434790912, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (164, 1335050381770248192, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (165, 1335050520941449216, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (166, 1335050615829188608, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (167, 1335111798720450560, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (168, 1335118541370314752, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (169, 1335118660417245184, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (170, 1335118782727344128, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (171, 1335118903200337920, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (172, 1336230645078921216, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (173, 1337314809113722880, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (174, 1337314938973569024, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (175, 1340961907637243904, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (176, 1341652247554379776, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (177, 1341652385555369984, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (178, 1342457939827552256, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (179, 1342458050112581632, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (180, 1363382062055915520, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (181, 1363382298501414912, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (182, 1368854800347848704, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (183, 1368855936576413696, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (184, 1368856295889854464, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (185, 1368856703572008960, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (186, 1368856819242524672, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (187, 1368856927887581184, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (188, 1368857128383700992, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (189, 1369560306297233408, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (190, 1369560450472239104, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (191, 1371705034307375104, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (192, 1376442078396276736, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (193, 1376442309850554368, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (194, 1376442440536678400, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (195, 1376442557943635968, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (196, 1376442689674141696, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (197, 1376442971032248320, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (198, 1376443123021242368, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (199, 1376443238851141632, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (200, 1376443392249421824, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (201, 1376443586777047040, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (202, 1376467826087682048, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (203, 1376467990894469120, '', ''); -INSERT INTO `appapigatewaysecurityoptions` VALUES (204, 1376468110214029312, '', ''); - --- ---------------------------- --- Table structure for cap.published --- ---------------------------- -DROP TABLE IF EXISTS `cap.published`; -CREATE TABLE `cap.published` ( - `Id` bigint(0) NOT NULL, - `Version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `Name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, - `Content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL, - `Retries` int(0) NULL DEFAULT NULL, - `Added` datetime(0) NOT NULL, - `ExpiresAt` datetime(0) NULL DEFAULT NULL, - `StatusName` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - INDEX `IX_ExpiresAt`(`ExpiresAt`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; - --- ---------------------------- --- Records of cap.published --- ---------------------------- -INSERT INTO `cap.published` VALUES (1376442080048832512, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442080048832512\",\"cap-corr-id\":\"1376442080048832512\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:52:19 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:52:19.593051+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:52:20', '2021-03-30 15:52:20', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376442309972189184, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442309972189184\",\"cap-corr-id\":\"1376442309972189184\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:53:14 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:53:14.4154232+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:53:14', '2021-03-30 15:53:14', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376442440738004992, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442440738004992\",\"cap-corr-id\":\"1376442440738004992\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:53:45 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:53:45.5924626+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:53:46', '2021-03-30 15:53:46', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376442558023327744, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442558023327744\",\"cap-corr-id\":\"1376442558023327744\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:54:13 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:54:13.5549538+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:54:14', '2021-03-30 15:54:14', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376442689783193600, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442689783193600\",\"cap-corr-id\":\"1376442689783193600\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:54:44 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:54:44.9636224+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:54:45', '2021-03-30 15:54:45', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376442971116134400, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376442971116134400\",\"cap-corr-id\":\"1376442971116134400\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:55:52 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:55:52.0442879+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:55:52', '2021-03-30 15:55:52', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376443123109322752, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376443123109322752\",\"cap-corr-id\":\"1376443123109322752\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:56:28 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:56:28.2817305+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:56:28', '2021-03-30 15:56:28', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376443238922444800, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376443238922444800\",\"cap-corr-id\":\"1376443238922444800\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:56:55 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:56:55.8946549+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:56:56', '2021-03-30 15:56:56', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376443392333307904, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376443392333307904\",\"cap-corr-id\":\"1376443392333307904\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:57:32 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:57:32.4706372+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:57:32', '2021-03-30 15:57:32', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376443586886098944, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376443586886098944\",\"cap-corr-id\":\"1376443586886098944\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午3:58:18 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T15:58:18.8481239+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 15:58:19', '2021-03-30 15:58:19', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376467826179956736, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376467826179956736\",\"cap-corr-id\":\"1376467826179956736\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午5:34:37 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T17:34:37.9529723+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 17:34:38', '2021-03-30 17:34:38', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376467990969966592, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376467990969966592\",\"cap-corr-id\":\"1376467990969966592\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午5:35:17 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T17:35:17.2420976+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 17:35:17', '2021-03-30 17:35:17', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376468110281138176, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376468110281138176\",\"cap-corr-id\":\"1376468110281138176\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午5:35:45 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T17:35:45.6880229+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Create\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 17:35:46', '2021-03-30 17:35:46', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376516577204494336, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376516577204494336\",\"cap-corr-id\":\"1376516577204494336\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午8:48:21 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T20:48:21.103384+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Modify\",\"Object\":\"ReRoute\"}}', 0, '2021-03-29 20:48:21', '2021-03-30 20:48:21', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376516622045798400, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376516622045798400\",\"cap-corr-id\":\"1376516622045798400\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午8:48:31 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T20:48:31.7941785+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Update\",\"Object\":\"AggregateRoute\"}}', 0, '2021-03-29 20:48:32', '2021-03-30 20:48:32', 'Succeeded'); -INSERT INTO `cap.published` VALUES (1376516635597594624, 'v1', 'LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData', '{\"Headers\":{\"cap-abp-user-id\":\"bf289dbb-838e-a89b-c622-39f51dcc4f43\",\"cap-abp-client-id\":\"vue-admin-element\",\"cap-abp-tenant-id\":\"\",\"cap-msg-id\":\"1376516635597594624\",\"cap-corr-id\":\"1376516635597594624\",\"cap-corr-seq\":\"0\",\"cap-msg-name\":\"LINGYUN.ApiGateway.EventBus.ApigatewayConfigChangeEventData\",\"cap-msg-type\":\"Object\",\"cap-senttime\":\"2021/3/29 下午8:48:35 +08:00\"},\"Value\":{\"DateTime\":\"2021-03-29T20:48:35.0253124+08:00\",\"AppId\":\"TEST-APP\",\"Method\":\"Update\",\"Object\":\"AggregateRoute\"}}', 0, '2021-03-29 20:48:35', '2021-03-30 20:48:35', 'Succeeded'); - --- ---------------------------- --- Table structure for cap.received --- ---------------------------- -DROP TABLE IF EXISTS `cap.received`; -CREATE TABLE `cap.received` ( - `Id` bigint(0) NOT NULL, - `Version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `Name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, - `Group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, - `Content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL, - `Retries` int(0) NULL DEFAULT NULL, - `Added` datetime(0) NOT NULL, - `ExpiresAt` datetime(0) NULL DEFAULT NULL, - `StatusName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, - PRIMARY KEY (`Id`) USING BTREE, - INDEX `IX_ExpiresAt`(`ExpiresAt`) USING BTREE -) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; - -SET FOREIGN_KEY_CHECKS = 1; +/* + Navicat Premium Data Transfer + + Source Server : 本机服务器 + Source Server Type : MySQL + Source Server Version : 80020 + Source Host : localhost:3306 + Source Schema : apigateway + + Target Server Type : MySQL + Target Server Version : 80020 + File Encoding : 65001 + + Date: 21/06/2021 11:40:37 +*/ + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for __efmigrationshistory +-- ---------------------------- +DROP TABLE IF EXISTS `__efmigrationshistory`; +CREATE TABLE `__efmigrationshistory` ( + `MigrationId` varchar(95) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, + `ProductVersion` varchar(32) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, + PRIMARY KEY (`MigrationId`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of __efmigrationshistory +-- ---------------------------- +INSERT INTO `__efmigrationshistory` VALUES ('20200513034946_Migration-ApiGateway-MySql', '3.1.3'); +INSERT INTO `__efmigrationshistory` VALUES ('20200513111130_Rename-Router-To-RouteGroup', '3.1.3'); +INSERT INTO `__efmigrationshistory` VALUES ('20200618090102_Modify-ReRoute-Index-Unique', '3.1.4'); +INSERT INTO `__efmigrationshistory` VALUES ('20200908020925_Upgrade-abp-3.1.0', '3.1.7'); + +-- ---------------------------- +-- Table structure for appapigatewayaggregate +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayaggregate`; +CREATE TABLE `appapigatewayaggregate` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `Name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ReRouteId` bigint(0) NOT NULL, + `ReRouteKeys` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `UpstreamPathTemplate` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `UpstreamHost` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `ReRouteIsCaseSensitive` tinyint(1) NOT NULL DEFAULT 0, + `Aggregator` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Priority` int(0) NULL DEFAULT NULL, + `UpstreamHttpMethod` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 11 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayaggregate +-- ---------------------------- +INSERT INTO `appapigatewayaggregate` VALUES (5, '{}', '90044e20fde546bab1bdd45999f8208a', 'TEST-APP', 'abp接口代理服务', 1263083077348196352, 'platform-api-definition,backend-admin-api-definition,messages-api-definition,apigateway-api-definition,identity-server-api-definition,localization-api-definition,', '/api/abp/api-definition', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); +INSERT INTO `appapigatewayaggregate` VALUES (6, '{}', '870a2c5df9b34f8c9514aef0250fbb47', 'TEST-APP', 'abp框架配置', 1263102116090970112, 'apigateway-configuration,platform-configuration,backend-admin-configuration,messages-configuration,identity-server-configuration,', '/api/abp/application-configuration', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); +INSERT INTO `appapigatewayaggregate` VALUES (8, '{}', 'edc962f7e0844bb09cb0fb731f358b4b', 'TEST-APP', '我的消息订阅', 1322503807309881344, 'assignables-notifilers,my-subscribes,', '/api/my-subscribes/assignables-notifilers', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); +INSERT INTO `appapigatewayaggregate` VALUES (9, '{}', 'c65227b8a0e143b2a0b6186ffde3dfc1', 'TEST-APP', '全局设置', 1329708867127799808, 'setting-global,wechat-setting-global,aliyun-setting-global,oss-management-global,', '/api/setting-management/settings/by-global', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); +INSERT INTO `appapigatewayaggregate` VALUES (10, '{}', '29fb4cbfcdfe41478b931df8c549992b', 'TEST-APP', '当前租户设置', 1329709265255329792, 'setting-current-tenant,wechat-setting-current-tenant,aliyun-setting-current-tenant,oss-management-current-tenant,', '/api/setting-management/settings/by-current-tenant', '', 1, 'AbpApiDefinitionAggregator', NULL, ''); + +-- ---------------------------- +-- Table structure for appapigatewayaggregateconfig +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayaggregateconfig`; +CREATE TABLE `appapigatewayaggregateconfig` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `ReRouteKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Parameter` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `JsonPath` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AggregateReRouteId` int(0) NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + INDEX `IX_AppApiGatewayAggregateConfig_AggregateReRouteId`(`AggregateReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayAggregateConfig_AppApiGatewayAggregate_Aggregat~` FOREIGN KEY (`AggregateReRouteId`) REFERENCES `appapigatewayaggregate` (`Id`) ON DELETE RESTRICT ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for appapigatewayauthoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayauthoptions`; +CREATE TABLE `appapigatewayauthoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `AuthenticationProviderKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AllowedScopes` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayAuthOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayAuthOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayauthoptions +-- ---------------------------- +INSERT INTO `appapigatewayauthoptions` VALUES (3, 1261299170387169280, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (4, 1261585859064872960, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (5, 1261586605810368512, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (6, 1261587558609436672, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (7, 1261588213298348032, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (8, 1261588367619375104, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (9, 1261588628450557952, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (10, 1261588881564221440, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (11, 1261588983053795328, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (12, 1261589139039961088, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (13, 1261589197483393024, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (14, 1261589278857084928, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (15, 1261589420356124672, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (16, 1261589960393736192, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (17, 1261606600242085888, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (18, 1261606689601732608, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (21, 1262220447629058048, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (22, 1262230734939758592, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (23, 1262296916350869504, NULL, ''); +INSERT INTO `appapigatewayauthoptions` VALUES (24, 1262632376348594176, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (25, 1262632791869902848, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (28, 1262660336921235456, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (29, 1262660528277966848, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (30, 1262660706875625472, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (31, 1262660966393991168, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (32, 1262661109474283520, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (33, 1262663888804663296, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (34, 1262664024096133120, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (35, 1262664186252120064, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (36, 1262664357044178944, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (37, 1262664632928718848, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (38, 1262664751409418240, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (39, 1262664871274237952, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (40, 1262665026111164416, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (41, 1262665159905267712, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (42, 1262665329829105664, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (43, 1262665456471920640, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (44, 1262665628165754880, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (45, 1262666172682883072, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (47, 1262723402331885568, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (48, 1262935771746734080, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (49, 1262935906522304512, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (52, 1263074419073593344, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (53, 1263075249394790400, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (54, 1263075593499684864, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (56, 1263101898440146944, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (57, 1263303878648569856, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (58, 1263304204797648896, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (59, 1263304872891555840, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (60, 1263305106250047488, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (61, 1263305244594970624, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (62, 1263305430536855552, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (63, 1263639172959174656, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (64, 1264799968944640000, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (65, 1264800070161584128, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (66, 1267360794414161920, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (67, 1267383367629807616, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (68, 1267817055527632896, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (69, 1267817221286526976, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (70, 1268893687085518848, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (94, 1288657613998579712, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (95, 1288657941770854400, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (96, 1288658134067109888, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (97, 1288658305156964352, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (98, 1288658491216289792, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (99, 1288658638302142464, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (100, 1288658791784308736, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (101, 1290849478956199936, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (102, 1290849628051124224, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (103, 1290849798553776128, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (105, 1291259822512693248, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (114, 1293470838745821184, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (115, 1293471661785706496, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (116, 1293472678392721408, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (117, 1293472857510473728, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (118, 1299273336009359360, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (119, 1299273436282585088, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (120, 1299273618470567936, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (121, 1299273770182737920, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (122, 1299273978023084032, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (123, 1299274123225694208, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (124, 1299274222299348992, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (125, 1304238876758495232, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (126, 1304678610343383040, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (127, 1304679169305694208, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (128, 1310460417141817344, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (129, 1310502391475519488, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (130, 1310515546943569920, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (131, 1310515735292985344, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (132, 1316628769783480320, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (133, 1316628940663619584, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (134, 1316629112428756992, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (135, 1316652047017246720, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (136, 1316913899996737536, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (137, 1319200951383199744, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (138, 1319221929807024128, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (139, 1319554431134306304, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (140, 1319554550458060800, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (141, 1319554948434595840, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (142, 1319555067183730688, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (143, 1319555230765780992, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (144, 1319555333790470144, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (145, 1321001932510203904, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (146, 1321002059803136000, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (147, 1321002256440496128, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (148, 1321002350686507008, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (149, 1322190027988525056, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (150, 1322452079688458240, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (151, 1322452183929495552, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (152, 1322452308651319296, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (153, 1322452858176446464, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (154, 1322452989235863552, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (155, 1322453089655889920, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (156, 1329706860249804800, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (157, 1329707002411544576, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (158, 1329708512277098496, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (159, 1329708625917571072, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (160, 1335049839287357440, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (161, 1335050034221830144, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (162, 1335050145899368448, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (163, 1335050283434790912, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (164, 1335050381770248192, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (165, 1335050520941449216, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (166, 1335050615829188608, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (167, 1335111798720450560, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (168, 1335118541370314752, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (169, 1335118660417245184, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (170, 1335118782727344128, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (171, 1335118903200337920, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (172, 1336230645078921216, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (173, 1337314809113722880, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (174, 1337314938973569024, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (175, 1340961907637243904, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (176, 1341652247554379776, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (177, 1341652385555369984, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (178, 1342457939827552256, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (179, 1342458050112581632, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (180, 1363382062055915520, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (181, 1363382298501414912, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (182, 1368854800347848704, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (183, 1368855936576413696, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (184, 1368856295889854464, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (185, 1368856703572008960, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (186, 1368856819242524672, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (187, 1368856927887581184, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (188, 1368857128383700992, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (189, 1369560306297233408, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (190, 1369560450472239104, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (191, 1371705034307375104, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (192, 1376442078396276736, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (193, 1376442309850554368, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (194, 1376442440536678400, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (195, 1376442557943635968, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (196, 1376442689674141696, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (197, 1376442971032248320, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (198, 1376443123021242368, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (199, 1376443238851141632, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (200, 1376443392249421824, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (201, 1376443586777047040, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (202, 1376467826087682048, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (203, 1376467990894469120, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (204, 1376468110214029312, '', ''); +INSERT INTO `appapigatewayauthoptions` VALUES (220, 1406817452004757504, '', ''); +-- ---------------------------- +-- Table structure for appapigatewaybalanceroptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewaybalanceroptions`; +CREATE TABLE `appapigatewaybalanceroptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ItemId` bigint(0) NULL DEFAULT NULL, + `ReRouteId` bigint(0) NULL DEFAULT NULL, + `Type` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Expiry` int(0) NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayBalancerOptions_ItemId`(`ItemId`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayBalancerOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayBalancerOptions_AppApiGatewayGlobalConfiguratio~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, + CONSTRAINT `FK_AppApiGatewayBalancerOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewaybalanceroptions +-- ---------------------------- +INSERT INTO `appapigatewaybalanceroptions` VALUES (1, 1260841964962947072, NULL, 'LeastConnection', NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (4, NULL, 1261299170387169280, 'LeastConnection', NULL, 60000); +INSERT INTO `appapigatewaybalanceroptions` VALUES (5, NULL, 1261585859064872960, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (6, NULL, 1261586605810368512, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (7, NULL, 1261587558609436672, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (8, NULL, 1261588213298348032, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (9, NULL, 1261588367619375104, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (10, NULL, 1261588628450557952, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (11, NULL, 1261588881564221440, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (12, NULL, 1261588983053795328, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (13, NULL, 1261589139039961088, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (14, NULL, 1261589197483393024, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (15, NULL, 1261589278857084928, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (16, NULL, 1261589420356124672, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (17, NULL, 1261589960393736192, 'LeastConnection', NULL, 60000); +INSERT INTO `appapigatewaybalanceroptions` VALUES (18, NULL, 1261606600242085888, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (19, NULL, 1261606689601732608, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (22, NULL, 1262220447629058048, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (23, NULL, 1262230734939758592, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (24, NULL, 1262296916350869504, NULL, NULL, NULL); +INSERT INTO `appapigatewaybalanceroptions` VALUES (25, NULL, 1262632376348594176, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (26, NULL, 1262632791869902848, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (29, NULL, 1262660336921235456, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (30, NULL, 1262660528277966848, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (31, NULL, 1262660706875625472, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (32, NULL, 1262660966393991168, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (33, NULL, 1262661109474283520, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (34, NULL, 1262663888804663296, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (35, NULL, 1262664024096133120, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (36, NULL, 1262664186252120064, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (37, NULL, 1262664357044178944, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (38, NULL, 1262664632928718848, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (39, NULL, 1262664751409418240, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (40, NULL, 1262664871274237952, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (41, NULL, 1262665026111164416, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (42, NULL, 1262665159905267712, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (43, NULL, 1262665329829105664, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (44, NULL, 1262665456471920640, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (45, NULL, 1262665628165754880, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (46, NULL, 1262666172682883072, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (48, NULL, 1262723402331885568, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (49, NULL, 1262935771746734080, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (50, NULL, 1262935906522304512, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (53, NULL, 1263074419073593344, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (54, NULL, 1263075249394790400, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (55, NULL, 1263075593499684864, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (57, NULL, 1263101898440146944, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (58, NULL, 1263303878648569856, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (59, NULL, 1263304204797648896, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (60, NULL, 1263304872891555840, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (61, NULL, 1263305106250047488, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (62, NULL, 1263305244594970624, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (63, NULL, 1263305430536855552, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (64, NULL, 1263639172959174656, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (65, NULL, 1264799968944640000, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (66, NULL, 1264800070161584128, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (68, NULL, 1267360794414161920, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (69, NULL, 1267383367629807616, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (70, NULL, 1267817055527632896, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (71, NULL, 1267817221286526976, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (72, NULL, 1268893687085518848, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (97, NULL, 1288657613998579712, 'LeastConnection', '', 60000); +INSERT INTO `appapigatewaybalanceroptions` VALUES (98, NULL, 1288657941770854400, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (99, NULL, 1288658134067109888, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (100, NULL, 1288658305156964352, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (101, NULL, 1288658491216289792, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (102, NULL, 1288658638302142464, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (103, NULL, 1288658791784308736, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (104, NULL, 1290849478956199936, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (105, NULL, 1290849628051124224, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (106, NULL, 1290849798553776128, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (108, NULL, 1291259822512693248, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (117, NULL, 1293470838745821184, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (118, NULL, 1293471661785706496, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (119, NULL, 1293472678392721408, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (120, NULL, 1293472857510473728, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (121, NULL, 1299273336009359360, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (122, NULL, 1299273436282585088, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (123, NULL, 1299273618470567936, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (124, NULL, 1299273770182737920, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (125, NULL, 1299273978023084032, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (126, NULL, 1299274123225694208, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (127, NULL, 1299274222299348992, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (128, NULL, 1304238876758495232, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (129, NULL, 1304678610343383040, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (130, NULL, 1304679169305694208, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (131, NULL, 1310460417141817344, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (132, NULL, 1310502391475519488, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (133, NULL, 1310515546943569920, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (134, NULL, 1310515735292985344, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (135, NULL, 1316628769783480320, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (136, NULL, 1316628940663619584, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (137, NULL, 1316629112428756992, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (138, NULL, 1316652047017246720, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (139, NULL, 1316913899996737536, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (140, NULL, 1319200951383199744, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (141, NULL, 1319221929807024128, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (142, NULL, 1319554431134306304, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (143, NULL, 1319554550458060800, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (144, NULL, 1319554948434595840, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (145, NULL, 1319555067183730688, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (146, NULL, 1319555230765780992, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (147, NULL, 1319555333790470144, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (148, NULL, 1321001932510203904, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (149, NULL, 1321002059803136000, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (150, NULL, 1321002256440496128, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (151, NULL, 1321002350686507008, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (152, NULL, 1322190027988525056, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (153, NULL, 1322452079688458240, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (154, NULL, 1322452183929495552, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (155, NULL, 1322452308651319296, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (156, NULL, 1322452858176446464, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (157, NULL, 1322452989235863552, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (158, NULL, 1322453089655889920, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (159, NULL, 1329706860249804800, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (160, NULL, 1329707002411544576, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (161, NULL, 1329708512277098496, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (162, NULL, 1329708625917571072, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (163, NULL, 1335049839287357440, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (164, NULL, 1335050034221830144, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (165, NULL, 1335050145899368448, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (166, NULL, 1335050283434790912, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (167, NULL, 1335050381770248192, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (168, NULL, 1335050520941449216, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (169, NULL, 1335050615829188608, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (170, NULL, 1335111798720450560, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (171, NULL, 1335118541370314752, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (172, NULL, 1335118660417245184, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (173, NULL, 1335118782727344128, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (174, NULL, 1335118903200337920, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (175, NULL, 1336230645078921216, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (176, NULL, 1337314809113722880, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (177, NULL, 1337314938973569024, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (178, NULL, 1340961907637243904, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (179, NULL, 1341652247554379776, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (180, NULL, 1341652385555369984, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (181, NULL, 1342457939827552256, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (182, NULL, 1342458050112581632, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (183, NULL, 1363382062055915520, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (184, NULL, 1363382298501414912, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (185, NULL, 1368854800347848704, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (186, NULL, 1368855936576413696, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (187, NULL, 1368856295889854464, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (188, NULL, 1368856703572008960, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (189, NULL, 1368856819242524672, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (190, NULL, 1368856927887581184, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (191, NULL, 1368857128383700992, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (192, NULL, 1369560306297233408, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (193, NULL, 1369560450472239104, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (194, NULL, 1371705034307375104, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (195, NULL, 1376442078396276736, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (196, NULL, 1376442309850554368, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (197, NULL, 1376442440536678400, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (198, NULL, 1376442557943635968, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (199, NULL, 1376442689674141696, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (200, NULL, 1376442971032248320, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (201, NULL, 1376443123021242368, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (202, NULL, 1376443238851141632, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (203, NULL, 1376443392249421824, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (204, NULL, 1376443586777047040, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (205, NULL, 1376467826087682048, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (206, NULL, 1376467990894469120, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (207, NULL, 1376468110214029312, '', '', 0); +INSERT INTO `appapigatewaybalanceroptions` VALUES (227, NULL, 1406817452004757504, '', '', 0); + +-- ---------------------------- +-- Table structure for appapigatewaycacheoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewaycacheoptions`; +CREATE TABLE `appapigatewaycacheoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `TtlSeconds` int(0) NULL DEFAULT NULL, + `Region` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayCacheOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayCacheOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewaycacheoptions +-- ---------------------------- +INSERT INTO `appapigatewaycacheoptions` VALUES (3, 1261299170387169280, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (4, 1261585859064872960, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (5, 1261586605810368512, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (6, 1261587558609436672, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (7, 1261588213298348032, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (8, 1261588367619375104, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (9, 1261588628450557952, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (10, 1261588881564221440, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (11, 1261588983053795328, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (12, 1261589139039961088, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (13, 1261589197483393024, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (14, 1261589278857084928, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (15, 1261589420356124672, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (16, 1261589960393736192, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (17, 1261606600242085888, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (18, 1261606689601732608, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (21, 1262220447629058048, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (22, 1262230734939758592, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (23, 1262296916350869504, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (24, 1262632376348594176, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (25, 1262632791869902848, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (28, 1262660336921235456, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (29, 1262660528277966848, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (30, 1262660706875625472, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (31, 1262660966393991168, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (32, 1262661109474283520, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (33, 1262663888804663296, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (34, 1262664024096133120, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (35, 1262664186252120064, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (36, 1262664357044178944, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (37, 1262664632928718848, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (38, 1262664751409418240, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (39, 1262664871274237952, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (40, 1262665026111164416, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (41, 1262665159905267712, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (42, 1262665329829105664, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (43, 1262665456471920640, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (44, 1262665628165754880, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (45, 1262666172682883072, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (47, 1262723402331885568, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (48, 1262935771746734080, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (49, 1262935906522304512, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (52, 1263074419073593344, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (53, 1263075249394790400, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (54, 1263075593499684864, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (56, 1263101898440146944, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (57, 1263303878648569856, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (58, 1263304204797648896, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (59, 1263304872891555840, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (60, 1263305106250047488, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (61, 1263305244594970624, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (62, 1263305430536855552, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (63, 1263639172959174656, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (64, 1264799968944640000, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (65, 1264800070161584128, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (66, 1267360794414161920, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (67, 1267383367629807616, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (68, 1267817055527632896, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (69, 1267817221286526976, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (70, 1268893687085518848, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (94, 1288657613998579712, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (95, 1288657941770854400, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (96, 1288658134067109888, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (97, 1288658305156964352, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (98, 1288658491216289792, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (99, 1288658638302142464, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (100, 1288658791784308736, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (101, 1290849478956199936, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (102, 1290849628051124224, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (103, 1290849798553776128, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (105, 1291259822512693248, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (114, 1293470838745821184, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (115, 1293471661785706496, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (116, 1293472678392721408, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (117, 1293472857510473728, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (118, 1299273336009359360, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (119, 1299273436282585088, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (120, 1299273618470567936, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (121, 1299273770182737920, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (122, 1299273978023084032, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (123, 1299274123225694208, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (124, 1299274222299348992, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (125, 1304238876758495232, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (126, 1304678610343383040, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (127, 1304679169305694208, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (128, 1310460417141817344, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (129, 1310502391475519488, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (130, 1310515546943569920, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (131, 1310515735292985344, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (132, 1316628769783480320, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (133, 1316628940663619584, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (134, 1316629112428756992, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (135, 1316652047017246720, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (136, 1316913899996737536, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (137, 1319200951383199744, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (138, 1319221929807024128, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (139, 1319554431134306304, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (140, 1319554550458060800, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (141, 1319554948434595840, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (142, 1319555067183730688, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (143, 1319555230765780992, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (144, 1319555333790470144, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (145, 1321001932510203904, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (146, 1321002059803136000, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (147, 1321002256440496128, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (148, 1321002350686507008, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (149, 1322190027988525056, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (150, 1322452079688458240, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (151, 1322452183929495552, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (152, 1322452308651319296, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (153, 1322452858176446464, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (154, 1322452989235863552, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (155, 1322453089655889920, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (156, 1329706860249804800, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (157, 1329707002411544576, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (158, 1329708512277098496, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (159, 1329708625917571072, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (160, 1335049839287357440, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (161, 1335050034221830144, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (162, 1335050145899368448, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (163, 1335050283434790912, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (164, 1335050381770248192, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (165, 1335050520941449216, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (166, 1335050615829188608, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (167, 1335111798720450560, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (168, 1335118541370314752, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (169, 1335118660417245184, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (170, 1335118782727344128, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (171, 1335118903200337920, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (172, 1336230645078921216, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (173, 1337314809113722880, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (174, 1337314938973569024, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (175, 1340961907637243904, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (176, 1341652247554379776, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (177, 1341652385555369984, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (178, 1342457939827552256, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (179, 1342458050112581632, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (180, 1363382062055915520, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (181, 1363382298501414912, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (182, 1368854800347848704, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (183, 1368855936576413696, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (184, 1368856295889854464, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (185, 1368856703572008960, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (186, 1368856819242524672, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (187, 1368856927887581184, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (188, 1368857128383700992, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (189, 1369560306297233408, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (190, 1369560450472239104, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (191, 1371705034307375104, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (192, 1376442078396276736, NULL, NULL); +INSERT INTO `appapigatewaycacheoptions` VALUES (193, 1376442309850554368, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (194, 1376442440536678400, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (195, 1376442557943635968, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (196, 1376442689674141696, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (197, 1376442971032248320, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (198, 1376443123021242368, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (199, 1376443238851141632, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (200, 1376443392249421824, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (201, 1376443586777047040, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (202, 1376467826087682048, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (203, 1376467990894469120, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (204, 1376468110214029312, 0, ''); +INSERT INTO `appapigatewaycacheoptions` VALUES (220, 1406817452004757504, 0, ''); + +-- ---------------------------- +-- Table structure for appapigatewaydiscovery +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewaydiscovery`; +CREATE TABLE `appapigatewaydiscovery` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ItemId` bigint(0) NOT NULL, + `Host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Port` int(0) NULL DEFAULT NULL, + `Type` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Token` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `ConfigurationKey` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `PollingInterval` int(0) NULL DEFAULT NULL, + `Namespace` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Scheme` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayDiscovery_ItemId`(`ItemId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayDiscovery_AppApiGatewayGlobalConfiguration_Item~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewaydiscovery +-- ---------------------------- +INSERT INTO `appapigatewaydiscovery` VALUES (1, 1260841964962947072, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); + +-- ---------------------------- +-- Table structure for appapigatewaydynamicreroute +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewaydynamicreroute`; +CREATE TABLE `appapigatewaydynamicreroute` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `DynamicReRouteId` bigint(0) NOT NULL, + `ServiceName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `AK_AppApiGatewayDynamicReRoute_DynamicReRouteId`(`DynamicReRouteId`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for appapigatewayglobalconfiguration +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayglobalconfiguration`; +CREATE TABLE `appapigatewayglobalconfiguration` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `ItemId` bigint(0) NOT NULL, + `RequestIdKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `BaseUrl` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `DownstreamScheme` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `IsDeleted` tinyint(1) NOT NULL DEFAULT 0, + `IsActive` tinyint(1) NOT NULL, + `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `AK_AppApiGatewayGlobalConfiguration_ItemId`(`ItemId`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayglobalconfiguration +-- ---------------------------- +INSERT INTO `appapigatewayglobalconfiguration` VALUES (1, '{}', 'f7973118f2c2425c8cc96b59883b99aa', 1260841964962947072, NULL, 'http://localhost:30000', 'HTTP', NULL, 0, 1, 'TEST-APP'); + +-- ---------------------------- +-- Table structure for appapigatewayheaders +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayheaders`; +CREATE TABLE `appapigatewayheaders` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `Key` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Value` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for appapigatewayhostandport +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayhostandport`; +CREATE TABLE `appapigatewayhostandport` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `Host` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `Port` int(0) NULL DEFAULT 0, + PRIMARY KEY (`Id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for appapigatewayhttpoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayhttpoptions`; +CREATE TABLE `appapigatewayhttpoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ItemId` bigint(0) NULL DEFAULT NULL, + `ReRouteId` bigint(0) NULL DEFAULT NULL, + `MaxConnectionsPerServer` int(0) NULL DEFAULT NULL, + `AllowAutoRedirect` tinyint(1) NOT NULL, + `UseCookieContainer` tinyint(1) NOT NULL, + `UseTracing` tinyint(1) NOT NULL, + `UseProxy` tinyint(1) NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayHttpOptions_ItemId`(`ItemId`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayHttpOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayHttpOptions_AppApiGatewayGlobalConfiguration_It~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, + CONSTRAINT `FK_AppApiGatewayHttpOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayhttpoptions +-- ---------------------------- +INSERT INTO `appapigatewayhttpoptions` VALUES (1, 1260841964962947072, NULL, NULL, 0, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (4, NULL, 1261299170387169280, 1000, 1, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (5, NULL, 1261585859064872960, NULL, 0, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (6, NULL, 1261586605810368512, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (7, NULL, 1261587558609436672, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (8, NULL, 1261588213298348032, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (9, NULL, 1261588367619375104, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (10, NULL, 1261588628450557952, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (11, NULL, 1261588881564221440, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (12, NULL, 1261588983053795328, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (13, NULL, 1261589139039961088, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (14, NULL, 1261589197483393024, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (15, NULL, 1261589278857084928, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (16, NULL, 1261589420356124672, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (17, NULL, 1261589960393736192, 1000, 1, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (18, NULL, 1261606600242085888, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (19, NULL, 1261606689601732608, NULL, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (22, NULL, 1262220447629058048, NULL, 0, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (23, NULL, 1262230734939758592, NULL, 0, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (24, NULL, 1262296916350869504, NULL, 0, 0, 1, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (25, NULL, 1262632376348594176, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (26, NULL, 1262632791869902848, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (29, NULL, 1262660336921235456, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (30, NULL, 1262660528277966848, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (31, NULL, 1262660706875625472, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (32, NULL, 1262660966393991168, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (33, NULL, 1262661109474283520, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (34, NULL, 1262663888804663296, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (35, NULL, 1262664024096133120, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (36, NULL, 1262664186252120064, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (37, NULL, 1262664357044178944, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (38, NULL, 1262664632928718848, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (39, NULL, 1262664751409418240, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (40, NULL, 1262664871274237952, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (41, NULL, 1262665026111164416, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (42, NULL, 1262665159905267712, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (43, NULL, 1262665329829105664, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (44, NULL, 1262665456471920640, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (45, NULL, 1262665628165754880, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (46, NULL, 1262666172682883072, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (48, NULL, 1262723402331885568, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (49, NULL, 1262935771746734080, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (50, NULL, 1262935906522304512, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (53, NULL, 1263074419073593344, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (54, NULL, 1263075249394790400, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (55, NULL, 1263075593499684864, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (57, NULL, 1263101898440146944, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (58, NULL, 1263303878648569856, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (59, NULL, 1263304204797648896, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (60, NULL, 1263304872891555840, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (61, NULL, 1263305106250047488, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (62, NULL, 1263305244594970624, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (63, NULL, 1263305430536855552, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (64, NULL, 1263639172959174656, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (65, NULL, 1264799968944640000, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (66, NULL, 1264800070161584128, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (68, NULL, 1267360794414161920, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (69, NULL, 1267383367629807616, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (70, NULL, 1267817055527632896, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (71, NULL, 1267817221286526976, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (72, NULL, 1268893687085518848, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (97, NULL, 1288657613998579712, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (98, NULL, 1288657941770854400, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (99, NULL, 1288658134067109888, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (100, NULL, 1288658305156964352, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (101, NULL, 1288658491216289792, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (102, NULL, 1288658638302142464, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (103, NULL, 1288658791784308736, 1000, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (104, NULL, 1290849478956199936, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (105, NULL, 1290849628051124224, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (106, NULL, 1290849798553776128, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (108, NULL, 1291259822512693248, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (117, NULL, 1293470838745821184, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (118, NULL, 1293471661785706496, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (119, NULL, 1293472678392721408, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (120, NULL, 1293472857510473728, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (121, NULL, 1299273336009359360, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (122, NULL, 1299273436282585088, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (123, NULL, 1299273618470567936, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (124, NULL, 1299273770182737920, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (125, NULL, 1299273978023084032, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (126, NULL, 1299274123225694208, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (127, NULL, 1299274222299348992, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (128, NULL, 1304238876758495232, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (129, NULL, 1304678610343383040, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (130, NULL, 1304679169305694208, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (131, NULL, 1310460417141817344, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (132, NULL, 1310502391475519488, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (133, NULL, 1310515546943569920, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (134, NULL, 1310515735292985344, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (135, NULL, 1316628769783480320, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (136, NULL, 1316628940663619584, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (137, NULL, 1316629112428756992, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (138, NULL, 1316652047017246720, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (139, NULL, 1316913899996737536, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (140, NULL, 1319200951383199744, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (141, NULL, 1319221929807024128, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (142, NULL, 1319554431134306304, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (143, NULL, 1319554550458060800, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (144, NULL, 1319554948434595840, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (145, NULL, 1319555067183730688, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (146, NULL, 1319555230765780992, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (147, NULL, 1319555333790470144, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (148, NULL, 1321001932510203904, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (149, NULL, 1321002059803136000, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (150, NULL, 1321002256440496128, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (151, NULL, 1321002350686507008, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (152, NULL, 1322190027988525056, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (153, NULL, 1322452079688458240, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (154, NULL, 1322452183929495552, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (155, NULL, 1322452308651319296, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (156, NULL, 1322452858176446464, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (157, NULL, 1322452989235863552, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (158, NULL, 1322453089655889920, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (159, NULL, 1329706860249804800, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (160, NULL, 1329707002411544576, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (161, NULL, 1329708512277098496, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (162, NULL, 1329708625917571072, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (163, NULL, 1335049839287357440, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (164, NULL, 1335050034221830144, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (165, NULL, 1335050145899368448, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (166, NULL, 1335050283434790912, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (167, NULL, 1335050381770248192, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (168, NULL, 1335050520941449216, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (169, NULL, 1335050615829188608, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (170, NULL, 1335111798720450560, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (171, NULL, 1335118541370314752, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (172, NULL, 1335118660417245184, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (173, NULL, 1335118782727344128, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (174, NULL, 1335118903200337920, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (175, NULL, 1336230645078921216, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (176, NULL, 1337314809113722880, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (177, NULL, 1337314938973569024, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (178, NULL, 1340961907637243904, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (179, NULL, 1341652247554379776, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (180, NULL, 1341652385555369984, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (181, NULL, 1342457939827552256, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (182, NULL, 1342458050112581632, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (183, NULL, 1363382062055915520, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (184, NULL, 1363382298501414912, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (185, NULL, 1368854800347848704, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (186, NULL, 1368855936576413696, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (187, NULL, 1368856295889854464, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (188, NULL, 1368856703572008960, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (189, NULL, 1368856819242524672, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (190, NULL, 1368856927887581184, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (191, NULL, 1368857128383700992, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (192, NULL, 1369560306297233408, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (193, NULL, 1369560450472239104, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (194, NULL, 1371705034307375104, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (195, NULL, 1376442078396276736, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (196, NULL, 1376442309850554368, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (197, NULL, 1376442440536678400, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (198, NULL, 1376442557943635968, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (199, NULL, 1376442689674141696, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (200, NULL, 1376442971032248320, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (201, NULL, 1376443123021242368, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (202, NULL, 1376443238851141632, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (203, NULL, 1376443392249421824, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (204, NULL, 1376443586777047040, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (205, NULL, 1376467826087682048, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (206, NULL, 1376467990894469120, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (207, NULL, 1376468110214029312, 0, 0, 0, 0, 0); +INSERT INTO `appapigatewayhttpoptions` VALUES (227, NULL, 1406817452004757504, 0, 0, 0, 0, 0); + +-- ---------------------------- +-- Table structure for appapigatewayqosoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayqosoptions`; +CREATE TABLE `appapigatewayqosoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ItemId` bigint(0) NULL DEFAULT NULL, + `ReRouteId` bigint(0) NULL DEFAULT NULL, + `ExceptionsAllowedBeforeBreaking` int(0) NULL DEFAULT NULL, + `DurationOfBreak` int(0) NULL DEFAULT NULL, + `TimeoutValue` int(0) NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayQoSOptions_ItemId`(`ItemId`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayQoSOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayQoSOptions_AppApiGatewayGlobalConfiguration_Ite~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT, + CONSTRAINT `FK_AppApiGatewayQoSOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 208 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayqosoptions +-- ---------------------------- +INSERT INTO `appapigatewayqosoptions` VALUES (1, 1260841964962947072, NULL, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (4, NULL, 1261299170387169280, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (5, NULL, 1261585859064872960, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (6, NULL, 1261586605810368512, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (7, NULL, 1261587558609436672, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (8, NULL, 1261588213298348032, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (9, NULL, 1261588367619375104, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (10, NULL, 1261588628450557952, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (11, NULL, 1261588881564221440, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (12, NULL, 1261588983053795328, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (13, NULL, 1261589139039961088, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (14, NULL, 1261589197483393024, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (15, NULL, 1261589278857084928, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (16, NULL, 1261589420356124672, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (17, NULL, 1261589960393736192, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (18, NULL, 1261606600242085888, NULL, NULL, NULL); +INSERT INTO `appapigatewayqosoptions` VALUES (19, NULL, 1261606689601732608, NULL, NULL, NULL); +INSERT INTO `appapigatewayqosoptions` VALUES (22, NULL, 1262220447629058048, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (23, NULL, 1262230734939758592, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (24, NULL, 1262296916350869504, 60, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (25, NULL, 1262632376348594176, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (26, NULL, 1262632791869902848, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (29, NULL, 1262660336921235456, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (30, NULL, 1262660528277966848, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (31, NULL, 1262660706875625472, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (32, NULL, 1262660966393991168, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (33, NULL, 1262661109474283520, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (34, NULL, 1262663888804663296, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (35, NULL, 1262664024096133120, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (36, NULL, 1262664186252120064, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (37, NULL, 1262664357044178944, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (38, NULL, 1262664632928718848, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (39, NULL, 1262664751409418240, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (40, NULL, 1262664871274237952, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (41, NULL, 1262665026111164416, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (42, NULL, 1262665159905267712, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (43, NULL, 1262665329829105664, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (44, NULL, 1262665456471920640, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (45, NULL, 1262665628165754880, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (46, NULL, 1262666172682883072, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (48, NULL, 1262723402331885568, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (49, NULL, 1262935771746734080, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (50, NULL, 1262935906522304512, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (53, NULL, 1263074419073593344, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (54, NULL, 1263075249394790400, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (55, NULL, 1263075593499684864, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (57, NULL, 1263101898440146944, 50, 60000, 120000); +INSERT INTO `appapigatewayqosoptions` VALUES (58, NULL, 1263303878648569856, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (59, NULL, 1263304204797648896, 50, 60000, 120000); +INSERT INTO `appapigatewayqosoptions` VALUES (60, NULL, 1263304872891555840, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (61, NULL, 1263305106250047488, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (62, NULL, 1263305244594970624, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (63, NULL, 1263305430536855552, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (64, NULL, 1263639172959174656, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (65, NULL, 1264799968944640000, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (66, NULL, 1264800070161584128, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (68, NULL, 1267360794414161920, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (69, NULL, 1267383367629807616, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (70, NULL, 1267817055527632896, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (71, NULL, 1267817221286526976, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (72, NULL, 1268893687085518848, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (97, NULL, 1288657613998579712, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (98, NULL, 1288657941770854400, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (99, NULL, 1288658134067109888, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (100, NULL, 1288658305156964352, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (101, NULL, 1288658491216289792, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (102, NULL, 1288658638302142464, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (103, NULL, 1288658791784308736, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (104, NULL, 1290849478956199936, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (105, NULL, 1290849628051124224, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (106, NULL, 1290849798553776128, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (108, NULL, 1291259822512693248, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (117, NULL, 1293470838745821184, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (118, NULL, 1293471661785706496, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (119, NULL, 1293472678392721408, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (120, NULL, 1293472857510473728, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (121, NULL, 1299273336009359360, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (122, NULL, 1299273436282585088, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (123, NULL, 1299273618470567936, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (124, NULL, 1299273770182737920, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (125, NULL, 1299273978023084032, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (126, NULL, 1299274123225694208, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (127, NULL, 1299274222299348992, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (128, NULL, 1304238876758495232, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (129, NULL, 1304678610343383040, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (130, NULL, 1304679169305694208, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (131, NULL, 1310460417141817344, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (132, NULL, 1310502391475519488, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (133, NULL, 1310515546943569920, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (134, NULL, 1310515735292985344, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (135, NULL, 1316628769783480320, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (136, NULL, 1316628940663619584, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (137, NULL, 1316629112428756992, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (138, NULL, 1316652047017246720, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (139, NULL, 1316913899996737536, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (140, NULL, 1319200951383199744, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (141, NULL, 1319221929807024128, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (142, NULL, 1319554431134306304, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (143, NULL, 1319554550458060800, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (144, NULL, 1319554948434595840, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (145, NULL, 1319555067183730688, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (146, NULL, 1319555230765780992, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (147, NULL, 1319555333790470144, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (148, NULL, 1321001932510203904, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (149, NULL, 1321002059803136000, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (150, NULL, 1321002256440496128, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (151, NULL, 1321002350686507008, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (152, NULL, 1322190027988525056, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (153, NULL, 1322452079688458240, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (154, NULL, 1322452183929495552, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (155, NULL, 1322452308651319296, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (156, NULL, 1322452858176446464, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (157, NULL, 1322452989235863552, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (158, NULL, 1322453089655889920, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (159, NULL, 1329706860249804800, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (160, NULL, 1329707002411544576, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (161, NULL, 1329708512277098496, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (162, NULL, 1329708625917571072, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (163, NULL, 1335049839287357440, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (164, NULL, 1335050034221830144, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (165, NULL, 1335050145899368448, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (166, NULL, 1335050283434790912, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (167, NULL, 1335050381770248192, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (168, NULL, 1335050520941449216, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (169, NULL, 1335050615829188608, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (170, NULL, 1335111798720450560, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (171, NULL, 1335118541370314752, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (172, NULL, 1335118660417245184, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (173, NULL, 1335118782727344128, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (174, NULL, 1335118903200337920, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (175, NULL, 1336230645078921216, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (176, NULL, 1337314809113722880, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (177, NULL, 1337314938973569024, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (178, NULL, 1340961907637243904, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (179, NULL, 1341652247554379776, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (180, NULL, 1341652385555369984, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (181, NULL, 1342457939827552256, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (182, NULL, 1342458050112581632, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (183, NULL, 1363382062055915520, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (184, NULL, 1363382298501414912, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (185, NULL, 1368854800347848704, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (186, NULL, 1368855936576413696, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (187, NULL, 1368856295889854464, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (188, NULL, 1368856703572008960, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (189, NULL, 1368856819242524672, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (190, NULL, 1368856927887581184, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (191, NULL, 1368857128383700992, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (192, NULL, 1369560306297233408, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (193, NULL, 1369560450472239104, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (194, NULL, 1371705034307375104, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (195, NULL, 1376442078396276736, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (196, NULL, 1376442309850554368, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (197, NULL, 1376442440536678400, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (198, NULL, 1376442557943635968, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (199, NULL, 1376442689674141696, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (200, NULL, 1376442971032248320, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (201, NULL, 1376443123021242368, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (202, NULL, 1376443238851141632, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (203, NULL, 1376443392249421824, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (204, NULL, 1376443586777047040, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (205, NULL, 1376467826087682048, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (206, NULL, 1376467990894469120, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (207, NULL, 1376468110214029312, 50, 60000, 30000); +INSERT INTO `appapigatewayqosoptions` VALUES (227, NULL, 1406817452004757504, 50, 60000, 30000); + +-- ---------------------------- +-- Table structure for appapigatewayratelimitoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayratelimitoptions`; +CREATE TABLE `appapigatewayratelimitoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ItemId` bigint(0) NOT NULL, + `ClientIdHeader` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'ClientId', + `QuotaExceededMessage` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `RateLimitCounterPrefix` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT 'ocelot', + `DisableRateLimitHeaders` tinyint(1) NOT NULL, + `HttpStatusCode` int(0) NULL DEFAULT 429, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayRateLimitOptions_ItemId`(`ItemId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayRateLimitOptions_AppApiGatewayGlobalConfigurati~` FOREIGN KEY (`ItemId`) REFERENCES `appapigatewayglobalconfiguration` (`ItemId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayratelimitoptions +-- ---------------------------- +INSERT INTO `appapigatewayratelimitoptions` VALUES (1, 1260841964962947072, 'ClientId', '您的操作过快,请稍后再试!', 'ocelot', 1, 429); + +-- ---------------------------- +-- Table structure for appapigatewayratelimitrule +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayratelimitrule`; +CREATE TABLE `appapigatewayratelimitrule` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NULL DEFAULT NULL, + `DynamicReRouteId` bigint(0) NULL DEFAULT NULL, + `ClientWhitelist` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `EnableRateLimiting` tinyint(1) NOT NULL, + `Period` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `PeriodTimespan` double NULL DEFAULT NULL, + `Limit` bigint(0) NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayRateLimitRule_DynamicReRouteId`(`DynamicReRouteId`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayRateLimitRule_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewayRateLimitRule_AppApiGatewayDynamicReRoute_Dynam~` FOREIGN KEY (`DynamicReRouteId`) REFERENCES `appapigatewaydynamicreroute` (`DynamicReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT, + CONSTRAINT `FK_AppApiGatewayRateLimitRule_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayratelimitrule +-- ---------------------------- +INSERT INTO `appapigatewayratelimitrule` VALUES (3, 1261299170387169280, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (4, 1261585859064872960, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (5, 1261586605810368512, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (6, 1261587558609436672, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (7, 1261588213298348032, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (8, 1261588367619375104, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (9, 1261588628450557952, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (10, 1261588881564221440, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (11, 1261588983053795328, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (12, 1261589139039961088, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (13, 1261589197483393024, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (14, 1261589278857084928, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (15, 1261589420356124672, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (16, 1261589960393736192, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (17, 1261606600242085888, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (18, 1261606689601732608, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (21, 1262220447629058048, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (22, 1262230734939758592, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (23, 1262296916350869504, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (24, 1262632376348594176, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (25, 1262632791869902848, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (28, 1262660336921235456, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (29, 1262660528277966848, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (30, 1262660706875625472, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (31, 1262660966393991168, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (32, 1262661109474283520, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (33, 1262663888804663296, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (34, 1262664024096133120, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (35, 1262664186252120064, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (36, 1262664357044178944, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (37, 1262664632928718848, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (38, 1262664751409418240, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (39, 1262664871274237952, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (40, 1262665026111164416, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (41, 1262665159905267712, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (42, 1262665329829105664, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (43, 1262665456471920640, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (44, 1262665628165754880, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (45, 1262666172682883072, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (47, 1262723402331885568, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (48, 1262935771746734080, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (49, 1262935906522304512, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (52, 1263074419073593344, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (53, 1263075249394790400, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (54, 1263075593499684864, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (56, 1263101898440146944, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (57, 1263303878648569856, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (58, 1263304204797648896, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (59, 1263304872891555840, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (60, 1263305106250047488, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (61, 1263305244594970624, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (62, 1263305430536855552, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (63, 1263639172959174656, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (64, 1264799968944640000, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (65, 1264800070161584128, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (66, 1267360794414161920, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (67, 1267383367629807616, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (68, 1267817055527632896, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (69, 1267817221286526976, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (70, 1268893687085518848, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (94, 1288657613998579712, NULL, '', 1, '1m', 60, 200); +INSERT INTO `appapigatewayratelimitrule` VALUES (95, 1288657941770854400, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (96, 1288658134067109888, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (97, 1288658305156964352, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (98, 1288658491216289792, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (99, 1288658638302142464, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (100, 1288658791784308736, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (101, 1290849478956199936, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (102, 1290849628051124224, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (103, 1290849798553776128, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (105, 1291259822512693248, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (114, 1293470838745821184, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (115, 1293471661785706496, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (116, 1293472678392721408, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (117, 1293472857510473728, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (118, 1299273336009359360, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (119, 1299273436282585088, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (120, 1299273618470567936, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (121, 1299273770182737920, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (122, 1299273978023084032, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (123, 1299274123225694208, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (124, 1299274222299348992, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (125, 1304238876758495232, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (126, 1304678610343383040, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (127, 1304679169305694208, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (128, 1310460417141817344, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (129, 1310502391475519488, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (130, 1310515546943569920, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (131, 1310515735292985344, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (132, 1316628769783480320, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (133, 1316628940663619584, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (134, 1316629112428756992, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (135, 1316652047017246720, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (136, 1316913899996737536, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (137, 1319200951383199744, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (138, 1319221929807024128, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (139, 1319554431134306304, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (140, 1319554550458060800, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (141, 1319554948434595840, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (142, 1319555067183730688, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (143, 1319555230765780992, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (144, 1319555333790470144, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (145, 1321001932510203904, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (146, 1321002059803136000, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (147, 1321002256440496128, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (148, 1321002350686507008, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (149, 1322190027988525056, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (150, 1322452079688458240, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (151, 1322452183929495552, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (152, 1322452308651319296, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (153, 1322452858176446464, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (154, 1322452989235863552, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (155, 1322453089655889920, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (156, 1329706860249804800, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (157, 1329707002411544576, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (158, 1329708512277098496, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (159, 1329708625917571072, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (160, 1335049839287357440, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (161, 1335050034221830144, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (162, 1335050145899368448, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (163, 1335050283434790912, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (164, 1335050381770248192, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (165, 1335050520941449216, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (166, 1335050615829188608, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (167, 1335111798720450560, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (168, 1335118541370314752, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (169, 1335118660417245184, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (170, 1335118782727344128, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (171, 1335118903200337920, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (172, 1336230645078921216, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (173, 1337314809113722880, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (174, 1337314938973569024, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (175, 1340961907637243904, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (176, 1341652247554379776, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (177, 1341652385555369984, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (178, 1342457939827552256, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (179, 1342458050112581632, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (180, 1363382062055915520, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (181, 1363382298501414912, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (182, 1368854800347848704, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (183, 1368855936576413696, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (184, 1368856295889854464, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (185, 1368856703572008960, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (186, 1368856819242524672, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (187, 1368856927887581184, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (188, 1368857128383700992, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (189, 1369560306297233408, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (190, 1369560450472239104, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (191, 1371705034307375104, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (192, 1376442078396276736, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (193, 1376442309850554368, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (194, 1376442440536678400, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (195, 1376442557943635968, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (196, 1376442689674141696, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (197, 1376442971032248320, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (198, 1376443123021242368, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (199, 1376443238851141632, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (200, 1376443392249421824, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (201, 1376443586777047040, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (202, 1376467826087682048, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (203, 1376467990894469120, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (204, 1376468110214029312, NULL, '', 0, NULL, NULL, NULL); +INSERT INTO `appapigatewayratelimitrule` VALUES (220, 1406817452004757504, NULL, '', 0, NULL, NULL, NULL); + +-- ---------------------------- +-- Table structure for appapigatewayreroute +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayreroute`; +CREATE TABLE `appapigatewayreroute` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `ReRouteId` bigint(0) NOT NULL, + `ReRouteName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `DownstreamPathTemplate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `ChangeDownstreamPathTemplate` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DownstreamHttpMethod` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `UpstreamPathTemplate` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `UpstreamHttpMethod` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `AddHeadersToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `UpstreamHeaderTransform` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DownstreamHeaderTransform` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AddClaimsToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `RouteClaimsRequirement` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AddQueriesToRequest` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `RequestIdKey` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `ReRouteIsCaseSensitive` tinyint(1) NOT NULL, + `ServiceName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `ServiceNamespace` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DownstreamScheme` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DownstreamHostAndPorts` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `DelegatingHandlers` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `UpstreamHost` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Key` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `Priority` int(0) NULL DEFAULT NULL, + `Timeout` int(0) NULL DEFAULT NULL, + `DangerousAcceptAnyServerCertificateValidator` tinyint(1) NOT NULL, + `DownstreamHttpVersion` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `AK_AppApiGatewayReRoute_ReRouteId`(`ReRouteId`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewayReRoute_AppId_DownstreamPathTemplate_UpstreamPa~`(`AppId`, `DownstreamPathTemplate`, `UpstreamPathTemplate`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 212 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayreroute +-- ---------------------------- +INSERT INTO `appapigatewayreroute` VALUES (4, '{}', '84059fcecc91498b9beafac914865e2c', 1261299170387169280, '【后台管理】- 权限管理', '/api/permission-management/permissions', '', NULL, '/api/permission-management/permissions', 'GET,PUT,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30010,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (5, '{}', 'f2312eed73cc4d3cbefcd1816849fd74', 1261585859064872960, '【身份认证服务】- 客户端', '/api/identity-server/clients', '', NULL, '/api/identity-server/clients', 'POST,GET,', '', '', 'X-Forwarded-For:{RemoteIpAddress},', '', '', '', NULL, 1, '', NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (6, '{}', 'b764ec7b994147abb12974bfcee4a0a9', 1261586605810368512, '【身份认证服务】- 管理客户端', '/api/identity-server/clients/{Id}', '', NULL, '/api/identity-server/clients/{Id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (7, '{}', 'b4ce189320804dc6b87e602594e93d35', 1261587558609436672, '【服务网关管理】- 路由组管理', '/api/ApiGateway/RouteGroups', '', '', '/api/ApiGateway/RouteGroups', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (8, '{}', '8736fefa36da4b129f3fcf6aa095f2ce', 1261588213298348032, '【服务网关管理】- 查询单个路由组', '/api/ApiGateway/RouteGroups/By-AppId/{AppId}', '', '', '/api/ApiGateway/RouteGroups/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (9, '{}', 'befd14ad39e244bc9dea7e0c01e642ce', 1261588367619375104, '【服务网关管理】- 查询所有有效路由组', '/api/ApiGateway/RouteGroups/Actived', '', '', '/api/ApiGateway/RouteGroups/Actived', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (10, '{}', '0a95945d77144ce69addb0d1e8d37837', 1261588628450557952, '【服务网关管理】- 基础配置', '/api/ApiGateway/Globals', '', '', '/api/ApiGateway/Globals', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (11, '{}', '70ee7f919bf44b42b549c905316bfd75', 1261588881564221440, '【服务网关管理】- 查询单个基础配置', '/api/ApiGateway/Globals/By-AppId/{AppId}', '', '', '/api/ApiGateway/Globals/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (12, '{}', 'caf54542d561428a9123ebed88e4b2e9', 1261588983053795328, '【服务网关管理】- 路由配置', '/api/ApiGateway/Routes', '', '', '/api/ApiGateway/Routes', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (13, '{}', 'df6c48fdaab44a37842992ae61c59dc5', 1261589139039961088, '【服务网关管理】- 通过标识查询路由', '/api/ApiGateway/Routes/By-RouteId/{RouteId}', '', '', '/api/ApiGateway/Routes/By-RouteId/{RouteId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (14, '{}', 'aaeaedebd24a4011ad565b5559f84c5f', 1261589197483393024, '【服务网关管理】- 通过名称查询路由', '/api/ApiGateway/Routes/By-RouteName/{RouteName}', '', '', '/api/ApiGateway/Routes/By-RouteName/{RouteName}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (15, '{}', '559c9f1b2b8c44caac86f7a643a16aaa', 1261589278857084928, '【服务网关管理】- 通过应用标识查询路由', '/api/ApiGateway/Routes/By-AppId/{AppId}', '', '', '/api/ApiGateway/Routes/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (16, '{}', '00d0a12f403a4a919c99c534bd76d0d0', 1261589420356124672, '【服务网关管理】- 清空应用标识下所有路由', '/api/ApiGateway/Routes/Clear', '', '', '/api/ApiGateway/Routes/Clear', 'DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, '', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (17, '{}', '8c308f1386ad49c799cd281eb95170ac', 1261589960393736192, '【服务网关管理】- 通过应用标识查询动态路由', '/api/ApiGateway/DynamicRoutes/By-AppId/{AppId}', '', NULL, '/api/ApiGateway/DynamicRoutes/By-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (18, '{}', 'e659ebbf61534a978335cfeabdc0b375', 1261606600242085888, '【服务网关管理】- 通过应用标识查询聚合路由', '/api/ApiGateway/Aggregates/by-AppId/{AppId}', '', NULL, '/api/ApiGateway/Aggregates/by-AppId/{AppId}', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (19, '{}', 'd665e4491b81413385858601d9cf9a1d', 1261606689601732608, '【服务网关管理】- 聚合路由', '/api/ApiGateway/Aggregates', '', NULL, '/api/ApiGateway/Aggregates', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30001,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (22, '{}', '2aad614e2c2a497593a4784ff639c3d9', 1262220447629058048, '【身份认证服务】- 克隆客户端', '/api/identity-server/clients/{id}/clone', '', NULL, '/api/identity-server/clients/{id}/clone', 'POST,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, NULL, NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (23, '{}', '1504c5e4a7334298878339a305445b21', 1262230734939758592, '【身份认证服务】- 可用的Api资源', '/api/identity-server/clients/assignable-api-resources', '', NULL, '/api/identity-server/clients/assignable-api-resources', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, 'assignable-api-resources', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (25, '{}', '53dd1751d9104940a966006a5e93d1fa', 1262296916350869504, '【身份认证服务】- 可用的身份资源', '/api/identity-server/clients/assignable-identity-resources', '', NULL, '/api/identity-server/clients/assignable-identity-resources', 'GET,', '', '', '', '', '', '', NULL, 1, NULL, NULL, 'HTTP', '127.0.0.1:30015,', '', NULL, 'assignable-identity-resources', NULL, 30000, 1, NULL, 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (26, '{}', '3fccd1318d0d47d9aef85542668829a6', 1262632376348594176, '【身份认证服务】- Api资源', '/api/identity-server/api-resources', '', '', '/api/identity-server/api-resources', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (27, '{}', 'de6bd0ddea6d4019b4855be5442fafdc', 1262632791869902848, '【身份认证服务】- 管理Api资源', '/api/identity-server/api-resources/{id}', '', '', '/api/identity-server/api-resources/{id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (30, '{}', '0f9875697b74420c9dc2eaf77099b210', 1262660336921235456, '【身份认证服务】- 用户登录', '/api/account/login', '', '', '/api/account/login', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (31, '{}', 'a890c6ecc6a64c9fa313a0f6b5406e1c', 1262660528277966848, '【身份认证服务】- 用户登出', '/api/account/logout', '', '', '/api/account/logout', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (32, '{}', '88de580b6beb4d9d9d4367840ba1fcea', 1262660706875625472, '【身份认证服务】- 检查密码', '/api/account/checkPassword', '', '', '/api/account/checkPassword', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (33, '{}', '78f3c1adc7a54696af37a419eda47c62', 1262660966393991168, '【身份认证服务】- 个人信息页', '/api/identity/my-profile', '', '', '/api/identity/my-profile', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (34, '{}', '95b23aa5cebb40598a78c0761cfd0b26', 1262661109474283520, '【身份认证服务】- 修改密码', '/api/identity/my-profile/change-password', '', '', '/api/identity/my-profile/change-password', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (35, '{}', '4828f7c2aff8485189f37aba5de62d60', 1262663888804663296, '【身份认证管理】- 角色管理', '/api/identity/roles', '', '', '/api/identity/roles', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (36, '{}', '0fddcd3b50a24c6795ec9034fdb44778', 1262664024096133120, '【身份认证服务】- 角色列表', '/api/identity/roles/all', '', '', '/api/identity/roles/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (37, '{}', '191e555219e845069dfd93793263a840', 1262664186252120064, '【身份认证服务】- 单个角色', '/api/identity/roles/{id}', '', '', '/api/identity/roles/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (38, '{}', 'c316858e82f74e6ca6e923d6b3a3fa76', 1262664357044178944, '【身份认证服务】- 用户注册', '/api/account/register', '', '', '/api/account/register', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (39, '{}', 'db53b6f957914a10a6a97ba306b1f6ef', 1262664632928718848, '【身份认证服务】- 单个用户', '/api/identity/users/{id}', '', '', '/api/identity/users/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (40, '{}', '1833434b8ce34f8ab791e7e950f4c61f', 1262664751409418240, '【身份认证服务】- 用户管理', '/api/identity/users', '', '', '/api/identity/users', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (41, '{}', 'b3c963a1612144918bffaf272697498c', 1262664871274237952, '【身份认证服务】- 用户角色', '/api/identity/users/{id}/roles', '', '', '/api/identity/users/{id}/roles', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (42, '{}', '33dd757b79cb4f52994af13bfb4f6783', 1262665026111164416, '【身份认证服务】- 通过用户名查询用户', '/api/identity/users/by-username/{userName}', '', '', '/api/identity/users/by-username/{userName}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (43, '{}', 'e46fd6cb3a104da3aadfe0149fe4de68', 1262665159905267712, '【身份认证服务】- 通过邮件查询用户', '/api/identity/users/by-email/{email}', '', '', '/api/identity/users/by-email/{email}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (44, '{}', '8c8ec5ad6aaa4145981ee7ac876c36c9', 1262665329829105664, '【身份认证服务】- 通过标识查询用户', '/api/identity/users/lookup/{id}', '', '', '/api/identity/users/lookup/{id}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (45, '{}', 'f5c0c8c02c0846fdbe5015cd86f3d81b', 1262665456471920640, '【身份认证服务】- 通过名称查询用户', '/api/identity/users/lookup/by-username/{userName}', '', '', '/api/identity/users/lookup/by-username/{userName}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (46, '{}', 'ecf0ea4a3e3c4b2e8fa3621514d00c74', 1262665628165754880, '【基础服务】- 通过名称查询租户', '/api/abp/multi-tenancy/tenants/by-name/{name}', '', '', '/api/abp/multi-tenancy/tenants/by-name/{name}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (47, '{}', '69132bc515b64005af4292ce0dee5626', 1262666172682883072, '【基础服务】- 通过标识查询租户', '/api/abp/multi-tenancy/tenants/by-id/{id}', '', '', '/api/abp/multi-tenancy/tenants/by-id/{id}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (49, '{}', '35f48d7bc3694bbf95d64fe59aa631ac', 1262723402331885568, '【身份认证服务】- 已有的跨域资源', '/api/identity-server/clients/distinct-cors-origins', '', '', '/api/identity-server/clients/distinct-cors-origins', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'distinct-cors-origins', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (50, '{}', 'f333d028839d4fc2aafa8509e674d7dd', 1262935771746734080, '【身份认证服务】- 身份资源', '/api/identity-server/identity-resources', '', '', '/api/identity-server/identity-resources', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (51, '{}', 'dffd1bfaca5b4c1890221678f2b16cd5', 1262935906522304512, '【身份认证服务】- 身份资源管理', '/api/identity-server/identity-resources/{id}', '', '', '/api/identity-server/identity-resources/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (54, '{}', '7b847d8434bc4d1db07fa8961d90c14a', 1263074419073593344, '【服务网关管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/apigateway/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', 'apigateway-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (55, '{}', 'ca2cedfa620045a9adef0be2f958c4bc', 1263075249394790400, '【服务网关管理】- 查询聚合路由', '/api/ApiGateway/Aggregates/{RouteId}', '', '', '/api/ApiGateway/Aggregates/{RouteId}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (57, '{}', '98fbc99fc8644946ac0a72cc3dc5fd1f', 1263075593499684864, '【服务网关管理】- 聚合路由配置', '/api/ApiGateway/Aggregates/RouteConfig', '', '', '/api/ApiGateway/Aggregates/RouteConfig', 'POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (59, '{}', 'c692b30c72d4424eb4740ac49f4e9373', 1263101898440146944, '【服务网关管理】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/apigateway/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30001,', '', '', 'apigateway-configuration', 0, 120000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (60, '{}', '8409117162504f71aa66982f05c38a80', 1263303878648569856, '【平台服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/platform/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'platform-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (61, '{}', '9f520820071b4e14bc94ab57989cea1f', 1263304204797648896, '【平台服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/platform/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'platform-configuration', 0, 120000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (62, '{}', '530ab314560f41678b40f48da9383d51', 1263304872891555840, '【后台管理】- 租户管理', '/api/tenant-management/tenants', '', '', '/api/tenant-management/tenants', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (63, '{}', '21334c6da4c349cc883c38c13de0e754', 1263305106250047488, '【后台管理】- 特定租户管理', '/api/tenant-management/tenants/{id}', '', '', '/api/tenant-management/tenants/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (64, '{}', 'cc8fdf1b2d0b414ebf2dc51a6dc78305', 1263305244594970624, '【后台管理】- 租户连接字符串', '/api/tenant-management/tenants/{id}/connection-string', '', '', '/api/tenant-management/tenants/{id}/connection-string', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 2, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (65, '{}', 'aaf285ed10da4024ba561d5cf8c6322b', 1263305430536855552, '【后台管理】- 特定租户连接字符串', '/api/tenant-management/tenants/{id}/connection-string/{name}', '', '', '/api/tenant-management/tenants/{id}/connection-string/{name}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (66, '{}', '6a7da198f4c84d94969a437adc47642b', 1263639172959174656, '【后台管理】- 全局设置', '/api/setting-management/settings/by-global', '', '', '/api/setting-management/settings/by-global/app', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'setting-global', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (67, '{}', '755b4dce5c34444785fa3b647fef4131', 1264799968944640000, '【身份认证服务】- 验证手机号', '/api/account/phone/verify', '', '', '/api/account/phone/verify', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (68, '{}', '535191c570ae453ab320012304d7a62c', 1264800070161584128, '【身份认证服务】- 手机号注册', '/api/account/phone/register', '', '', '/api/account/phone/register', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (69, '{}', '723c9b111f9f4a1aa804118cdde193d3', 1267360794414161920, '【消息服务】- 通知', '/signalr-hubs/notifications/{everything}', '', '', '/signalr-hubs/notifications/{everything}', 'POST,GET,OPTIONS,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (70, '{}', 'f3aa2b42dd9f468aa5aae4ef64754427', 1267383367629807616, '【消息服务】- 通知0', '/signalr-hubs/notifications', '', '', '/signalr-hubs/notifications', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (71, '{}', '0344947bb79b401baa2ef7b4e58297f6', 1267817055527632896, '【消息服务】- 聊天', '/signalr-hubs/messages', '', '', '/signalr-hubs/messages', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (72, '{}', '6676b5e5f76d40739f9ccc3e371e2f18', 1267817221286526976, '【消息服务】- 聊天1', '/signalr-hubs/messages/{everything}', '', '', '/signalr-hubs/messages/{everything}', 'GET,POST,PUT,DELETE,OPTIONS,', '', '', '', '', '', '', '', 1, '', '', 'ws', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (73, '{}', 'cfb5f09a12bf495fbcaf2fa5d9123a40', 1268893687085518848, '【身份认证服务】- 重置密码', '/api/account/phone/reset-password', '', '', '/api/account/phone/reset-password', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (101, '{}', '997a4c27a433458aafed9b8aa252d957', 1288657613998579712, '【身份认证服务】- 组织机构列表', '/api/identity/organization-units', '', '', '/api/identity/organization-units', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (102, '{}', 'a2c6acc9882a425ab26bd3ad5a9c17c6', 1288657941770854400, '【身份认证服务】- 组织机构管理', '/api/identity/organization-units/{id}', '', '', '/api/identity/organization-units/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 1, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (103, '{}', '390acfb0e16943c6b61e731d47c282e9', 1288658134067109888, '【身份认证服务】- 组织机构移动', '/api/identity/organization-units/{id}/move', '', '', '/api/identity/organization-units/{id}/move', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (104, '{}', '3515e75becf9447492ad60466b27c397', 1288658305156964352, '【身份认证服务】- 查询组织机构子级', '/api/identity/organization-units/find-children', '', '', '/api/identity/organization-units/find-children', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (105, '{}', 'aab0a24d930f4f9687497e5ccaac2a31', 1288658491216289792, '【身份认证服务】- 查询组织机构最后一个子节点', '/api/identity/organization-units/last-children', '', '', '/api/identity/organization-units/last-children', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (106, '{}', '9b7c999b1c5140c497bc15914a815401', 1288658638302142464, '【身份认证服务】- 未加入组织机构角色', '/api/identity/organization-units/{id}/unadded-roles', '', '', '/api/identity/organization-units/{id}/unadded-roles', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (107, '{}', 'b0cdb3f6908e42bd934ca99a78f22c3f', 1288658791784308736, '【身份认证服务】- 未加入组织机构用户', '/api/identity/organization-units/{id}/unadded-users', '', '', '/api/identity/organization-units/{id}/unadded-users', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (108, '{}', '9362040d10a94fb991f60bc391efcb85', 1290849478956199936, '【后台管理】- 当前租户设置', '/api/setting-management/settings/by-current-tenant', '', '', '/api/setting-management/settings/by-current-tenant/app', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (109, '{}', 'a7df3a04805d4cc8a6e6b3823c6dd468', 1290849628051124224, '【后台管理】- 用户设置', '/api/setting-management/settings/by-user/{userId}', '', '', '/api/setting-management/settings/by-user/{userId}', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (110, '{}', 'ef6e38a529a345fab67f6a627cf20635', 1290849798553776128, '【后台管理】- 当前用户设置', '/api/setting-management/settings/by-current-user', '', '', '/api/setting-management/settings/by-current-user', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (112, '{}', '9844fed6507844f2ac64bd08649bd3a6', 1291259822512693248, '【身份认证服务】- 查询组织机构根节点', '/api/identity/organization-units/root-node', '', '', '/api/identity/organization-units/root-node', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (121, '{}', 'c6c7b027000942dda8ba0d2e2d8cf705', 1293470838745821184, '【后台管理】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/backend-admin/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'backend-admin-configuration', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (122, '{}', 'becd4342079d4399abda5b5ba3b46fdc', 1293471661785706496, '【消息服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/messages/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'messages-configuration', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (123, '{}', 'c828140cee3043c18ffc274f6461f0f2', 1293472678392721408, '【后台管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/backend-admin/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'backend-admin-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (124, '{}', 'e683cff8066d4c2899a17d0f618f1a0b', 1293472857510473728, '【消息服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/messages/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'messages-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (125, '{}', '0e9c3bff5b58428eba97a5516140ba5e', 1299273336009359360, '【消息服务】- Hangfire仪表板 ', '/hangfire', '', '', '/hangfire', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (126, '{}', 'e906924ad3a947cf8e6956e2dd258192', 1299273436282585088, '【消息服务】- Hangfire仪表板 - 主页', '/hangfire/', '', '', '/hangfire/', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (127, '{}', 'e02f2049efbc4ee1ad6629bd0341ed2b', 1299273618470567936, '【消息服务】- Hangfire仪表板 - 状态', '/hangfire/stats', '', '', '/hangfire/stats', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (128, '{}', 'f8d2b2f0f1d649c2a07eeef23d6adb0e', 1299273770182737920, '【消息服务】- Hangfire仪表板 - 作业管理', '/hangfire/jobs/{everything}', '', '', '/hangfire/jobs/{everything}', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (129, '{}', '9785be7a29774b468e271b23009fe115', 1299273978023084032, '【消息服务】- Hangfire仪表板 - 重试', '/hangfire/retries', '', '', '/hangfire/retries', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (130, '{}', '9c0c1cd196bb45c0bc03fafb7a1eb8f2', 1299274123225694208, '【消息服务】- Hangfire仪表板 - 周期性作业', '/hangfire/recurring', '', '', '/hangfire/recurring', 'GET,POST,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (131, '{}', '243bafe828be463ea63a3e2b521f9923', 1299274222299348992, '【消息服务】- Hangfire仪表板 - 服务器列表', '/hangfire/servers', '', '', '/hangfire/servers', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (132, '{}', '57a8ac1b41bb434cad38fbde0e2ba2f0', 1304238876758495232, '【后台管理】- 管理功能', '/api/feature-management/features', '', '', '/api/feature-management/features', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (133, '{}', '40a150f629b047f587c91a9436a699c0', 1304678610343383040, '【身份认证服务】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/identity-server/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'identity-server-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (134, '{}', '3a2d5d538fa44ac690402fc5c4e1a401', 1304679169305694208, '【身份认证服务】- 框架配置', '/api/abp/application-configuration', '', '', '/api/abp/identity-server/application-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', 'identity-server-configuration', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (135, '{}', '2ecfe7483bc94c28ad0769b654eb765d', 1310460417141817344, '【后台管理】- 审计日志列表', '/api/auditing/audit-log', '', '', '/api/auditing/audit-log', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (136, '{}', '744e340c0024462d88458b7ea9605b3c', 1310502391475519488, '【后台服务】- 安全日志列表', '/api/auditing/security-log', '', '', '/api/auditing/security-log', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (137, '{}', 'a99639f4172547c4ba9b4f4ca5cb4ab9', 1310515546943569920, '【后台服务】- 安全日志', '/api/auditing/security-log/{id}', '', '', '/api/auditing/security-log/{id}', 'DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (138, '{}', 'c3ebc82d55f640fb9d70a911e97e4ec1', 1310515735292985344, '【后台管理】- 审计日志', '/api/auditing/audit-log/{id}', '', '', '/api/auditing/audit-log/{id}', 'DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (139, '{}', '0379fcb3a9cd4b13b562b3b5b5c3eb7d', 1316628769783480320, '【身份认证服务】- 声明类型', '/api/identity/claim-types', '', '', '/api/identity/claim-types', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (140, '{}', 'de25c9a80d994f728b37eb483b2f5127', 1316628940663619584, '【身份认证服务】- 管理声明类型', '/api/identity/claim-types/{id}', '', '', '/api/identity/claim-types/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (141, '{}', '25c19106baff4cf3a877ae8cd690a1b5', 1316629112428756992, '【身份认证服务】- 查询在用的声明类型列表', '/api/identity/claim-types/actived-list', '', '', '/api/identity/claim-types/actived-list', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (142, '{}', '7d3b941d8c4d4d3ebc05b6332308b992', 1316652047017246720, '【身份认证服务】- 管理用户声明', '/api/identity/users/{id}/claims', '', '', '/api/identity/users/{id}/claims', 'POST,PUT,DELETE,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (143, '{}', 'b86af44a34a14db4b482df8550f1bde1', 1316913899996737536, '【身份认证管理】- 管理角色声明', '/api/identity/roles/claims/{id}', '', '', '/api/identity/roles/claims/{id}', 'GET,POST,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (144, '{}', '51a14bc295044de985ae014fbcc5bddf', 1319200951383199744, '【IdentityServer4】- 发现端点', '/.well-known/openid-configuration', '', '', '/.well-known/openid-configuration', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:44385,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (145, '{}', '9d859a444d774e93818237e53b6cc102', 1319221929807024128, '【身份认证服务】- 查询所有组织机构', '/api/identity/organization-units/all', '', '', '/api/identity/organization-units/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (146, '{}', '89f42175b24540caba2a1fded145acf8', 1319554431134306304, '【身份认证服务】- 管理组织机构用户', '/api/identity/organization-units/{id}/users', '', '', '/api/identity/organization-units/{id}/users', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (147, '{}', '126d82509cec43eda712e94737b01039', 1319554550458060800, '【身份认证服务】- 管理组织机构角色', '/api/identity/organization-units/{id}/roles', '', '', '/api/identity/organization-units/{id}/roles', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (148, '{}', '824f5eee6877489f96f1022e306c968a', 1319554948434595840, '【身份认证服务】- 管理角色组织机构', '/api/identity/roles/{id}/organization-units', '', '', '/api/identity/roles/{id}/organization-units', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (149, '{}', 'fe1379d4a13f41afb6410f4c948871f3', 1319555067183730688, '【身份认证服务】- 删除角色组织机构', '/api/identity/roles/{id}/organization-units/{ouId}', '', '', '/api/identity/roles/{id}/organization-units/{ouId}', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (150, '{}', '197a69bb723346aba3601bd61e7fa655', 1319555230765780992, '【身份认证服务】- 管理用户组织机构', '/api/identity/users/{id}/organization-units', '', '', '/api/identity/users/{id}/organization-units', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (151, '{}', '1a7e6d0b1c95484f82a75a2ce6e6f453', 1319555333790470144, '【身份认证服务】- 删除用户组织机构', '/api/identity/users/{id}/organization-units/{ouId}', '', '', '/api/identity/users/{id}/organization-units/{ouId}', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (152, '{}', 'ecfa9bbd19694097b33e691b653f2124', 1321001932510203904, '【消息服务】- 我的消息', '/api/im/chat/my-messages', '', '', '/api/im/chat/my-messages', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (153, '{}', '4867ad188ca54acb8b961d20297b6545', 1321002059803136000, '【消息服务】- 我的最近消息', '/api/im/chat/my-last-messages', '', '', '/api/im/chat/my-last-messages', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (154, '{}', '291ab802d7bc4af98fc15c509f98fa75', 1321002256440496128, '【消息服务】- 我的朋友', '/api/im/my-friends', '', '', '/api/im/my-friends', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (155, '{}', '08438dabb1e849988e0c304f82b08a10', 1321002350686507008, '【消息服务】- 我的所有朋友', '/api/im/my-friends/all', '', '', '/api/im/my-friends/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (156, '{}', 'cecf632785b7402299764698369c751f', 1322190027988525056, '【消息服务】- 发送好友请求', '/api/im/my-friends/add-request', '', '', '/api/im/my-friends/add-request', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (157, '{}', '91b088ab3e164116b8c4a2b6109e37e9', 1322452079688458240, '【消息服务】- 我的订阅', '/api/my-subscribes', '', '', '/api/my-subscribes', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (158, '{}', 'b9f57600634b40c087ac0730926895e2', 1322452183929495552, '【消息服务】- 我的订阅列表', '/api/my-subscribes/all', '', '', '/api/my-subscribes/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'my-subscribes', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (159, '{}', '8e6a0c6759df42e29b9abd4d833646a3', 1322452308651319296, '【消息服务】- 是否已订阅', '/api/my-subscribes/is-subscribed/{Name}', '', '', '/api/my-subscribes/is-subscribed/{Name}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (160, '{}', '6b747d0acfee478ea64241b7ea519861', 1322452858176446464, '【消息服务】- 我的通知', '/api/my-notifilers', '', '', '/api/my-notifilers', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (161, '{}', '25a64613f37f44cf8efff8d0cf6cd0ca', 1322452989235863552, '【消息服务】- 管理我的通知', '/api/my-notifilers/{id}', '', '', '/api/my-notifilers/{id}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (162, '{}', 'ddc7f13aaa2741b28c2102fbff18d836', 1322453089655889920, '【消息服务】- 可用通知列表', '/api/my-notifilers/assignables', '', '', '/api/my-notifilers/assignables', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30020,', '', '', 'assignables-notifilers', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (163, '{}', '1d586107d7e240b3bfc14c8ca04baea8', 1329706860249804800, '【微信管理】- 微信公共配置', '/api/setting-management/wechat/by-global', '', '', '/api/setting-management/wechat/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'wechat-setting-global', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (164, '{}', 'bd9b34dd564f405bb3a063d6a719ce6e', 1329707002411544576, '【微信管理】- 微信租户配置', '/api/setting-management/wechat/by-current-tenant', '', '', '/api/setting-management/wechat/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'wechat-setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (165, '{}', 'e9847659244b47dc80101b1c3f4edb31', 1329708512277098496, '【后台管理】- 变更全局设置', '/api/setting-management/settings/change-global', '', '', '/api/setting-management/settings/change-global', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (166, '{}', '94c3692dea394b39ac0cc19f60fc1964', 1329708625917571072, '【后台管理】- 变更当前租户设置', '/api/setting-management/settings/change-current-tenant', '', '', '/api/setting-management/settings/change-current-tenant', 'PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (167, '{}', '626efeddcc0a474aa5e472b6089ca6fe', 1335049839287357440, '【平台服务】- 菜单管理', '/api/platform/menus', '', '', '/api/platform/menus', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (168, '{}', 'e4b4acf5f7dd4015828bdcd735424937', 1335050034221830144, '【平台服务】- 管理菜单', '/api/platform/menus/{id}', '', '', '/api/platform/menus/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (169, '{}', 'bbdb31a7eaba4bf7bead6a7e1151872c', 1335050145899368448, '【平台服务】- 获取当前用户菜单', '/api/platform/menus/by-current-user', '', '', '/api/platform/menus/by-current-user', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (170, '{}', '56a6d15682ba489aa46296cd8235cf81', 1335050283434790912, '【平台服务】- 管理用户菜单', '/api/platform/menus/by-user', '', '', '/api/platform/menus/by-user', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (171, '{}', '484dc97d5f4843fc85679c1faf1488bf', 1335050381770248192, '【平台服务】- 获取用户菜单', '/api/platform/menus/by-user/{userId}/{platformType}', '', '', '/api/platform/menus/by-user/{userId}/{platformType}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (172, '{}', '63b34bbe4d3b41f397432aa12e73a40d', 1335050520941449216, '【平台服务】- 管理角色菜单', '/api/platform/menus/by-role', '', '', '/api/platform/menus/by-role', 'GET,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (173, '{}', 'c858522741c941bf838aef7eba34b213', 1335050615829188608, '【平台服务】- 获取角色菜单', '/api/platform/menus/by-role/{role}/{platformType}', '', '', '/api/platform/menus/by-role/{role}/{platformType}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (174, '{}', 'da02cbd7a46746f288bb98d40af03a21', 1335111798720450560, '【平台服务】- 获取所有数据字典', '/api/platform/datas/all', '', '', '/api/platform/datas/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (175, '{}', '6c6096b6593c47398d59f73ab62e54a3', 1335118541370314752, '【平台服务】- 数据字典', '/api/platform/datas', '', '', '/api/platform/datas', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (176, '{}', '5efb1b49a1cc4d34a3e338b9e83c12c7', 1335118660417245184, '【平台服务】- 管理数据字典', '/api/platform/datas/{id}', '', '', '/api/platform/datas/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (177, '{}', '00bd2892c6574942bda538aa9d3513cd', 1335118782727344128, '【平台服务】- 增加数据字典项目', '/api/platform/datas/{id}/items', '', '', '/api/platform/datas/{id}/items', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (178, '{}', '9fae5da5d4634eaab7a59d643a8248a7', 1335118903200337920, '【平台服务】- 管理数据字典项目', '/api/platform/datas/{id}/items/{name}', '', '', '/api/platform/datas/{id}/items/{name}', 'DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (179, '{}', '70d6120e560f41c3879ec4549636cdb8', 1336230645078921216, '【平台服务】- 获取所有菜单', '/api/platform/menus/all', '', '', '/api/platform/menus/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (180, '{}', 'c67549cd6cd246f08d9f6ce93c906c21', 1337314809113722880, '【平台服务】- 布局', '/api/platform/layouts', '', '', '/api/platform/layouts', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (181, '{}', 'bacca946a092434cb2ee5994c88f2c33', 1337314938973569024, '【平台服务】- 管理布局', '/api/platform/layouts/{id}', '', '', '/api/platform/layouts/{id}', 'GET,DELETE,PUT,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (182, '{}', '741fdd4cc05a4025a9073a2e1ab9d5ea', 1340961907637243904, '【平台服务】- 获取所有布局', '/api/platform/layouts/all', '', '', '/api/platform/layouts/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (183, '{}', '26a1ef4016704dab8c254f90bc26ecfe', 1341652247554379776, '【身份认证服务】- Api范围', '/api/identity-server/api-scopes', '', '', '/api/identity-server/api-scopes', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (184, '{}', '3bfc1fef7f5446638f91c9b6e2fb12db', 1341652385555369984, '【身份认证服务】- 管理Api范围', '/api/identity-server/api-scopes/{id}', '', '', '/api/identity-server/api-scopes/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (185, '{}', '3288c25dd61e491db95313ca72016918', 1342457939827552256, '【身份认证服务】- 持久授权', '/api/identity-server/persisted-grants', '', '', '/api/identity-server/persisted-grants', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (186, '{}', '23f94678093148f58ba842096c3a0e39', 1342458050112581632, '【身份认证服务】- 管理持久授权', '/api/identity-server/persisted-grants/{id}', '', '', '/api/identity-server/persisted-grants/{id}', 'GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (187, '{}', '1f61a3e35b374277ae2c13c671bc5d30', 1363382062055915520, '【阿里云】- 阿里云公共配置', '/api/setting-management/aliyun/by-global', '', '', '/api/setting-management/aliyun/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'aliyun-setting-global', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (188, '{}', '46001a60f3d54b85a8417f6af24066e5', 1363382298501414912, '【阿里云】- 阿里云租户配置', '/api/setting-management/aliyun/by-current-tenant', '', '', '/api/setting-management/aliyun/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30010,', '', '', 'aliyun-setting-current-tenant', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (189, '{}', '0d21bec8bcc044bf9000227663039ef4', 1368854800347848704, '【Oss对象存储】- 管理容器(Bucket)', '/api/oss-management/containes/{name}', '', '', '/api/oss-management/containes/{name}', 'POST,GET,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (190, '{}', 'ca33dc2834e4439d9ca7827fb31c70f8', 1368855936576413696, '【Oss对象存储】- 获取容器列表', '/api/oss-management/containes', '', '', '/api/oss-management/containes', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (191, '{}', 'e00fb37d9757471fbd1e64dca92e5d7d', 1368856295889854464, '【Oss对象存储】- 获取对象列表', '/api/oss-management/containes/objects', '', '', '/api/oss-management/containes/objects', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (192, '{}', 'cef75a4f7eac43789a3e246229fd5a1b', 1368856703572008960, '【Oss对象存储】- 管理Oss对象', '/api/oss-management/objects', '', '', '/api/oss-management/objects', 'GET,POST,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (193, '{}', 'ee0d5e6de17c481ca2c0ee5c156b1973', 1368856819242524672, '【Oss对象存储】- 上传Oss对象', '/api/oss-management/objects/upload', '', '', '/api/oss-management/objects/upload', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (194, '{}', '6c1a0f98129d418cba55a52dbdd88937', 1368856927887581184, '【Oss对象存储】- 批量删除Oss对象', '/api/oss-management/objects/bulk-delete', '', '', '/api/oss-management/objects/bulk-delete', 'DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (195, '{}', 'de285bf4b6114032a45d5611ea8e3101', 1368857128383700992, '【Oss对象存储】- 静态文件管理', '/api/files/static/{everything}', '', '', '/api/api/files/static/{everything}', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (196, '{}', '6287c30d31c147faae917cb6e52636ec', 1369560306297233408, '【Oss对象存储】- 获取公共配置', '/api/setting-management/oss-management/by-global', '', '', '/api/setting-management/oss-management/by-global', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'oss-management-global', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (197, '{}', '1012bb902aba47ada9a374fc73ed2632', 1369560450472239104, '【Oss对象存储】- 获取租户配置', '/api/setting-management/oss-management/by-current-tenant', '', '', '/api/setting-management/oss-management/by-current-tenant', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', 'oss-management-current-tenant', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (198, '{}', '3ff4788f62744b27bc30f7247fb76b08', 1371705034307375104, '【Oss对象存储】- 静态文件', '/api/files/static/{everything}', '', '', '/api/files/static/{everything}', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (199, '{}', '2203b1db040942a3bbe1ed86b57a8501', 1376442078396276736, '【本地化管理】- 接口代理', '/api/abp/api-definition', '', '', '/api/abp/localization/api-definition', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', 'localization-api-definition', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (200, '{}', '67206f8a85d94666a0c707697e706742', 1376442309850554368, '【本地化管理】- 资源管理', '/api/localization/resources', '', '', '/api/localization/resources', 'POST,GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (201, '{}', '055929710e414c5e97fc9168a1c25182', 1376442440536678400, '【本地化管理】- 管理单个资源', '/api/localization/resources/{id}', '', '', '/api/localization/resources/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (202, '{}', 'c314a94d515045a4a27763aa5d3631de', 1376442557943635968, '【本地化管理】- 获取所有资源', '/api/localization/resources/all', '', '', '/api/localization/resources/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (203, '{}', '67fb0a90132c4a02b7ff44f82bf9fd13', 1376442689674141696, '【本地化管理】- 语言管理', '/api/localization/languages', '', '', '/api/localization/languages', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (204, '{}', 'c6fab01d2b37434886f07bb601c36599', 1376442971032248320, '【本地化管理】- 管理单个语言', '/api/localization/languages/{id}', '', '', '/api/localization/languages/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (205, '{}', '074c20491b294a068fbb1df7874d0d4d', 1376443123021242368, '【本地化管理】- 获取所有语言', '/api/localization/languages/all', '', '', '/api/localization/languages/all', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (206, '{}', '75e48367d8f14ef99541abdb86d30b96', 1376443238851141632, '【本地化管理】- 文档管理', '/api/localization/texts', '', '', '/api/localization/texts', 'GET,POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (207, '{}', '5f8d7d88a97f4ff7b3bdb6fb105d527e', 1376443392249421824, '【本地化管理】- 管理单个文档', '/api/localization/texts/{id}', '', '', '/api/localization/texts/{id}', 'GET,PUT,DELETE,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (208, '{}', '35f470892bf04571ab49efadb2cb1eb5', 1376443586777047040, '【本地化管理】- 通过文化名称查询文档', '/api/localization/texts/by-culture-key', '', '', '/api/localization/texts/by-culture-key', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30030,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (209, '{}', '72073c75c2fa4e1db162c7a74004558f', 1376467826087682048, '【身份认证服务】- 发送登录验证码', '/api/account/phone/send-signin-code', '', '', '/api/account/phone/send-signin-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (210, '{}', 'e8e2f943dd56456f8f5dd957dd30e8b9', 1376467990894469120, '【身份认证服务】- 发送重置密码短信', '/api/account/phone/send-password-reset-code', '', '', '/api/account/phone/send-password-reset-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (211, '{}', '89fd6b8a830d457f9d1d43263c7074b4', 1376468110214029312, '【身份认证服务】- 发送注册短信', '/api/account/phone/send-register-code', '', '', '/api/account/phone/send-register-code', 'POST,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30015,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); +INSERT INTO `appapigatewayreroute` VALUES (483, '{}', 'be25633a37d14ab4b94803698c528e4c', 1406817452004757504, '【平台服务】- 参照名称查询字典', '/api/platform/datas/by-name/{name}', '', '', '/api/platform/datas/by-name/{name}', 'GET,', '', '', '', '', '', '', '', 1, '', '', 'HTTP', '127.0.0.1:30025,', '', '', '', 0, 30000, 1, '', 'TEST-APP'); + +-- ---------------------------- +-- Table structure for appapigatewayroutegroup +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewayroutegroup`; +CREATE TABLE `appapigatewayroutegroup` ( + `Id` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NOT NULL, + `ExtraProperties` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, + `ConcurrencyStamp` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `CreationTime` datetime(6) NOT NULL, + `CreatorId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, + `LastModificationTime` datetime(6) NULL DEFAULT NULL, + `LastModifierId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, + `IsDeleted` tinyint(1) NOT NULL, + `DeleterId` char(36) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT NULL, + `DeletionTime` datetime(6) NULL DEFAULT NULL, + `Name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `AppId` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `AppName` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `AppIpAddress` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL, + `Description` varchar(256) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `IsActive` tinyint(1) NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + INDEX `IX_AppApiGatewayRouteGroup_AppId_AppName_AppIpAddress`(`AppId`, `AppName`, `AppIpAddress`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewayroutegroup +-- ---------------------------- +INSERT INTO `appapigatewayroutegroup` VALUES ('08d7f735-a83b-49ab-8cee-5d602502bea8', '{}', '83cac848676f4b658d5c9f7d802a497a', '2020-05-13 20:03:32.524271', NULL, '2020-08-05 15:43:28.205288', 'bf289dbb-838e-a89b-c622-39f51dcc4f43', 0, NULL, NULL, 'abp后台管理', 'TEST-APP', 'abp后台管理', '127.0.0.1', 'abp后台管理项目网关', 1); + +-- ---------------------------- +-- Table structure for appapigatewaysecurityoptions +-- ---------------------------- +DROP TABLE IF EXISTS `appapigatewaysecurityoptions`; +CREATE TABLE `appapigatewaysecurityoptions` ( + `Id` int(0) NOT NULL AUTO_INCREMENT, + `ReRouteId` bigint(0) NOT NULL, + `IPAllowedList` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + `IPBlockedList` varchar(1000) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL, + PRIMARY KEY (`Id`) USING BTREE, + UNIQUE INDEX `IX_AppApiGatewaySecurityOptions_ReRouteId`(`ReRouteId`) USING BTREE, + CONSTRAINT `FK_AppApiGatewaySecurityOptions_AppApiGatewayReRoute_ReRouteId` FOREIGN KEY (`ReRouteId`) REFERENCES `appapigatewayreroute` (`ReRouteId`) ON DELETE CASCADE ON UPDATE RESTRICT +) ENGINE = InnoDB AUTO_INCREMENT = 205 CHARACTER SET = latin1 COLLATE = latin1_swedish_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of appapigatewaysecurityoptions +-- ---------------------------- +INSERT INTO `appapigatewaysecurityoptions` VALUES (3, 1261299170387169280, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (4, 1261585859064872960, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (5, 1261586605810368512, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (6, 1261587558609436672, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (7, 1261588213298348032, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (8, 1261588367619375104, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (9, 1261588628450557952, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (10, 1261588881564221440, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (11, 1261588983053795328, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (12, 1261589139039961088, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (13, 1261589197483393024, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (14, 1261589278857084928, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (15, 1261589420356124672, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (16, 1261589960393736192, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (17, 1261606600242085888, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (18, 1261606689601732608, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (21, 1262220447629058048, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (22, 1262230734939758592, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (23, 1262296916350869504, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (24, 1262632376348594176, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (25, 1262632791869902848, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (28, 1262660336921235456, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (29, 1262660528277966848, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (30, 1262660706875625472, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (31, 1262660966393991168, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (32, 1262661109474283520, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (33, 1262663888804663296, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (34, 1262664024096133120, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (35, 1262664186252120064, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (36, 1262664357044178944, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (37, 1262664632928718848, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (38, 1262664751409418240, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (39, 1262664871274237952, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (40, 1262665026111164416, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (41, 1262665159905267712, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (42, 1262665329829105664, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (43, 1262665456471920640, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (44, 1262665628165754880, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (45, 1262666172682883072, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (47, 1262723402331885568, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (48, 1262935771746734080, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (49, 1262935906522304512, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (52, 1263074419073593344, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (53, 1263075249394790400, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (54, 1263075593499684864, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (56, 1263101898440146944, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (57, 1263303878648569856, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (58, 1263304204797648896, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (59, 1263304872891555840, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (60, 1263305106250047488, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (61, 1263305244594970624, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (62, 1263305430536855552, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (63, 1263639172959174656, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (64, 1264799968944640000, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (65, 1264800070161584128, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (66, 1267360794414161920, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (67, 1267383367629807616, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (68, 1267817055527632896, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (69, 1267817221286526976, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (70, 1268893687085518848, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (94, 1288657613998579712, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (95, 1288657941770854400, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (96, 1288658134067109888, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (97, 1288658305156964352, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (98, 1288658491216289792, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (99, 1288658638302142464, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (100, 1288658791784308736, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (101, 1290849478956199936, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (102, 1290849628051124224, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (103, 1290849798553776128, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (105, 1291259822512693248, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (114, 1293470838745821184, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (115, 1293471661785706496, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (116, 1293472678392721408, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (117, 1293472857510473728, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (118, 1299273336009359360, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (119, 1299273436282585088, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (120, 1299273618470567936, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (121, 1299273770182737920, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (122, 1299273978023084032, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (123, 1299274123225694208, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (124, 1299274222299348992, '127.0.0.1', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (125, 1304238876758495232, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (126, 1304678610343383040, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (127, 1304679169305694208, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (128, 1310460417141817344, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (129, 1310502391475519488, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (130, 1310515546943569920, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (131, 1310515735292985344, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (132, 1316628769783480320, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (133, 1316628940663619584, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (134, 1316629112428756992, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (135, 1316652047017246720, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (136, 1316913899996737536, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (137, 1319200951383199744, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (138, 1319221929807024128, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (139, 1319554431134306304, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (140, 1319554550458060800, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (141, 1319554948434595840, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (142, 1319555067183730688, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (143, 1319555230765780992, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (144, 1319555333790470144, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (145, 1321001932510203904, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (146, 1321002059803136000, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (147, 1321002256440496128, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (148, 1321002350686507008, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (149, 1322190027988525056, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (150, 1322452079688458240, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (151, 1322452183929495552, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (152, 1322452308651319296, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (153, 1322452858176446464, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (154, 1322452989235863552, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (155, 1322453089655889920, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (156, 1329706860249804800, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (157, 1329707002411544576, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (158, 1329708512277098496, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (159, 1329708625917571072, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (160, 1335049839287357440, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (161, 1335050034221830144, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (162, 1335050145899368448, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (163, 1335050283434790912, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (164, 1335050381770248192, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (165, 1335050520941449216, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (166, 1335050615829188608, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (167, 1335111798720450560, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (168, 1335118541370314752, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (169, 1335118660417245184, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (170, 1335118782727344128, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (171, 1335118903200337920, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (172, 1336230645078921216, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (173, 1337314809113722880, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (174, 1337314938973569024, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (175, 1340961907637243904, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (176, 1341652247554379776, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (177, 1341652385555369984, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (178, 1342457939827552256, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (179, 1342458050112581632, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (180, 1363382062055915520, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (181, 1363382298501414912, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (182, 1368854800347848704, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (183, 1368855936576413696, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (184, 1368856295889854464, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (185, 1368856703572008960, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (186, 1368856819242524672, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (187, 1368856927887581184, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (188, 1368857128383700992, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (189, 1369560306297233408, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (190, 1369560450472239104, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (191, 1371705034307375104, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (192, 1376442078396276736, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (193, 1376442309850554368, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (194, 1376442440536678400, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (195, 1376442557943635968, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (196, 1376442689674141696, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (197, 1376442971032248320, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (198, 1376443123021242368, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (199, 1376443238851141632, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (200, 1376443392249421824, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (201, 1376443586777047040, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (202, 1376467826087682048, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (203, 1376467990894469120, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (204, 1376468110214029312, '', ''); +INSERT INTO `appapigatewaysecurityoptions` VALUES (220, 1406817452004757504, '', ''); + +-- ---------------------------- +-- Table structure for cap.published +-- ---------------------------- +DROP TABLE IF EXISTS `cap.published`; +CREATE TABLE `cap.published` ( + `Id` bigint(0) NOT NULL, + `Version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `Name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `Content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL, + `Retries` int(0) NULL DEFAULT NULL, + `Added` datetime(0) NOT NULL, + `ExpiresAt` datetime(0) NULL DEFAULT NULL, + `StatusName` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + INDEX `IX_ExpiresAt`(`ExpiresAt`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Records of cap.published +-- ---------------------------- + +-- ---------------------------- +-- Table structure for cap.received +-- ---------------------------- +DROP TABLE IF EXISTS `cap.received`; +CREATE TABLE `cap.received` ( + `Id` bigint(0) NOT NULL, + `Version` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `Name` varchar(400) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + `Group` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL, + `Content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL, + `Retries` int(0) NULL DEFAULT NULL, + `Added` datetime(0) NOT NULL, + `ExpiresAt` datetime(0) NULL DEFAULT NULL, + `StatusName` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NOT NULL, + PRIMARY KEY (`Id`) USING BTREE, + INDEX `IX_ExpiresAt`(`ExpiresAt`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_0900_ai_ci ROW_FORMAT = Dynamic; + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Datas/IDataAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Datas/IDataAppService.cs index 872e372f2..c47f2e34d 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Datas/IDataAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Datas/IDataAppService.cs @@ -1,24 +1,26 @@ -using System; -using System.Threading.Tasks; -using Volo.Abp.Application.Dtos; -using Volo.Abp.Application.Services; - -namespace LINGYUN.Platform.Datas -{ - public interface IDataAppService : - ICrudAppService< - DataDto, - Guid, - GetDataListInput, - DataCreateDto, - DataUpdateDto> - { - Task> GetAllAsync(); - - Task CreateItemAsync(Guid id, DataItemCreateDto input); - - Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input); - - Task DeleteItemAsync(Guid id, string name); - } -} +using System; +using System.Threading.Tasks; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Application.Services; + +namespace LINGYUN.Platform.Datas +{ + public interface IDataAppService : + ICrudAppService< + DataDto, + Guid, + GetDataListInput, + DataCreateDto, + DataUpdateDto> + { + Task GetAsync(string name); + + Task> GetAllAsync(); + + Task CreateItemAsync(Guid id, DataItemCreateDto input); + + Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input); + + Task DeleteItemAsync(Guid id, string name); + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/GetLayoutListInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/GetLayoutListInput.cs index 2e52dc5db..eb7889a83 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/GetLayoutListInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/GetLayoutListInput.cs @@ -1,13 +1,16 @@ -using Volo.Abp.Application.Dtos; - -namespace LINGYUN.Platform.Layouts -{ - public class GetLayoutListInput : PagedAndSortedResultRequestDto - { - public string Filter { get; set; } - - public bool Reverse { get; set; } - - public PlatformType? PlatformType { get; set; } - } -} +using LINGYUN.Platform.Routes; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Layouts +{ + public class GetLayoutListInput : PagedAndSortedResultRequestDto + { + public string Filter { get; set; } + + public bool Reverse { get; set; } + + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateDto.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateDto.cs index 38eca5d54..e8da1d057 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateDto.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateDto.cs @@ -1,9 +1,16 @@ -using System; - -namespace LINGYUN.Platform.Layouts -{ - public class LayoutCreateDto : LayoutCreateOrUpdateDto - { - public Guid DataId { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System; +using System.ComponentModel.DataAnnotations; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Layouts +{ + public class LayoutCreateDto : LayoutCreateOrUpdateDto + { + public Guid DataId { get; set; } + + [Required] + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateOrUpdateDto.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateOrUpdateDto.cs index e4ce49eb7..b54697129 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateOrUpdateDto.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutCreateOrUpdateDto.cs @@ -1,29 +1,27 @@ -using LINGYUN.Platform.Routes; -using System.ComponentModel.DataAnnotations; -using Volo.Abp.Validation; - -namespace LINGYUN.Platform.Layouts -{ - public class LayoutCreateOrUpdateDto - { - [Required] - [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxNameLength))] - public string Name { get; set; } - - [Required] - [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxDisplayNameLength))] - public string DisplayName { get; set; } - - [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxDescriptionLength))] - public string Description { get; set; } - - [Required] - [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxPathLength))] - public string Path { get; set; } - - [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxRedirectLength))] - public string Redirect { get; set; } - - public PlatformType PlatformType { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System.ComponentModel.DataAnnotations; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Layouts +{ + public class LayoutCreateOrUpdateDto + { + [Required] + [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxNameLength))] + public string Name { get; set; } + + [Required] + [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxDisplayNameLength))] + public string DisplayName { get; set; } + + [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxDescriptionLength))] + public string Description { get; set; } + + [Required] + [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxPathLength))] + public string Path { get; set; } + + [DynamicStringLength(typeof(RouteConsts), nameof(RouteConsts.MaxRedirectLength))] + public string Redirect { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutDto.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutDto.cs index e9357e1c0..a3974cea9 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutDto.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Layouts/Dto/LayoutDto.cs @@ -1,17 +1,17 @@ -using LINGYUN.Platform.Routes; -using System; - -namespace LINGYUN.Platform.Layouts -{ - public class LayoutDto : RouteDto - { - /// - /// 所属平台 - /// - public PlatformType PlatformType { get; set; } - /// - /// 约定的Meta采用哪种数据字典,主要是约束路由必须字段的一致性 - /// - public Guid DataId { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System; + +namespace LINGYUN.Platform.Layouts +{ + public class LayoutDto : RouteDto + { + /// + /// 框架 + /// + public string Framework { get; set; } + /// + /// 约定的Meta采用哪种数据字典,主要是约束路由必须字段的一致性 + /// + public Guid DataId { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/GetMenuInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/GetMenuInput.cs index 5f2f556e4..f4b0336bc 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/GetMenuInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/GetMenuInput.cs @@ -1,7 +1,11 @@ -namespace LINGYUN.Platform.Menus -{ - public class GetMenuInput - { - public PlatformType PlatformType { get; set; } - } -} +using LINGYUN.Platform.Routes; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Menus +{ + public class GetMenuInput + { + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuDto.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuDto.cs index 816068c29..5d67d65da 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuDto.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuDto.cs @@ -15,9 +15,9 @@ namespace LINGYUN.Platform.Menus /// public string Component { get; set; } /// - /// 所属平台 + /// 框架 /// - public PlatformType PlatformType { get; set; } + public string Framework { get; set; } /// /// 父节点 /// diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetAllInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetAllInput.cs index 0e8c645a2..b573b2f00 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetAllInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetAllInput.cs @@ -1,20 +1,23 @@ -using System; -using Volo.Abp.Application.Dtos; - -namespace LINGYUN.Platform.Menus -{ - public class MenuGetAllInput : ISortedResultRequest - { - public PlatformType? PlatformType { get; set; } - - public string Filter { get; set; } - - public bool Reverse { get; set; } - - public Guid? ParentId { get; set; } - - public string Sorting { get; set; } - - public Guid? LayoutId { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Menus +{ + public class MenuGetAllInput : ISortedResultRequest + { + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + + public string Filter { get; set; } + + public bool Reverse { get; set; } + + public Guid? ParentId { get; set; } + + public string Sorting { get; set; } + + public Guid? LayoutId { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByRoleInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByRoleInput.cs index c099408f6..f5cb155bd 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByRoleInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByRoleInput.cs @@ -1,13 +1,16 @@ -using System.ComponentModel.DataAnnotations; - -namespace LINGYUN.Platform.Menus -{ - public class MenuGetByRoleInput - { - [Required] - [StringLength(80)] - public string Role { get; set; } - - public PlatformType PlatformType { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System.ComponentModel.DataAnnotations; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Menus +{ + public class MenuGetByRoleInput + { + [Required] + [StringLength(80)] + public string Role { get; set; } + + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByUserInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByUserInput.cs index 1fec5084a..241cd7210 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByUserInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetByUserInput.cs @@ -1,15 +1,18 @@ -using System; -using System.ComponentModel.DataAnnotations; - -namespace LINGYUN.Platform.Menus -{ - public class MenuGetByUserInput - { - [Required] - public Guid UserId { get; set; } - - public string[] Roles { get; set; } = new string[0]; - - public PlatformType PlatformType { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System; +using System.ComponentModel.DataAnnotations; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Menus +{ + public class MenuGetByUserInput + { + [Required] + public Guid UserId { get; set; } + + public string[] Roles { get; set; } = new string[0]; + + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetListInput.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetListInput.cs index 0c073b8e9..958a1db0b 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetListInput.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application.Contracts/LINGYUN/Platform/Menus/Dto/MenuGetListInput.cs @@ -1,18 +1,21 @@ -using System; -using Volo.Abp.Application.Dtos; - -namespace LINGYUN.Platform.Menus -{ - public class MenuGetListInput : PagedAndSortedResultRequestDto - { - public PlatformType? PlatformType { get; set; } - - public string Filter { get; set; } - - public bool Reverse { get; set; } - - public Guid? ParentId { get; set; } - - public Guid? LayoutId { get; set; } - } -} +using LINGYUN.Platform.Routes; +using System; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Validation; + +namespace LINGYUN.Platform.Menus +{ + public class MenuGetListInput : PagedAndSortedResultRequestDto + { + [DynamicStringLength(typeof(LayoutConsts), nameof(LayoutConsts.MaxFrameworkLength))] + public string Framework { get; set; } + + public string Filter { get; set; } + + public bool Reverse { get; set; } + + public Guid? ParentId { get; set; } + + public Guid? LayoutId { get; set; } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs index e71adc928..e839bbb87 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Datas/DataAppService.cs @@ -1,191 +1,198 @@ -using LINGYUN.Platform.Permissions; -using LINGYUN.Platform.Utils; -using Microsoft.AspNetCore.Authorization; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Application.Dtos; - -namespace LINGYUN.Platform.Datas -{ - [Authorize(PlatformPermissions.DataDictionary.Default)] - public class DataAppService : PlatformApplicationServiceBase, IDataAppService - { - protected IDataRepository DataRepository { get; } - - public DataAppService( - IDataRepository dataRepository) - { - DataRepository = dataRepository; - } - - [Authorize(PlatformPermissions.DataDictionary.Create)] - public virtual async Task CreateAsync(DataCreateDto input) - { - var data = await DataRepository.FindByNameAsync(input.Name); - if (data != null) - { - throw new UserFriendlyException("指定名称的数据字典已经存在!"); - } - - string code = string.Empty; - var children = await DataRepository.GetChildrenAsync(input.ParentId); - if (children.Any()) - { - var lastChildren = children.OrderBy(x => x.Code).FirstOrDefault(); - code = CodeNumberGenerator.CalculateNextCode(lastChildren.Code); - } - else - { - var parentData = input.ParentId != null - ? await DataRepository.GetAsync(input.ParentId.Value) - : null; - - code = CodeNumberGenerator.AppendCode(parentData?.Code, CodeNumberGenerator.CreateCode(1)); - } - - data = new Data( - GuidGenerator.Create(), - input.Name, - code, - input.DisplayName, - input.Description, - input.ParentId, - CurrentTenant.Id - ); - - data = await DataRepository.InsertAsync(data); - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(data); - } - - [Authorize(PlatformPermissions.DataDictionary.Delete)] - public virtual async Task DeleteAsync(Guid id) - { - var data = await DataRepository.GetAsync(id); - - var children = await DataRepository.GetChildrenAsync(data.Id); - if (children.Any()) - { - throw new UserFriendlyException("当前数据字典存在子节点,无法删除!"); - } - - await DataRepository.DeleteAsync(data); - } - - public virtual async Task GetAsync(Guid id) - { - var data = await DataRepository.GetAsync(id); - - return ObjectMapper.Map(data); - } - - public virtual async Task> GetAllAsync() - { - var datas = await DataRepository.GetListAsync(includeDetails: false); - - return new ListResultDto( - ObjectMapper.Map, List>(datas)); - } - - public virtual async Task> GetListAsync(GetDataListInput input) - { - var count = await DataRepository.GetCountAsync(input.Filter); - - var datas = await DataRepository.GetPagedListAsync( - input.Filter, input.Sorting, - false, input.SkipCount, input.MaxResultCount); - - return new PagedResultDto(count, - ObjectMapper.Map, List>(datas)); - } - - [Authorize(PlatformPermissions.DataDictionary.Update)] - public virtual async Task UpdateAsync(Guid id, DataUpdateDto input) - { - var data = await DataRepository.GetAsync(id); - - if (!string.Equals(data.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) - { - data.Name = input.Name; - } - if (!string.Equals(data.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) - { - data.DisplayName = input.DisplayName; - } - if (!string.Equals(data.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) - { - data.Description = input.Description; - } - - data = await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(data); - } - - [Authorize(PlatformPermissions.DataDictionary.ManageItems)] - public virtual async Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input) - { - var data = await DataRepository.GetAsync(id); - var dataItem = data.FindItem(name); - if (dataItem == null) - { - throw new UserFriendlyException($"不存在名为 {name} 的数据字典项!"); - } - - if (!string.Equals(dataItem.DefaultValue, input.DefaultValue, StringComparison.InvariantCultureIgnoreCase)) - { - dataItem.DefaultValue = input.DefaultValue; - } - if (!string.Equals(dataItem.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) - { - dataItem.DisplayName = input.DisplayName; - } - if (!string.Equals(dataItem.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) - { - dataItem.Description = input.Description; - } - dataItem.AllowBeNull = input.AllowBeNull; - - data = await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.SaveChangesAsync(); - } - - [Authorize(PlatformPermissions.DataDictionary.ManageItems)] - public virtual async Task CreateItemAsync(Guid id, DataItemCreateDto input) - { - var data = await DataRepository.GetAsync(id); - var dataItem = data.FindItem(input.Name); - if (dataItem != null) - { - throw new UserFriendlyException($"已经存在名为 {input.Name} 的数据字典项!"); - } - - data.AddItem( - GuidGenerator, - input.Name, - input.DisplayName, - input.DefaultValue, - input.ValueType, - input.Description, - input.AllowBeNull); - - await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.SaveChangesAsync(); - } - - [Authorize(PlatformPermissions.DataDictionary.ManageItems)] - public virtual async Task DeleteItemAsync(Guid id, string name) - { - var data = await DataRepository.GetAsync(id); - data.RemoveItem(name); - - await DataRepository.UpdateAsync(data); - await CurrentUnitOfWork.SaveChangesAsync(); - } - } -} +using LINGYUN.Platform.Permissions; +using LINGYUN.Platform.Utils; +using Microsoft.AspNetCore.Authorization; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; + +namespace LINGYUN.Platform.Datas +{ + [Authorize(PlatformPermissions.DataDictionary.Default)] + public class DataAppService : PlatformApplicationServiceBase, IDataAppService + { + protected IDataRepository DataRepository { get; } + + public DataAppService( + IDataRepository dataRepository) + { + DataRepository = dataRepository; + } + + [Authorize(PlatformPermissions.DataDictionary.Create)] + public virtual async Task CreateAsync(DataCreateDto input) + { + var data = await DataRepository.FindByNameAsync(input.Name); + if (data != null) + { + throw new UserFriendlyException(L["DuplicateData", input.Name]); + } + + string code = string.Empty; + var children = await DataRepository.GetChildrenAsync(input.ParentId); + if (children.Any()) + { + var lastChildren = children.OrderBy(x => x.Code).FirstOrDefault(); + code = CodeNumberGenerator.CalculateNextCode(lastChildren.Code); + } + else + { + var parentData = input.ParentId != null + ? await DataRepository.GetAsync(input.ParentId.Value) + : null; + + code = CodeNumberGenerator.AppendCode(parentData?.Code, CodeNumberGenerator.CreateCode(1)); + } + + data = new Data( + GuidGenerator.Create(), + input.Name, + code, + input.DisplayName, + input.Description, + input.ParentId, + CurrentTenant.Id + ); + + data = await DataRepository.InsertAsync(data); + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(data); + } + + [Authorize(PlatformPermissions.DataDictionary.Delete)] + public virtual async Task DeleteAsync(Guid id) + { + var data = await DataRepository.GetAsync(id); + + var children = await DataRepository.GetChildrenAsync(data.Id); + if (children.Any()) + { + throw new UserFriendlyException(L["UnableRemoveHasChildNode"]); + } + + await DataRepository.DeleteAsync(data); + } + + public virtual async Task GetAsync(string name) + { + var data = await DataRepository.FindByNameAsync(name); + + return ObjectMapper.Map(data); + } + + public virtual async Task GetAsync(Guid id) + { + var data = await DataRepository.GetAsync(id); + + return ObjectMapper.Map(data); + } + + public virtual async Task> GetAllAsync() + { + var datas = await DataRepository.GetListAsync(includeDetails: false); + + return new ListResultDto( + ObjectMapper.Map, List>(datas)); + } + + public virtual async Task> GetListAsync(GetDataListInput input) + { + var count = await DataRepository.GetCountAsync(input.Filter); + + var datas = await DataRepository.GetPagedListAsync( + input.Filter, input.Sorting, + false, input.SkipCount, input.MaxResultCount); + + return new PagedResultDto(count, + ObjectMapper.Map, List>(datas)); + } + + [Authorize(PlatformPermissions.DataDictionary.Update)] + public virtual async Task UpdateAsync(Guid id, DataUpdateDto input) + { + var data = await DataRepository.GetAsync(id); + + if (!string.Equals(data.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) + { + data.Name = input.Name; + } + if (!string.Equals(data.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) + { + data.DisplayName = input.DisplayName; + } + if (!string.Equals(data.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) + { + data.Description = input.Description; + } + + data = await DataRepository.UpdateAsync(data); + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(data); + } + + [Authorize(PlatformPermissions.DataDictionary.ManageItems)] + public virtual async Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input) + { + var data = await DataRepository.GetAsync(id); + var dataItem = data.FindItem(name); + if (dataItem == null) + { + throw new UserFriendlyException(L["DataItemNotFound", name]); + } + + if (!string.Equals(dataItem.DefaultValue, input.DefaultValue, StringComparison.InvariantCultureIgnoreCase)) + { + dataItem.DefaultValue = input.DefaultValue; + } + if (!string.Equals(dataItem.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) + { + dataItem.DisplayName = input.DisplayName; + } + if (!string.Equals(dataItem.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) + { + dataItem.Description = input.Description; + } + dataItem.AllowBeNull = input.AllowBeNull; + + await DataRepository.UpdateAsync(data); + await CurrentUnitOfWork.SaveChangesAsync(); + } + + [Authorize(PlatformPermissions.DataDictionary.ManageItems)] + public virtual async Task CreateItemAsync(Guid id, DataItemCreateDto input) + { + var data = await DataRepository.GetAsync(id); + var dataItem = data.FindItem(input.Name); + if (dataItem != null) + { + throw new UserFriendlyException(L["DuplicateDataItem", input.Name]); + } + + data.AddItem( + GuidGenerator, + input.Name, + input.DisplayName, + input.DefaultValue, + input.ValueType, + input.Description, + input.AllowBeNull); + + await DataRepository.UpdateAsync(data); + await CurrentUnitOfWork.SaveChangesAsync(); + } + + [Authorize(PlatformPermissions.DataDictionary.ManageItems)] + public virtual async Task DeleteItemAsync(Guid id, string name) + { + var data = await DataRepository.GetAsync(id); + data.RemoveItem(name); + + await DataRepository.UpdateAsync(data); + await CurrentUnitOfWork.SaveChangesAsync(); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs index 1e7137616..cd60dd2c8 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Layouts/LayoutAppService.cs @@ -1,124 +1,121 @@ -using LINGYUN.Platform.Datas; -using LINGYUN.Platform.Permissions; -using LINGYUN.Platform.Routes; -using LINGYUN.Platform.Utils; -using Microsoft.AspNetCore.Authorization; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Application.Dtos; - -namespace LINGYUN.Platform.Layouts -{ - [Authorize(PlatformPermissions.Layout.Default)] - public class LayoutAppService : PlatformApplicationServiceBase, ILayoutAppService - { - protected ILayoutRepository LayoutRepository { get; } - - public LayoutAppService( - ILayoutRepository layoutRepository) - { - LayoutRepository = layoutRepository; - } - - [Authorize(PlatformPermissions.Layout.Create)] - public virtual async Task CreateAsync(LayoutCreateDto input) - { - var layout = await LayoutRepository.FindByNameAsync(input.Name); - if (layout != null) - { - throw new UserFriendlyException($"已经存在名为 {input.Name} 的布局!"); - } - - layout = new Layout( - GuidGenerator.Create(), - input.Path, - input.Name, - input.DisplayName, - input.DataId, - input.PlatformType, - input.Redirect, - input.Description, - CurrentTenant.Id); - - layout = await LayoutRepository.InsertAsync(layout); - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(layout); - } - - [Authorize(PlatformPermissions.Layout.Delete)] - public virtual async Task DeleteAsync(Guid id) - { - var layout = await LayoutRepository.GetAsync(id); - - //if (await LayoutRepository.AnyMenuAsync(layout.Id)) - //{ - // throw new UserFriendlyException($"不能删除存在菜单的布局!"); - //} - - await LayoutRepository.DeleteAsync(layout); - await CurrentUnitOfWork.SaveChangesAsync(); - } - - public virtual async Task GetAsync(Guid id) - { - var layout = await LayoutRepository.GetAsync(id); - - return ObjectMapper.Map(layout); - } - - public virtual async Task> GetAllListAsync() - { - var layouts = await LayoutRepository.GetListAsync(); - - return new ListResultDto( - ObjectMapper.Map, List>(layouts)); - } - - public virtual async Task> GetListAsync(GetLayoutListInput input) - { - var count = await LayoutRepository.GetCountAsync(input.PlatformType, input.Filter); - - var layouts = await LayoutRepository.GetPagedListAsync( - input.PlatformType, input.Filter, - input.Sorting, input.Reverse, false, - input.SkipCount, input.MaxResultCount); - - return new PagedResultDto(count, - ObjectMapper.Map, List>(layouts)); - } - - [Authorize(PlatformPermissions.Layout.Update)] - public virtual async Task UpdateAsync(Guid id, LayoutUpdateDto input) - { - var layout = await LayoutRepository.GetAsync(id); - - if (!string.Equals(layout.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) - { - layout.Name = input.Name; - } - if (!string.Equals(layout.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) - { - layout.DisplayName = input.DisplayName; - } - if (!string.Equals(layout.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) - { - layout.Description = input.Description; - } - if (!string.Equals(layout.Path, input.Path, StringComparison.InvariantCultureIgnoreCase)) - { - layout.Path = input.Path; - } - if (!string.Equals(layout.Redirect, input.Redirect, StringComparison.InvariantCultureIgnoreCase)) - { - layout.Redirect = input.Redirect; - } - layout = await LayoutRepository.UpdateAsync(layout); - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(layout); - } - } -} +using LINGYUN.Platform.Permissions; +using Microsoft.AspNetCore.Authorization; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; + +namespace LINGYUN.Platform.Layouts +{ + [Authorize(PlatformPermissions.Layout.Default)] + public class LayoutAppService : PlatformApplicationServiceBase, ILayoutAppService + { + protected ILayoutRepository LayoutRepository { get; } + + public LayoutAppService( + ILayoutRepository layoutRepository) + { + LayoutRepository = layoutRepository; + } + + [Authorize(PlatformPermissions.Layout.Create)] + public virtual async Task CreateAsync(LayoutCreateDto input) + { + var layout = await LayoutRepository.FindByNameAsync(input.Name); + if (layout != null) + { + throw new UserFriendlyException(L["DuplicateLayout", input.Name]); + } + + layout = new Layout( + GuidGenerator.Create(), + input.Path, + input.Name, + input.DisplayName, + input.DataId, + input.Framework, + input.Redirect, + input.Description, + CurrentTenant.Id); + + layout = await LayoutRepository.InsertAsync(layout); + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(layout); + } + + [Authorize(PlatformPermissions.Layout.Delete)] + public virtual async Task DeleteAsync(Guid id) + { + var layout = await LayoutRepository.GetAsync(id); + + //if (await LayoutRepository.AnyMenuAsync(layout.Id)) + //{ + // throw new UserFriendlyException($"不能删除存在菜单的布局!"); + //} + + await LayoutRepository.DeleteAsync(layout); + await CurrentUnitOfWork.SaveChangesAsync(); + } + + public virtual async Task GetAsync(Guid id) + { + var layout = await LayoutRepository.GetAsync(id); + + return ObjectMapper.Map(layout); + } + + public virtual async Task> GetAllListAsync() + { + var layouts = await LayoutRepository.GetListAsync(); + + return new ListResultDto( + ObjectMapper.Map, List>(layouts)); + } + + public virtual async Task> GetListAsync(GetLayoutListInput input) + { + var count = await LayoutRepository.GetCountAsync(input.Framework, input.Filter); + + var layouts = await LayoutRepository.GetPagedListAsync( + input.Framework, input.Filter, + input.Sorting, input.Reverse, false, + input.SkipCount, input.MaxResultCount); + + return new PagedResultDto(count, + ObjectMapper.Map, List>(layouts)); + } + + [Authorize(PlatformPermissions.Layout.Update)] + public virtual async Task UpdateAsync(Guid id, LayoutUpdateDto input) + { + var layout = await LayoutRepository.GetAsync(id); + + if (!string.Equals(layout.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) + { + layout.Name = input.Name; + } + if (!string.Equals(layout.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) + { + layout.DisplayName = input.DisplayName; + } + if (!string.Equals(layout.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) + { + layout.Description = input.Description; + } + if (!string.Equals(layout.Path, input.Path, StringComparison.InvariantCultureIgnoreCase)) + { + layout.Path = input.Path; + } + if (!string.Equals(layout.Redirect, input.Redirect, StringComparison.InvariantCultureIgnoreCase)) + { + layout.Redirect = input.Redirect; + } + layout = await LayoutRepository.UpdateAsync(layout); + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(layout); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs index 8dffcce3a..de31a4f1b 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Application/LINGYUN/Platform/Menus/MenuAppService.cs @@ -1,240 +1,239 @@ -using LINGYUN.Platform.Datas; -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Permissions; -using Microsoft.AspNetCore.Authorization; -using Microsoft.Extensions.Options; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Application.Dtos; -using Volo.Abp.Data; -using Volo.Abp.Users; - -namespace LINGYUN.Platform.Menus -{ - [Authorize] - public class MenuAppService : PlatformApplicationServiceBase, IMenuAppService - { - protected DataItemMappingOptions DataItemMapping { get; } - protected MenuManager MenuManager { get; } - protected IMenuRepository MenuRepository { get; } - protected IDataRepository DataRepository { get; } - protected ILayoutRepository LayoutRepository { get; } - - public MenuAppService( - MenuManager menuManager, - IMenuRepository menuRepository, - IDataRepository dataRepository, - ILayoutRepository layoutRepository, - IOptions options) - { - MenuManager = menuManager; - MenuRepository = menuRepository; - DataRepository = dataRepository; - LayoutRepository = layoutRepository; - DataItemMapping = options.Value; - } - - public virtual async Task> GetCurrentUserMenuListAsync(GetMenuInput input) - { - var myMenus = await MenuRepository.GetUserMenusAsync( - CurrentUser.GetId(), - CurrentUser.Roles, - input.PlatformType); - - return new ListResultDto( - ObjectMapper.Map, List>(myMenus)); - } - - [Authorize(PlatformPermissions.Menu.Default)] - public virtual async Task GetAsync(Guid id) - { - var menu = await MenuRepository.GetAsync(id); - - return ObjectMapper.Map(menu); - } - - [Authorize(PlatformPermissions.Menu.Default)] - public virtual async Task> GetAllAsync(MenuGetAllInput input) - { - var menus = await MenuRepository.GetAllAsync( - input.Filter, input.Sorting, input.Reverse, - input.PlatformType, input.ParentId, input.LayoutId); - - return new ListResultDto( - ObjectMapper.Map, List>(menus)); - } - - [Authorize(PlatformPermissions.Menu.Default)] - public virtual async Task> GetListAsync(MenuGetListInput input) - { - var count = await MenuRepository.GetCountAsync(input.Filter, input.PlatformType, input.ParentId, input.LayoutId); - - var menus = await MenuRepository.GetListAsync( - input.Filter, input.Sorting, input.Reverse, - input.PlatformType, input.ParentId, input.LayoutId, - input.SkipCount, input.MaxResultCount); - - return new PagedResultDto(count, - ObjectMapper.Map, List>(menus)); - } - - [Authorize(PlatformPermissions.Menu.Create)] - public virtual async Task CreateAsync(MenuCreateDto input) - { - var layout = await LayoutRepository.GetAsync(input.LayoutId); - var data = await DataRepository.GetAsync(layout.DataId); - - var menu = await MenuManager.CreateAsync( - GuidGenerator.Create(), - layout.Id, - input.Path, - input.Name, - input.Component, - input.DisplayName, - input.Redirect, - input.Description, - layout.PlatformType, - input.ParentId, - CurrentTenant.Id, - input.IsPublic); - - // 利用布局约定的数据字典来校验必须的路由元数据,元数据的加入是为了适配多端路由 - foreach (var dataItem in data.Items) - { - if (!input.Meta.TryGetValue(dataItem.Name, out object meta)) - { - if (!dataItem.AllowBeNull) - { - throw new BusinessException(PlatformErrorCodes.MenuMissingMetadata) - .WithData("Name", dataItem.DisplayName) - .WithData("DataName", data.DisplayName); - } - // 是否需要设定默认值 - menu.SetProperty(dataItem.Name, dataItem.DefaultValue); - } - else - { - // 需要检查参数是否有效 - menu.SetProperty(dataItem.Name, DataItemMapping.MapToString(dataItem.ValueType, meta)); - } - } - - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(menu); - } - - [Authorize(PlatformPermissions.Menu.Update)] - public virtual async Task UpdateAsync(Guid id, MenuUpdateDto input) - { - var menu = await MenuRepository.GetAsync(id); - - // 利用布局约定的数据字典来校验必须的路由元数据,元数据的加入是为了适配多端路由 - var layout = await LayoutRepository.GetAsync(menu.LayoutId); - var data = await DataRepository.GetAsync(layout.DataId); - foreach (var dataItem in data.Items) - { - if (!input.Meta.TryGetValue(dataItem.Name, out object meta)) - { - if (!dataItem.AllowBeNull) - { - throw new BusinessException(PlatformErrorCodes.MenuMissingMetadata) - .WithData("Name", dataItem.DisplayName) - .WithData("DataName", data.DisplayName); - } - // 是否需要设定默认值? - menu.SetProperty(dataItem.Name, dataItem.DefaultValue); - } - else - { - // 与现有的数据做对比 - var menuMeta = menu.GetProperty(dataItem.Name); - if (menuMeta != null && menuMeta.Equals(meta)) - { - continue; - } - // 需要检查参数是否有效 - menu.SetProperty(dataItem.Name, DataItemMapping.MapToString(dataItem.ValueType, meta)); - } - } - - if (!string.Equals(menu.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) - { - menu.Name = input.Name; - } - if (!string.Equals(menu.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) - { - menu.DisplayName = input.DisplayName; - } - if (!string.Equals(menu.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) - { - menu.Description = input.Description; - } - if (!string.Equals(menu.Path, input.Path, StringComparison.InvariantCultureIgnoreCase)) - { - menu.Path = input.Path; - } - if (!string.Equals(menu.Redirect, input.Redirect, StringComparison.InvariantCultureIgnoreCase)) - { - menu.Redirect = input.Redirect; - } - if (!string.Equals(menu.Component, input.Component, StringComparison.InvariantCultureIgnoreCase)) - { - menu.Component = input.Component; - } - - menu.IsPublic = input.IsPublic; - - await MenuManager.UpdateAsync(menu); - await CurrentUnitOfWork.SaveChangesAsync(); - - return ObjectMapper.Map(menu); - } - - [Authorize(PlatformPermissions.Menu.Delete)] - public virtual async Task DeleteAsync(Guid id) - { - var childrens = await MenuRepository.GetChildrenAsync(id); - if (childrens.Any()) - { - throw new BusinessException(PlatformErrorCodes.DeleteMenuHaveChildren); - } - - var menu = await MenuRepository.GetAsync(id); - await MenuRepository.DeleteAsync(menu); - } - - [Authorize(PlatformPermissions.Menu.ManageUsers)] - public virtual async Task> GetUserMenuListAsync(MenuGetByUserInput input) - { - var menus = await MenuRepository.GetUserMenusAsync(input.UserId, input.Roles, input.PlatformType); - - return new ListResultDto( - ObjectMapper.Map, List>(menus)); - } - - [Authorize(PlatformPermissions.Menu.ManageUsers)] - public virtual async Task SetUserMenusAsync(UserMenuInput input) - { - await MenuManager.SetUserMenusAsync(input.UserId, input.MenuIds); - } - - [Authorize(PlatformPermissions.Menu.ManageRoles)] - public virtual async Task SetRoleMenusAsync(RoleMenuInput input) - { - await MenuManager.SetRoleMenusAsync(input.RoleName, input.MenuIds); - } - - [Authorize(PlatformPermissions.Menu.ManageRoles)] - public virtual async Task> GetRoleMenuListAsync(MenuGetByRoleInput input) - { - var menus = await MenuRepository.GetRoleMenusAsync(new string[] { input.Role }, input.PlatformType); - - return new ListResultDto( - ObjectMapper.Map, List>(menus)); - } - } -} +using LINGYUN.Platform.Datas; +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Permissions; +using Microsoft.AspNetCore.Authorization; +using Microsoft.Extensions.Options; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.Data; +using Volo.Abp.Users; + +namespace LINGYUN.Platform.Menus +{ + [Authorize] + public class MenuAppService : PlatformApplicationServiceBase, IMenuAppService + { + protected DataItemMappingOptions DataItemMapping { get; } + protected MenuManager MenuManager { get; } + protected IMenuRepository MenuRepository { get; } + protected IDataRepository DataRepository { get; } + protected ILayoutRepository LayoutRepository { get; } + + public MenuAppService( + MenuManager menuManager, + IMenuRepository menuRepository, + IDataRepository dataRepository, + ILayoutRepository layoutRepository, + IOptions options) + { + MenuManager = menuManager; + MenuRepository = menuRepository; + DataRepository = dataRepository; + LayoutRepository = layoutRepository; + DataItemMapping = options.Value; + } + + public virtual async Task> GetCurrentUserMenuListAsync(GetMenuInput input) + { + var myMenus = await MenuRepository.GetUserMenusAsync( + CurrentUser.GetId(), + CurrentUser.Roles, + input.Framework); + + return new ListResultDto( + ObjectMapper.Map, List>(myMenus)); + } + + [Authorize(PlatformPermissions.Menu.Default)] + public virtual async Task GetAsync(Guid id) + { + var menu = await MenuRepository.GetAsync(id); + + return ObjectMapper.Map(menu); + } + + [Authorize(PlatformPermissions.Menu.Default)] + public virtual async Task> GetAllAsync(MenuGetAllInput input) + { + var menus = await MenuRepository.GetAllAsync( + input.Filter, input.Sorting, input.Reverse, + input.Framework, input.ParentId, input.LayoutId); + + return new ListResultDto( + ObjectMapper.Map, List>(menus)); + } + + [Authorize(PlatformPermissions.Menu.Default)] + public virtual async Task> GetListAsync(MenuGetListInput input) + { + var count = await MenuRepository.GetCountAsync(input.Filter, input.Framework, input.ParentId, input.LayoutId); + + var menus = await MenuRepository.GetListAsync( + input.Filter, input.Sorting, input.Reverse, + input.Framework, input.ParentId, input.LayoutId, + input.SkipCount, input.MaxResultCount); + + return new PagedResultDto(count, + ObjectMapper.Map, List>(menus)); + } + + [Authorize(PlatformPermissions.Menu.Create)] + public virtual async Task CreateAsync(MenuCreateDto input) + { + var layout = await LayoutRepository.GetAsync(input.LayoutId); + var data = await DataRepository.GetAsync(layout.DataId); + + var menu = await MenuManager.CreateAsync( + layout, + GuidGenerator.Create(), + input.Path, + input.Name, + input.Component, + input.DisplayName, + input.Redirect, + input.Description, + input.ParentId, + CurrentTenant.Id, + input.IsPublic); + + // 利用布局约定的数据字典来校验必须的路由元数据,元数据的加入是为了适配多端路由 + foreach (var dataItem in data.Items) + { + if (!input.Meta.TryGetValue(dataItem.Name, out object meta)) + { + if (!dataItem.AllowBeNull) + { + throw new BusinessException(PlatformErrorCodes.MenuMissingMetadata) + .WithData("Name", dataItem.DisplayName) + .WithData("DataName", data.DisplayName); + } + // 是否需要设定默认值 + menu.SetProperty(dataItem.Name, dataItem.DefaultValue); + } + else + { + // 需要检查参数是否有效 + menu.SetProperty(dataItem.Name, DataItemMapping.MapToString(dataItem.ValueType, meta)); + } + } + + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(menu); + } + + [Authorize(PlatformPermissions.Menu.Update)] + public virtual async Task UpdateAsync(Guid id, MenuUpdateDto input) + { + var menu = await MenuRepository.GetAsync(id); + + // 利用布局约定的数据字典来校验必须的路由元数据,元数据的加入是为了适配多端路由 + var layout = await LayoutRepository.GetAsync(menu.LayoutId); + var data = await DataRepository.GetAsync(layout.DataId); + foreach (var dataItem in data.Items) + { + if (!input.Meta.TryGetValue(dataItem.Name, out object meta)) + { + if (!dataItem.AllowBeNull) + { + throw new BusinessException(PlatformErrorCodes.MenuMissingMetadata) + .WithData("Name", dataItem.DisplayName) + .WithData("DataName", data.DisplayName); + } + // 是否需要设定默认值? + menu.SetProperty(dataItem.Name, dataItem.DefaultValue); + } + else + { + // 与现有的数据做对比 + var menuMeta = menu.GetProperty(dataItem.Name); + if (menuMeta != null && menuMeta.Equals(meta)) + { + continue; + } + // 需要检查参数是否有效 + menu.SetProperty(dataItem.Name, DataItemMapping.MapToString(dataItem.ValueType, meta)); + } + } + + if (!string.Equals(menu.Name, input.Name, StringComparison.InvariantCultureIgnoreCase)) + { + menu.Name = input.Name; + } + if (!string.Equals(menu.DisplayName, input.DisplayName, StringComparison.InvariantCultureIgnoreCase)) + { + menu.DisplayName = input.DisplayName; + } + if (!string.Equals(menu.Description, input.Description, StringComparison.InvariantCultureIgnoreCase)) + { + menu.Description = input.Description; + } + if (!string.Equals(menu.Path, input.Path, StringComparison.InvariantCultureIgnoreCase)) + { + menu.Path = input.Path; + } + if (!string.Equals(menu.Redirect, input.Redirect, StringComparison.InvariantCultureIgnoreCase)) + { + menu.Redirect = input.Redirect; + } + if (!string.Equals(menu.Component, input.Component, StringComparison.InvariantCultureIgnoreCase)) + { + menu.Component = input.Component; + } + + menu.IsPublic = input.IsPublic; + + await MenuManager.UpdateAsync(menu); + await CurrentUnitOfWork.SaveChangesAsync(); + + return ObjectMapper.Map(menu); + } + + [Authorize(PlatformPermissions.Menu.Delete)] + public virtual async Task DeleteAsync(Guid id) + { + var childrens = await MenuRepository.GetChildrenAsync(id); + if (childrens.Any()) + { + throw new BusinessException(PlatformErrorCodes.DeleteMenuHaveChildren); + } + + var menu = await MenuRepository.GetAsync(id); + await MenuRepository.DeleteAsync(menu); + } + + [Authorize(PlatformPermissions.Menu.ManageUsers)] + public virtual async Task> GetUserMenuListAsync(MenuGetByUserInput input) + { + var menus = await MenuRepository.GetUserMenusAsync(input.UserId, input.Roles, input.Framework); + + return new ListResultDto( + ObjectMapper.Map, List>(menus)); + } + + [Authorize(PlatformPermissions.Menu.ManageUsers)] + public virtual async Task SetUserMenusAsync(UserMenuInput input) + { + await MenuManager.SetUserMenusAsync(input.UserId, input.MenuIds); + } + + [Authorize(PlatformPermissions.Menu.ManageRoles)] + public virtual async Task SetRoleMenusAsync(RoleMenuInput input) + { + await MenuManager.SetRoleMenusAsync(input.RoleName, input.MenuIds); + } + + [Authorize(PlatformPermissions.Menu.ManageRoles)] + public virtual async Task> GetRoleMenuListAsync(MenuGetByRoleInput input) + { + var menus = await MenuRepository.GetRoleMenusAsync(new string[] { input.Role }, input.Framework); + + return new ListResultDto( + ObjectMapper.Map, List>(menus)); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/en.json b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/en.json index dad8a587e..2eb2f4ca3 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/en.json +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/en.json @@ -1,55 +1,60 @@ -{ - "culture": "en", - "texts": { - "Platform:01404": "File not found, name: {FileName}, version:{FileVersion}!", - "Platform:02001": "The same menu exists in the sibling directory: {Name}!", - "Platform:02002": "You are not allowed to delete menu nodes when there are other submenus!", - "Platform:02003": "The menu level has reached the specified maximum: {Depth}!", - "Platform:02101": "The menu metadata is missing the necessary element :{Name}, which is defined in the data dictionary :{DataName}!", - "Platform:03001": "The metadata format does not match!", - "UploadFileSizeBeyondLimit": "Upload file size cannot exceed {0} MB!", - "NotAllowedFileExtensionName": "Not allowed file extension: {0}!", - "DisplayName:VersionFileLimitLength": "File limit size", - "Description:VersionFileLimitLength": "Limit size of uploaded file in MB", - "DisplayName:AllowVersionFileExtensions": "File extension", - "Description:AllowVersionFileExtensions": "List of allowed extensions to upload files, with multiple extensions separated by, don't need a notation", - "DisplayName:Menus": "Menus", - "DisplayName:Name": "Name", - "DisplayName:Code": "Code", - "DisplayName:IsPublic": "Is Public", - "DisplayName:DisplayName": "Display Name", - "DisplayName:Description": "Description", - "DisplayName:AllowBeNull": "Allow Be Null", - "DisplayName:DefaultValue": "Default Value", - "DisplayName:ValueType": "Value Type", - "DisplayName:Path": "Path", - "DisplayName:Redirect": "Redirect", - "DisplayName:Meta": "Meta", - "DisplayName:Component": "Component", - "DisplayName:Filter": "Filter", - "DisplayName:PlatformType": "Platform Type", - "DisplayName:SecrchMenu": "Secrch Menu", - "DisplayName:SecrchLayout": "Secrch Layout", - "DisplayName:Layout": "Layout", - "DisplayName:Basic": "Basic", - "DisplayName:DataDictionary": "Data Dictionary", - "Layout:AddNew": "Add New", - "Layout:Edit": "Edit", - "Layout:EditByName": "Edit Layout - {0}", - "Layout:Delete": "Delete Layout", - "Menu:AddNew": "Add New", - "Menu:AddChildren": "Add Children", - "Menu:Edit": "Edit", - "Menu:EditByName": "Edit Menu - {0}", - "Menu:Delete": "Delete Menu", - "Menu:Manage": "Manage Menus", - "Data:AddNew": "Add New", - "Data:AddChildren": "Add Children", - "Data:Edit": "Edit", - "Data:Delete": "Delete Data", - "Data:AppendItem": "Append Item", - "Data:EditItem": "Edit Item", - "Data:RemoveItem": "Remove Item", - "Data:Items": "Data Items" - } +{ + "culture": "en", + "texts": { + "Platform:01404": "File not found, name: {FileName}, version:{FileVersion}!", + "Platform:02001": "The same menu exists in the sibling directory: {Name}!", + "Platform:02002": "You are not allowed to delete menu nodes when there are other submenus!", + "Platform:02003": "The menu level has reached the specified maximum: {Depth}!", + "Platform:02101": "The menu metadata is missing the necessary element :{Name}, which is defined in the data dictionary :{DataName}!", + "Platform:03001": "The metadata format does not match!", + "UploadFileSizeBeyondLimit": "Upload file size cannot exceed {0} MB!", + "NotAllowedFileExtensionName": "Not allowed file extension: {0}!", + "DisplayName:VersionFileLimitLength": "File limit size", + "Description:VersionFileLimitLength": "Limit size of uploaded file in MB", + "DisplayName:AllowVersionFileExtensions": "File extension", + "Description:AllowVersionFileExtensions": "List of allowed extensions to upload files, with multiple extensions separated by, don't need a notation", + "DisplayName:Menus": "Menus", + "DisplayName:Name": "Name", + "DisplayName:Code": "Code", + "DisplayName:IsPublic": "Is Public", + "DisplayName:DisplayName": "Display Name", + "DisplayName:Description": "Description", + "DisplayName:AllowBeNull": "Allow Be Null", + "DisplayName:DefaultValue": "Default Value", + "DisplayName:ValueType": "Value Type", + "DisplayName:Path": "Path", + "DisplayName:Redirect": "Redirect", + "DisplayName:Meta": "Meta", + "DisplayName:Component": "Component", + "DisplayName:Filter": "Filter", + "DisplayName:PlatformType": "Platform Type", + "DisplayName:SecrchMenu": "Secrch Menu", + "DisplayName:SecrchLayout": "Secrch Layout", + "DisplayName:Layout": "Layout", + "DisplayName:Basic": "Basic", + "DisplayName:DataDictionary": "Data Dictionary", + "Layout:AddNew": "Add New", + "Layout:Edit": "Edit", + "Layout:EditByName": "Edit Layout - {0}", + "Layout:Delete": "Delete Layout", + "Menu:AddNew": "Add New", + "Menu:AddChildren": "Add Children", + "Menu:Edit": "Edit", + "Menu:EditByName": "Edit Menu - {0}", + "Menu:Delete": "Delete Menu", + "Menu:Manage": "Manage Menus", + "Data:AddNew": "Add New", + "Data:AddChildren": "Add Children", + "Data:Edit": "Edit", + "Data:Delete": "Delete Data", + "Data:AppendItem": "Append Item", + "Data:EditItem": "Edit Item", + "Data:RemoveItem": "Remove Item", + "Data:Items": "Data Items", + "DuplicateData": "A data dictionary named {0} already exists!", + "DuplicateDataItem": "A data dictionary entry named {0} already exists!", + "DataItemNotFound": "There is no data dictionary entry named {0}!", + "UnableRemoveHasChildNode": "Current data dictionary exists child node, cannot delete!", + "DuplicateLayout": "A layout named {0} already exists!" + } } \ No newline at end of file diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json index 318540f9a..848dce05e 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Localization/Resources/zh-Hans.json @@ -1,55 +1,60 @@ -{ - "culture": "zh-Hans", - "texts": { - "Platform:01404": "文件: {FileName}, 版本号: {FileVersion} 不存在!", - "Platform:02001": "同级目录下存在相同的菜单: {Name}!", - "Platform:02002": "在有其他子菜单的情况下,不允许删除菜单节点!", - "Platform:02003": "菜单层级已达到规定最大值: {Depth}!", - "Platform:02101": "菜单元数据缺少必要的元素: {Name},此选项在数据字典:{DataName} 中定义!", - "Platform:03001": "元数据格式不匹配!", - "UploadFileSizeBeyondLimit": "上传文件大小不能超过 {0} MB!", - "NotAllowedFileExtensionName": "不被允许的文件扩展名: {0}!", - "DisplayName:VersionFileLimitLength": "文件限制大小", - "Description:VersionFileLimitLength": "上传文件的限制大小,单位(MB)", - "DisplayName:AllowVersionFileExtensions": "文件扩展名", - "Description:AllowVersionFileExtensions": "允许的上传文件扩展名列表,多个扩展名以,分隔,无需输入.符号", - "DisplayName:Menus": "菜单列表", - "DisplayName:Name": "名称", - "DisplayName:Code": "编号", - "DisplayName:IsPublic": "是否公用的", - "DisplayName:DisplayName": "显示名称", - "DisplayName:Description": "说明", - "DisplayName:AllowBeNull": "允许空值", - "DisplayName:DefaultValue": "默认值", - "DisplayName:ValueType": "值类型", - "DisplayName:Path": "路径", - "DisplayName:Redirect": "重定向路径", - "DisplayName:Meta": "元数据", - "DisplayName:Component": "组件", - "DisplayName:Filter": "筛选", - "DisplayName:PlatformType": "平台类型", - "DisplayName:SecrchMenu": "查询菜单", - "DisplayName:SecrchLayout": "查询布局", - "DisplayName:Layout": "布局", - "DisplayName:Basic": "基础信息", - "DisplayName:DataDictionary": "数据字典", - "Layout:AddNew": "添加新布局", - "Layout:Edit": "编辑布局", - "Layout:EditByName": "编辑布局 - {0}", - "Layout:Delete": "删除布局", - "Menu:AddNew": "添加新菜单", - "Menu:AddChildren": "添加子菜单", - "Menu:Edit": "编辑菜单", - "Menu:EditByName": "编辑菜单 - {0}", - "Menu:Delete": "删除菜单", - "Menu:Manage": "管理菜单", - "Data:AddNew": "添加新字典", - "Data:AddChildren": "添加下级字典", - "Data:Edit": "编辑字典", - "Data:Delete": "删除字典", - "Data:AppendItem": "添加项目", - "Data:EditItem": "编辑项目", - "Data:RemoveItem": "删除项目", - "Data:Items": "字典项目" - } +{ + "culture": "zh-Hans", + "texts": { + "Platform:01404": "文件: {FileName}, 版本号: {FileVersion} 不存在!", + "Platform:02001": "同级目录下存在相同的菜单: {Name}!", + "Platform:02002": "在有其他子菜单的情况下,不允许删除菜单节点!", + "Platform:02003": "菜单层级已达到规定最大值: {Depth}!", + "Platform:02101": "菜单元数据缺少必要的元素: {Name},此选项在数据字典:{DataName} 中定义!", + "Platform:03001": "元数据格式不匹配!", + "UploadFileSizeBeyondLimit": "上传文件大小不能超过 {0} MB!", + "NotAllowedFileExtensionName": "不被允许的文件扩展名: {0}!", + "DisplayName:VersionFileLimitLength": "文件限制大小", + "Description:VersionFileLimitLength": "上传文件的限制大小,单位(MB)", + "DisplayName:AllowVersionFileExtensions": "文件扩展名", + "Description:AllowVersionFileExtensions": "允许的上传文件扩展名列表,多个扩展名以,分隔,无需输入.符号", + "DisplayName:Menus": "菜单列表", + "DisplayName:Name": "名称", + "DisplayName:Code": "编号", + "DisplayName:IsPublic": "是否公用的", + "DisplayName:DisplayName": "显示名称", + "DisplayName:Description": "说明", + "DisplayName:AllowBeNull": "允许空值", + "DisplayName:DefaultValue": "默认值", + "DisplayName:ValueType": "值类型", + "DisplayName:Path": "路径", + "DisplayName:Redirect": "重定向路径", + "DisplayName:Meta": "元数据", + "DisplayName:Component": "组件", + "DisplayName:Filter": "筛选", + "DisplayName:PlatformType": "平台类型", + "DisplayName:SecrchMenu": "查询菜单", + "DisplayName:SecrchLayout": "查询布局", + "DisplayName:Layout": "布局", + "DisplayName:Basic": "基础信息", + "DisplayName:DataDictionary": "数据字典", + "Layout:AddNew": "添加新布局", + "Layout:Edit": "编辑布局", + "Layout:EditByName": "编辑布局 - {0}", + "Layout:Delete": "删除布局", + "Menu:AddNew": "添加新菜单", + "Menu:AddChildren": "添加子菜单", + "Menu:Edit": "编辑菜单", + "Menu:EditByName": "编辑菜单 - {0}", + "Menu:Delete": "删除菜单", + "Menu:Manage": "管理菜单", + "Data:AddNew": "添加新字典", + "Data:AddChildren": "添加下级字典", + "Data:Edit": "编辑字典", + "Data:Delete": "删除字典", + "Data:AppendItem": "添加项目", + "Data:EditItem": "编辑项目", + "Data:RemoveItem": "删除项目", + "Data:Items": "字典项目", + "DuplicateData": "已经存在名为 {0} 的数据字典!", + "DuplicateDataItem": "已经存在名为 {0} 的数据字典项!", + "DataItemNotFound": "不存在名为 {0} 的数据字典项!", + "UnableRemoveHasChildNode": "当前数据字典存在子节点,无法删除!", + "DuplicateLayout": "已经存在名为 {0} 的布局!" + } } \ No newline at end of file diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Routes/LayoutConsts.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Routes/LayoutConsts.cs new file mode 100644 index 000000000..1dee3d996 --- /dev/null +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain.Shared/LINGYUN/Platform/Routes/LayoutConsts.cs @@ -0,0 +1,7 @@ +namespace LINGYUN.Platform.Routes +{ + public static class LayoutConsts + { + public static int MaxFrameworkLength { get; set; } = 64; + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/Data.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/Data.cs index da25faa6b..eadb7d712 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/Data.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/Data.cs @@ -1,121 +1,127 @@ -using JetBrains.Annotations; -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using Volo.Abp; -using Volo.Abp.Domain.Entities.Auditing; -using Volo.Abp.Guids; -using Volo.Abp.MultiTenancy; - -namespace LINGYUN.Platform.Datas -{ - /// - /// 数据字典 - /// - public class Data : FullAuditedAggregateRoot, IMultiTenant - { - public virtual Guid? TenantId { get; protected set; } - - public virtual string Name { get; set; } - - public virtual string Code { get; set; } - - public virtual string DisplayName { get; set; } - - public virtual string Description { get; set; } - - public virtual Guid? ParentId { get; set; } - - public virtual ICollection Items { get; protected set; } - - protected Data() - { - Items = new Collection(); - } - - public Data( - [NotNull] Guid id, - [NotNull] string name, - [NotNull] string code, - [NotNull] string displayName, - string description = "", - Guid? parentId = null, - Guid? tenantId = null) - { - Check.NotNull(id, nameof(id)); - Check.NotNullOrWhiteSpace(name, nameof(name)); - Check.NotNullOrWhiteSpace(code, nameof(code)); - Check.NotNullOrWhiteSpace(displayName, nameof(displayName)); - - Id = id; - Name = name; - Code = code; - DisplayName = displayName; - Description = description; - ParentId = parentId; - TenantId = tenantId; - - CreationTime = DateTime.Now; - - Items = new Collection(); - } - - public Data AddItem( - [NotNull] IGuidGenerator guidGenerator, - [NotNull] string name, - [NotNull] string displayName, - [CanBeNull] string defaultValue, - ValueType valueType = ValueType.String, - string description = "", - bool allowBeNull = true) - { - Check.NotNull(guidGenerator, nameof(guidGenerator)); - Check.NotNull(name, nameof(name)); - Check.NotNull(displayName, nameof(displayName)); - - if (!IsInItem(name)) - { - var dataItem = new DataItem( - guidGenerator.Create(), - Id, - name, - displayName, - defaultValue, - valueType, - description, - allowBeNull, - TenantId - ); - Items.Add(dataItem); - } - - return this; - } - - public DataItem FindItem(string name) - { - return Items.FirstOrDefault(item => item.Name == name); - } - - public DataItem FindItem(Guid id) - { - return Items.FirstOrDefault(item => item.Id == id); - } - - public bool RemoveItem(string name) - { - if (IsInItem(name)) - { - Items.RemoveAll(item => item.Name == name); - return true; - } - return false; - } - - public bool IsInItem(string name) - { - return Items.Any(item => item.Name == name); - } - } -} +using JetBrains.Annotations; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using Volo.Abp; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.Guids; +using Volo.Abp.MultiTenancy; + +namespace LINGYUN.Platform.Datas +{ + /// + /// 数据字典 + /// + public class Data : FullAuditedAggregateRoot, IMultiTenant + { + public virtual Guid? TenantId { get; protected set; } + + public virtual string Name { get; set; } + + public virtual string Code { get; set; } + + public virtual string DisplayName { get; set; } + + public virtual string Description { get; set; } + + public virtual Guid? ParentId { get; set; } + + public virtual bool IsStatic { get; set; } + + public virtual ICollection Items { get; protected set; } + + protected Data() + { + Items = new Collection(); + } + + public Data( + [NotNull] Guid id, + [NotNull] string name, + [NotNull] string code, + [NotNull] string displayName, + string description = "", + Guid? parentId = null, + Guid? tenantId = null) + { + Check.NotNull(id, nameof(id)); + Check.NotNullOrWhiteSpace(name, nameof(name)); + Check.NotNullOrWhiteSpace(code, nameof(code)); + Check.NotNullOrWhiteSpace(displayName, nameof(displayName)); + + Id = id; + Name = name; + Code = code; + DisplayName = displayName; + Description = description; + ParentId = parentId; + TenantId = tenantId; + + CreationTime = DateTime.Now; + + Items = new Collection(); + } + + public Data AddItem( + [NotNull] IGuidGenerator guidGenerator, + [NotNull] string name, + [NotNull] string displayName, + [CanBeNull] string defaultValue, + ValueType valueType = ValueType.String, + string description = "", + bool allowBeNull = true, + bool isStatic = false) + { + Check.NotNull(guidGenerator, nameof(guidGenerator)); + Check.NotNull(name, nameof(name)); + Check.NotNull(displayName, nameof(displayName)); + + if (!IsInItem(name)) + { + var dataItem = new DataItem( + guidGenerator.Create(), + Id, + name, + displayName, + defaultValue, + valueType, + description, + allowBeNull, + TenantId + ) + { + IsStatic = isStatic + }; + Items.Add(dataItem); + } + + return this; + } + + public DataItem FindItem(string name) + { + return Items.FirstOrDefault(item => item.Name == name); + } + + public DataItem FindItem(Guid id) + { + return Items.FirstOrDefault(item => item.Id == id); + } + + public bool RemoveItem(string name) + { + if (IsInItem(name)) + { + Items.RemoveAll(item => item.Name == name); + return true; + } + return false; + } + + public bool IsInItem(string name) + { + return Items.Any(item => item.Name == name); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataDictionaryDataSeeder.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataDictionaryDataSeeder.cs index 747a2f986..3e7962bce 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataDictionaryDataSeeder.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataDictionaryDataSeeder.cs @@ -1,57 +1,61 @@ -using System; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Guids; -using Volo.Abp.MultiTenancy; - -namespace LINGYUN.Platform.Datas -{ - public class DataDictionaryDataSeeder : IDataDictionaryDataSeeder, ITransientDependency - { - protected ICurrentTenant CurrentTenant { get; } - protected IGuidGenerator GuidGenerator { get; } - protected IDataRepository DataRepository { get; } - - public DataDictionaryDataSeeder( - ICurrentTenant currentTenant, - IGuidGenerator guidGenerator, - IDataRepository dataRepository) - { - CurrentTenant = currentTenant; - GuidGenerator = guidGenerator; - DataRepository = dataRepository; - } - - public virtual async Task SeedAsync( - string name, - string code, - string displayName, - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - CancellationToken cancellationToken = default) - { - using (CurrentTenant.Change(tenantId)) - { - var data = await DataRepository.FindByNameAsync(name, cancellationToken: cancellationToken); - - if (data == null) - { - data = new Data( - GuidGenerator.Create(), - name, - code, - displayName, - description, - parentId, - tenantId); - - data = await DataRepository.InsertAsync(data); - } - - return data; - } - } - } -} +using System; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Guids; +using Volo.Abp.MultiTenancy; + +namespace LINGYUN.Platform.Datas +{ + public class DataDictionaryDataSeeder : IDataDictionaryDataSeeder, ITransientDependency + { + protected ICurrentTenant CurrentTenant { get; } + protected IGuidGenerator GuidGenerator { get; } + protected IDataRepository DataRepository { get; } + + public DataDictionaryDataSeeder( + ICurrentTenant currentTenant, + IGuidGenerator guidGenerator, + IDataRepository dataRepository) + { + CurrentTenant = currentTenant; + GuidGenerator = guidGenerator; + DataRepository = dataRepository; + } + + public virtual async Task SeedAsync( + string name, + string code, + string displayName, + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + bool isStatic = false, + CancellationToken cancellationToken = default) + { + using (CurrentTenant.Change(tenantId)) + { + var data = await DataRepository.FindByNameAsync(name, cancellationToken: cancellationToken); + + if (data == null) + { + data = new Data( + GuidGenerator.Create(), + name, + code, + displayName, + description, + parentId, + tenantId) + { + IsStatic = isStatic + }; + + data = await DataRepository.InsertAsync(data, true); + } + + return data; + } + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataItem.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataItem.cs index 0ec149f99..071c2b116 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataItem.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/DataItem.cs @@ -1,93 +1,94 @@ -using JetBrains.Annotations; -using System; -using System.Collections.Generic; -using Volo.Abp; -using Volo.Abp.Domain.Entities.Auditing; -using Volo.Abp.MultiTenancy; - -namespace LINGYUN.Platform.Datas -{ - public class DataItem : FullAuditedAggregateRoot, IMultiTenant - { - public virtual Guid? TenantId { get; protected set; } - - public virtual string Name { get; protected set; } - - public virtual string DisplayName { get; set; } - - public virtual string DefaultValue { get; set; } - - public virtual string Description { get; set; } - - public virtual bool AllowBeNull { get; set; } - - public virtual ValueType ValueType { get; protected set; } - - public virtual Guid DataId { get; protected set; } - - protected DataItem() { } - - public DataItem( - [NotNull] Guid id, - [NotNull] Guid dataId, - [NotNull] string name, - [NotNull] string displayName, - [CanBeNull] string defaultValue = null, - ValueType valueType = ValueType.String, - string description = "", - bool allowBeNull = true, - Guid? tenantId = null) - { - Check.NotNull(id, nameof(id)); - Check.NotNull(dataId, nameof(dataId)); - Check.NotNullOrWhiteSpace(name, nameof(name)); - Check.NotNullOrWhiteSpace(displayName, nameof(displayName)); - - Id = id; - Name = name; - DefaultValue = defaultValue ?? SetDefaultValue(); - ValueType = valueType; - DisplayName = displayName; - AllowBeNull = allowBeNull; - - DataId = dataId; - TenantId = tenantId; - Description = description; - } - - public string SetDefaultValue() - { - switch (ValueType) - { - case ValueType.Array: - DefaultValue = "";// 当数据类型为数组对象时,需要前端来做转换了,约定的分隔符为英文逗号 - break; - case ValueType.Boolean: - DefaultValue = "false"; - break; - case ValueType.Date: - DefaultValue = !AllowBeNull ? DateTime.Now.ToString("yyyy-MM-dd") : ""; - break; - case ValueType.DateTime: - if (!AllowBeNull) - { - DefaultValue = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // TODO: 以当前时间作为默认值? - } - DefaultValue = !AllowBeNull ? DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") : ""; - break; - case ValueType.Numeic: - DefaultValue = "0"; - break; - case ValueType.Object: - DefaultValue = "{}"; - break; - default: - case ValueType.String: - DefaultValue = ""; - break; - } - - return DefaultValue; - } - } -} +using JetBrains.Annotations; +using System; +using Volo.Abp; +using Volo.Abp.Domain.Entities.Auditing; +using Volo.Abp.MultiTenancy; + +namespace LINGYUN.Platform.Datas +{ + public class DataItem : FullAuditedAggregateRoot, IMultiTenant + { + public virtual Guid? TenantId { get; protected set; } + + public virtual string Name { get; protected set; } + + public virtual string DisplayName { get; set; } + + public virtual string DefaultValue { get; set; } + + public virtual string Description { get; set; } + + public virtual bool AllowBeNull { get; set; } + + public virtual bool IsStatic { get; set; } + + public virtual ValueType ValueType { get; protected set; } + + public virtual Guid DataId { get; protected set; } + + protected DataItem() { } + + internal DataItem( + [NotNull] Guid id, + [NotNull] Guid dataId, + [NotNull] string name, + [NotNull] string displayName, + [CanBeNull] string defaultValue = null, + ValueType valueType = ValueType.String, + string description = "", + bool allowBeNull = true, + Guid? tenantId = null) + { + Check.NotNull(id, nameof(id)); + Check.NotNull(dataId, nameof(dataId)); + Check.NotNullOrWhiteSpace(name, nameof(name)); + Check.NotNullOrWhiteSpace(displayName, nameof(displayName)); + + Id = id; + Name = name; + DefaultValue = defaultValue ?? SetDefaultValue(); + ValueType = valueType; + DisplayName = displayName; + AllowBeNull = allowBeNull; + + DataId = dataId; + TenantId = tenantId; + Description = description; + } + + public string SetDefaultValue() + { + switch (ValueType) + { + case ValueType.Array: + DefaultValue = "";// 当数据类型为数组对象时,需要前端来做转换了,约定的分隔符为英文逗号 + break; + case ValueType.Boolean: + DefaultValue = "false"; + break; + case ValueType.Date: + DefaultValue = !AllowBeNull ? DateTime.Now.ToString("yyyy-MM-dd") : ""; + break; + case ValueType.DateTime: + if (!AllowBeNull) + { + DefaultValue = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); // TODO: 以当前时间作为默认值? + } + DefaultValue = !AllowBeNull ? DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") : ""; + break; + case ValueType.Numeic: + DefaultValue = "0"; + break; + case ValueType.Object: + DefaultValue = "{}"; + break; + default: + case ValueType.String: + DefaultValue = ""; + break; + } + + return DefaultValue; + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/IDataDictionaryDataSeeder.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/IDataDictionaryDataSeeder.cs index 9c8eb400c..6e956659d 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/IDataDictionaryDataSeeder.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Datas/IDataDictionaryDataSeeder.cs @@ -1,18 +1,19 @@ -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace LINGYUN.Platform.Datas -{ - public interface IDataDictionaryDataSeeder - { - Task SeedAsync( - string name, - string code, - string displayName, - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - CancellationToken cancellationToken = default); - } -} +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace LINGYUN.Platform.Datas +{ + public interface IDataDictionaryDataSeeder + { + Task SeedAsync( + string name, + string code, + string displayName, + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + bool isStatic = false, + CancellationToken cancellationToken = default); + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/ILayoutRepository.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/ILayoutRepository.cs index 9f09e047b..b1b0fd867 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/ILayoutRepository.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/ILayoutRepository.cs @@ -1,38 +1,38 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.Domain.Repositories; - -namespace LINGYUN.Platform.Layouts -{ - public interface ILayoutRepository : IBasicRepository - { - /// - /// 根据名称查询布局 - /// - /// - /// - /// - /// - Task FindByNameAsync( - string name, - bool includeDetails = true, - CancellationToken cancellationToken = default); - - Task GetCountAsync( - PlatformType? platformType = null, - string filter = "", - CancellationToken cancellationToken = default); - - Task> GetPagedListAsync( - PlatformType? platformType = null, - string filter = "", - string sorting = nameof(Layout.Name), - bool reverse = false, - bool includeDetails = false, - int skipCount = 0, - int maxResultCount = 10, - CancellationToken cancellationToken = default); - } -} +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.Domain.Repositories; + +namespace LINGYUN.Platform.Layouts +{ + public interface ILayoutRepository : IBasicRepository + { + /// + /// 根据名称查询布局 + /// + /// + /// + /// + /// + Task FindByNameAsync( + string name, + bool includeDetails = true, + CancellationToken cancellationToken = default); + + Task GetCountAsync( + string framework = "", + string filter = "", + CancellationToken cancellationToken = default); + + Task> GetPagedListAsync( + string framework = "", + string filter = "", + string sorting = nameof(Layout.Name), + bool reverse = false, + bool includeDetails = false, + int skipCount = 0, + int maxResultCount = 10, + CancellationToken cancellationToken = default); + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/Layout.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/Layout.cs index 32bf46ff2..f734369fd 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/Layout.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Layouts/Layout.cs @@ -1,39 +1,39 @@ -using JetBrains.Annotations; -using LINGYUN.Platform.Routes; -using System; - -namespace LINGYUN.Platform.Layouts -{ - /// - /// 布局视图实体 - /// - public class Layout : Route - { - /// - /// 所属平台 - /// - public virtual PlatformType PlatformType { get; protected set; } - /// - /// 约定的Meta采用哪种数据字典,主要是约束路由必须字段的一致性 - /// - public virtual Guid DataId { get; protected set; } - - protected Layout() { } - - public Layout( - [NotNull] Guid id, - [NotNull] string path, - [NotNull] string name, - [NotNull] string displayName, - [NotNull] Guid dataId, - [NotNull] PlatformType platformType = PlatformType.None, - [CanBeNull] string redirect = "", - [CanBeNull] string description = "", - [CanBeNull] Guid? tenantId = null) - : base(id, path, name, displayName, redirect, description, tenantId) - { - DataId = dataId; - PlatformType = platformType; - } - } -} +using JetBrains.Annotations; +using LINGYUN.Platform.Routes; +using System; + +namespace LINGYUN.Platform.Layouts +{ + /// + /// 布局视图实体 + /// + public class Layout : Route + { + /// + /// 框架 + /// + public virtual string Framework { get; protected set; } + /// + /// 约定的Meta采用哪种数据字典,主要是约束路由必须字段的一致性 + /// + public virtual Guid DataId { get; protected set; } + + protected Layout() { } + + public Layout( + [NotNull] Guid id, + [NotNull] string path, + [NotNull] string name, + [NotNull] string displayName, + [NotNull] Guid dataId, + [NotNull] string framework, + [CanBeNull] string redirect = "", + [CanBeNull] string description = "", + [CanBeNull] Guid? tenantId = null) + : base(id, path, name, displayName, redirect, description, tenantId) + { + DataId = dataId; + Framework = framework; + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/IMenuRepository.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/IMenuRepository.cs index f2fdafb60..3ef443eac 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/IMenuRepository.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/IMenuRepository.cs @@ -1,113 +1,113 @@ -using System; -using System.Collections.Generic; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.Domain.Repositories; - -namespace LINGYUN.Platform.Menus -{ - public interface IMenuRepository : IBasicRepository - { - /// - /// 根据名称查询菜单 - /// - /// - /// - /// - Task FindByNameAsync( - string menuName, - CancellationToken cancellationToken = default); - /// - /// 查询主菜单,每一个布局页创建的时候都要创建路径为 / 的主菜单 - /// - /// - /// - /// - Task FindMainAsync( - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default); - /// - /// 获取子节点 - /// - /// - /// - /// - Task> GetChildrenAsync( - Guid? parentId, - CancellationToken cancellationToken = default - ); - /// - /// 通过父菜单编码查询子菜单 - /// - /// - /// - /// - /// - Task> GetAllChildrenWithParentCodeAsync( - string code, - Guid? parentId, - CancellationToken cancellationToken = default - ); - /// - /// 查找用户可访问菜单 - /// - /// 用户标识 - /// 角色列表 - /// 平台类型 - /// - /// - Task> GetUserMenusAsync( - Guid userId, - string[] roles, - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default); - /// - /// 查找角色可访问菜单 - /// - /// 角色列表 - /// 平台类型 - /// - /// - Task> GetRoleMenusAsync( - string[] roles, - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default); - - Task GetCountAsync( - string filter = "", - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - CancellationToken cancellationToken = default); - - Task> GetListAsync( - string filter = "", - string sorting = nameof(Menu.Code), - bool reverse = false, - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - int skipCount = 0, - int maxResultCount = 10, - CancellationToken cancellationToken = default); - - Task> GetAllAsync( - string filter = "", - string sorting = nameof(Menu.Code), - bool reverse = false, - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - CancellationToken cancellationToken = default); - - Task RemoveAllRolesAsync( - Menu menu, - CancellationToken cancellationToken = default - ); - - Task RemoveAllMembersAsync( - Menu menu, - CancellationToken cancellationToken = default - ); - } -} +using System; +using System.Collections.Generic; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.Domain.Repositories; + +namespace LINGYUN.Platform.Menus +{ + public interface IMenuRepository : IBasicRepository + { + /// + /// 根据名称查询菜单 + /// + /// + /// + /// + Task FindByNameAsync( + string menuName, + CancellationToken cancellationToken = default); + /// + /// 查询主菜单,每一个布局页创建的时候都要创建路径为 / 的主菜单 + /// + /// + /// + /// + Task FindMainAsync( + string framework = "", + CancellationToken cancellationToken = default); + /// + /// 获取子节点 + /// + /// + /// + /// + Task> GetChildrenAsync( + Guid? parentId, + CancellationToken cancellationToken = default + ); + /// + /// 通过父菜单编码查询子菜单 + /// + /// + /// + /// + /// + Task> GetAllChildrenWithParentCodeAsync( + string code, + Guid? parentId, + CancellationToken cancellationToken = default + ); + /// + /// 查找用户可访问菜单 + /// + /// 用户标识 + /// 角色列表 + /// 平台类型 + /// + /// + Task> GetUserMenusAsync( + Guid userId, + string[] roles, + string framework = "", + CancellationToken cancellationToken = default); + /// + /// 查找角色可访问菜单 + /// + /// 角色列表 + /// 平台类型 + /// + /// + Task> GetRoleMenusAsync( + string[] roles, + string framework = "", + CancellationToken cancellationToken = default); + + Task GetCountAsync( + string filter = "", + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + CancellationToken cancellationToken = default); + + Task> GetListAsync( + string filter = "", + string sorting = nameof(Menu.Code), + bool reverse = false, + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + int skipCount = 0, + int maxResultCount = 10, + CancellationToken cancellationToken = default); + + Task> GetAllAsync( + string filter = "", + string sorting = nameof(Menu.Code), + bool reverse = false, + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + CancellationToken cancellationToken = default); + + Task RemoveAllRolesAsync( + Menu menu, + CancellationToken cancellationToken = default + ); + + Task RemoveAllMembersAsync( + Menu menu, + CancellationToken cancellationToken = default + ); + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/Menu.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/Menu.cs index ef248adad..d94fc6639 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/Menu.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/Menu.cs @@ -1,67 +1,67 @@ -using JetBrains.Annotations; -using LINGYUN.Platform.Routes; -using System; -using Volo.Abp; - -namespace LINGYUN.Platform.Menus -{ - /// - /// 菜单 - /// - public class Menu : Route - { - /// - /// 所属平台 - /// - public virtual PlatformType PlatformType { get; set; } - /// - /// 菜单编号 - /// - public virtual string Code { get; set; } - /// - /// 菜单布局页,Layout的路径 - /// - public virtual string Component { get; set; } - /// - /// 所属的父菜单 - /// - public virtual Guid? ParentId { get; set; } - /// - /// 所属布局标识 - /// - public virtual Guid LayoutId { get; set; } - /// - /// 公共菜单 - /// - public virtual bool IsPublic { get; set; } - protected Menu() - { - } - - public Menu( - [NotNull] Guid id, - [NotNull] Guid layoutId, - [NotNull] string path, - [NotNull] string name, - [NotNull] string code, - [NotNull] string component, - [NotNull] string displayName, - string redirect = "", - string description = "", - PlatformType platformType = PlatformType.None, - Guid? parentId = null, - Guid? tenantId = null) - : base(id, path, name, displayName, redirect, description, tenantId) - { - Check.NotNullOrWhiteSpace(code, nameof(code)); - - LayoutId = layoutId; - Code = code; - Component = component;// 下属的一级菜单的Component应该是布局页, 例如vue-admin中的 component: Layout, 其他前端框架雷同, 此处应传递布局页的路径让前端import - PlatformType = platformType; - ParentId = parentId; - - IsPublic = false; - } - } -} +using JetBrains.Annotations; +using LINGYUN.Platform.Routes; +using System; +using Volo.Abp; + +namespace LINGYUN.Platform.Menus +{ + /// + /// 菜单 + /// + public class Menu : Route + { + /// + /// 框架 + /// + public virtual string Framework { get; set; } + /// + /// 菜单编号 + /// + public virtual string Code { get; set; } + /// + /// 菜单布局页,Layout的路径 + /// + public virtual string Component { get; set; } + /// + /// 所属的父菜单 + /// + public virtual Guid? ParentId { get; set; } + /// + /// 所属布局标识 + /// + public virtual Guid LayoutId { get; set; } + /// + /// 公共菜单 + /// + public virtual bool IsPublic { get; set; } + protected Menu() + { + } + + public Menu( + [NotNull] Guid id, + [NotNull] Guid layoutId, + [NotNull] string path, + [NotNull] string name, + [NotNull] string code, + [NotNull] string component, + [NotNull] string displayName, + [NotNull] string framework, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null) + : base(id, path, name, displayName, redirect, description, tenantId) + { + Check.NotNullOrWhiteSpace(code, nameof(code)); + + LayoutId = layoutId; + Code = code; + Component = component;// 下属的一级菜单的Component应该是布局页, 例如vue-admin中的 component: Layout, 其他前端框架雷同, 此处应传递布局页的路径让前端import + Framework = framework; + ParentId = parentId; + + IsPublic = false; + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/MenuManager.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/MenuManager.cs index bb88bb5b7..4bf55997e 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/MenuManager.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Menus/MenuManager.cs @@ -1,241 +1,241 @@ -using LINGYUN.Platform.Utils; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Domain.Services; -using Volo.Abp.Uow; - -namespace LINGYUN.Platform.Menus -{ - public class MenuManager : DomainService - { - protected IUnitOfWorkManager UnitOfWorkManager => LazyServiceProvider.LazyGetRequiredService(); - - protected IMenuRepository MenuRepository { get; } - protected IUserMenuRepository UserMenuRepository { get; } - protected IRoleMenuRepository RoleMenuRepository { get; } - - public MenuManager( - IMenuRepository menuRepository, - IUserMenuRepository userMenuRepository, - IRoleMenuRepository roleMenuRepository) - { - MenuRepository = menuRepository; - UserMenuRepository = userMenuRepository; - RoleMenuRepository = roleMenuRepository; - } - - [UnitOfWork] - public virtual async Task CreateAsync( - Guid id, - Guid layoutId, - string path, - string name, - string component, - string displayName, - string redirect = "", - string description = "", - PlatformType platformType = PlatformType.None, - Guid? parentId = null, - Guid? tenantId = null, - bool isPublic = false) - { - var code = await GetNextChildCodeAsync(parentId); - if (code.Length > MenuConsts.MaxCodeLength) - { - throw new BusinessException(PlatformErrorCodes.MenuAchieveMaxDepth) - .WithData("Depth", MenuConsts.MaxDepth); - } - var menu = new Menu( - id, - layoutId, - path, - name, - code, - component, - displayName, - redirect, - description, - platformType, - parentId, - tenantId) - { - IsPublic = isPublic - }; - await ValidateMenuAsync(menu); - await MenuRepository.InsertAsync(menu); - - return menu; - } - - [UnitOfWork] - public virtual async Task UpdateAsync(Menu menu) - { - await ValidateMenuAsync(menu); - await MenuRepository.UpdateAsync(menu); - } - - [UnitOfWork] - public virtual async Task DeleteAsync(Guid id) - { - var children = await FindChildrenAsync(id, true); - - foreach (var child in children) - { - await MenuRepository.RemoveAllMembersAsync(child); - await MenuRepository.RemoveAllRolesAsync(child); - await MenuRepository.DeleteAsync(child); - } - - var menu = await MenuRepository.GetAsync(id); - await MenuRepository.RemoveAllMembersAsync(menu); - await MenuRepository.RemoveAllRolesAsync(menu); - - await MenuRepository.DeleteAsync(id); - } - - [UnitOfWork] - public virtual async Task MoveAsync(Guid id, Guid? parentId) - { - var menu = await MenuRepository.GetAsync(id); - if (menu.ParentId == parentId) - { - return; - } - - var children = await FindChildrenAsync(id, true); - - var oldCode = menu.Code; - - menu.Code = await GetNextChildCodeAsync(parentId); - menu.ParentId = parentId; - - await ValidateMenuAsync(menu); - - foreach (var child in children) - { - child.Code = CodeNumberGenerator.AppendCode(menu.Code, CodeNumberGenerator.GetRelativeCode(child.Code, oldCode)); - } - } - - public virtual async Task UserHasInMenuAsync(Guid userId, string menuName) - { - var menu = await MenuRepository.FindByNameAsync(menuName); - return false; - } - - public virtual async Task SetUserMenusAsync(Guid userId, IEnumerable menuIds) - { - using (var unitOfWork = UnitOfWorkManager.Begin()) - { - var userMenus = await UserMenuRepository.GetListByUserIdAsync(userId); - - // 移除不存在的菜单 - // TODO: 升级框架版本解决未能删除不需要菜单的问题 - // userMenus.RemoveAll(x => !menuIds.Contains(x.MenuId)); - var dels = userMenus.Where(x => !menuIds.Contains(x.MenuId)); - if (dels.Any()) - { - await UserMenuRepository.DeleteManyAsync(dels); - } - - var adds = menuIds.Where(menuId => !userMenus.Any(x => x.MenuId == menuId)); - if (adds.Any()) - { - var addInMenus = adds.Select(menuId => new UserMenu(GuidGenerator.Create(), menuId, userId, CurrentTenant.Id)); - await UserMenuRepository.InsertAsync(addInMenus); - } - - await unitOfWork.SaveChangesAsync(); - } - } - - public virtual async Task SetRoleMenusAsync(string roleName, IEnumerable menuIds) - { - using (var unitOfWork = UnitOfWorkManager.Begin()) - { - var roleMenus = await RoleMenuRepository.GetListByRoleNameAsync(roleName); - - // 移除不存在的菜单 - // TODO: 升级框架版本解决未能删除不需要菜单的问题 - // roleMenus.RemoveAll(x => !menuIds.Contains(x.MenuId)); - var dels = roleMenus.Where(x => !menuIds.Contains(x.MenuId)); - if (dels.Any()) - { - await RoleMenuRepository.DeleteManyAsync(dels); - } - - var adds = menuIds.Where(menuId => !roleMenus.Any(x => x.MenuId == menuId)); - if (adds.Any()) - { - var addInMenus = adds.Select(menuId => new RoleMenu(GuidGenerator.Create(), menuId, roleName, CurrentTenant.Id)); - await RoleMenuRepository.InsertAsync(addInMenus); - } - - await unitOfWork.SaveChangesAsync(); - } - } - - public virtual async Task GetNextChildCodeAsync(Guid? parentId) - { - var lastChild = await GetLastChildOrNullAsync(parentId); - if (lastChild != null) - { - return CodeNumberGenerator.CalculateNextCode(lastChild.Code); - } - - var parentCode = parentId != null - ? await GetCodeOrDefaultAsync(parentId.Value) - : null; - - return CodeNumberGenerator.AppendCode( - parentCode, - CodeNumberGenerator.CreateCode(1) - ); - } - - public virtual async Task GetLastChildOrNullAsync(Guid? parentId) - { - var children = await MenuRepository.GetChildrenAsync(parentId); - return children.OrderBy(c => c.Code).LastOrDefault(); - } - - public async Task> FindChildrenAsync(Guid? parentId, bool recursive = false) - { - if (!recursive) - { - return await MenuRepository.GetChildrenAsync(parentId); - } - - if (!parentId.HasValue) - { - return await MenuRepository.GetListAsync(includeDetails: true); - } - - var code = await GetCodeOrDefaultAsync(parentId.Value); - - return await MenuRepository.GetAllChildrenWithParentCodeAsync(code, parentId); - } - - public virtual async Task GetCodeOrDefaultAsync(Guid id) - { - var menu = await MenuRepository.GetAsync(id); - return menu?.Code; - } - - protected virtual async Task ValidateMenuAsync(Menu menu) - { - var siblings = (await FindChildrenAsync(menu.ParentId)) - .Where(x => x.Id != menu.Id) - .ToList(); - - if (siblings.Any(x => x.Name == menu.Name)) - { - throw new BusinessException(PlatformErrorCodes.DuplicateMenu) - .WithData("Name", menu.Name); - } - } - } -} +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Utils; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Domain.Services; +using Volo.Abp.Uow; + +namespace LINGYUN.Platform.Menus +{ + public class MenuManager : DomainService + { + protected IUnitOfWorkManager UnitOfWorkManager => LazyServiceProvider.LazyGetRequiredService(); + + protected IMenuRepository MenuRepository { get; } + protected IUserMenuRepository UserMenuRepository { get; } + protected IRoleMenuRepository RoleMenuRepository { get; } + + public MenuManager( + IMenuRepository menuRepository, + IUserMenuRepository userMenuRepository, + IRoleMenuRepository roleMenuRepository) + { + MenuRepository = menuRepository; + UserMenuRepository = userMenuRepository; + RoleMenuRepository = roleMenuRepository; + } + + [UnitOfWork] + public virtual async Task CreateAsync( + Layout layout, + Guid id, + string path, + string name, + string component, + string displayName, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + bool isPublic = false) + { + var code = await GetNextChildCodeAsync(parentId); + if (code.Length > MenuConsts.MaxCodeLength) + { + throw new BusinessException(PlatformErrorCodes.MenuAchieveMaxDepth) + .WithData("Depth", MenuConsts.MaxDepth); + } + var menu = new Menu( + id, + layout.Id, + path, + name, + code, + component, + displayName, + layout.Framework, + redirect, + description, + parentId, + tenantId) + { + IsPublic = isPublic + }; + await ValidateMenuAsync(menu); + await MenuRepository.InsertAsync(menu); + + return menu; + } + + [UnitOfWork] + public virtual async Task UpdateAsync(Menu menu) + { + await ValidateMenuAsync(menu); + await MenuRepository.UpdateAsync(menu); + } + + [UnitOfWork] + public virtual async Task DeleteAsync(Guid id) + { + var children = await FindChildrenAsync(id, true); + + foreach (var child in children) + { + await MenuRepository.RemoveAllMembersAsync(child); + await MenuRepository.RemoveAllRolesAsync(child); + await MenuRepository.DeleteAsync(child); + } + + var menu = await MenuRepository.GetAsync(id); + await MenuRepository.RemoveAllMembersAsync(menu); + await MenuRepository.RemoveAllRolesAsync(menu); + + await MenuRepository.DeleteAsync(id); + } + + [UnitOfWork] + public virtual async Task MoveAsync(Guid id, Guid? parentId) + { + var menu = await MenuRepository.GetAsync(id); + if (menu.ParentId == parentId) + { + return; + } + + var children = await FindChildrenAsync(id, true); + + var oldCode = menu.Code; + + menu.Code = await GetNextChildCodeAsync(parentId); + menu.ParentId = parentId; + + await ValidateMenuAsync(menu); + + foreach (var child in children) + { + child.Code = CodeNumberGenerator.AppendCode(menu.Code, CodeNumberGenerator.GetRelativeCode(child.Code, oldCode)); + } + } + + public virtual async Task UserHasInMenuAsync(Guid userId, string menuName) + { + var menu = await MenuRepository.FindByNameAsync(menuName); + return false; + } + + public virtual async Task SetUserMenusAsync(Guid userId, IEnumerable menuIds) + { + using (var unitOfWork = UnitOfWorkManager.Begin()) + { + var userMenus = await UserMenuRepository.GetListByUserIdAsync(userId); + + // 移除不存在的菜单 + // TODO: 升级框架版本解决未能删除不需要菜单的问题 + // userMenus.RemoveAll(x => !menuIds.Contains(x.MenuId)); + var dels = userMenus.Where(x => !menuIds.Contains(x.MenuId)); + if (dels.Any()) + { + await UserMenuRepository.DeleteManyAsync(dels); + } + + var adds = menuIds.Where(menuId => !userMenus.Any(x => x.MenuId == menuId)); + if (adds.Any()) + { + var addInMenus = adds.Select(menuId => new UserMenu(GuidGenerator.Create(), menuId, userId, CurrentTenant.Id)); + await UserMenuRepository.InsertAsync(addInMenus); + } + + await unitOfWork.SaveChangesAsync(); + } + } + + public virtual async Task SetRoleMenusAsync(string roleName, IEnumerable menuIds) + { + using (var unitOfWork = UnitOfWorkManager.Begin()) + { + var roleMenus = await RoleMenuRepository.GetListByRoleNameAsync(roleName); + + // 移除不存在的菜单 + // TODO: 升级框架版本解决未能删除不需要菜单的问题 + // roleMenus.RemoveAll(x => !menuIds.Contains(x.MenuId)); + var dels = roleMenus.Where(x => !menuIds.Contains(x.MenuId)); + if (dels.Any()) + { + await RoleMenuRepository.DeleteManyAsync(dels); + } + + var adds = menuIds.Where(menuId => !roleMenus.Any(x => x.MenuId == menuId)); + if (adds.Any()) + { + var addInMenus = adds.Select(menuId => new RoleMenu(GuidGenerator.Create(), menuId, roleName, CurrentTenant.Id)); + await RoleMenuRepository.InsertAsync(addInMenus); + } + + await unitOfWork.SaveChangesAsync(); + } + } + + public virtual async Task GetNextChildCodeAsync(Guid? parentId) + { + var lastChild = await GetLastChildOrNullAsync(parentId); + if (lastChild != null) + { + return CodeNumberGenerator.CalculateNextCode(lastChild.Code); + } + + var parentCode = parentId != null + ? await GetCodeOrDefaultAsync(parentId.Value) + : null; + + return CodeNumberGenerator.AppendCode( + parentCode, + CodeNumberGenerator.CreateCode(1) + ); + } + + public virtual async Task GetLastChildOrNullAsync(Guid? parentId) + { + var children = await MenuRepository.GetChildrenAsync(parentId); + return children.OrderBy(c => c.Code).LastOrDefault(); + } + + public async Task> FindChildrenAsync(Guid? parentId, bool recursive = false) + { + if (!recursive) + { + return await MenuRepository.GetChildrenAsync(parentId); + } + + if (!parentId.HasValue) + { + return await MenuRepository.GetListAsync(includeDetails: true); + } + + var code = await GetCodeOrDefaultAsync(parentId.Value); + + return await MenuRepository.GetAllChildrenWithParentCodeAsync(code, parentId); + } + + public virtual async Task GetCodeOrDefaultAsync(Guid id) + { + var menu = await MenuRepository.GetAsync(id); + return menu?.Code; + } + + protected virtual async Task ValidateMenuAsync(Menu menu) + { + var siblings = (await FindChildrenAsync(menu.ParentId)) + .Where(x => x.Id != menu.Id) + .ToList(); + + if (siblings.Any(x => x.Name == menu.Name)) + { + throw new BusinessException(PlatformErrorCodes.DuplicateMenu) + .WithData("Name", menu.Name); + } + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/IRouteDataSeeder.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/IRouteDataSeeder.cs index 3faf37fb0..8746db03d 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/IRouteDataSeeder.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/IRouteDataSeeder.cs @@ -1,50 +1,50 @@ -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Menus; -using System; -using System.Threading; -using System.Threading.Tasks; - -namespace LINGYUN.Platform.Routes -{ - public interface IRouteDataSeeder - { - Task SeedLayoutAsync( - string name, - string path, - string displayName, - Guid dataId, - PlatformType platformType = PlatformType.None, - string redirect = "", - string description = "", - Guid? tenantId = null, - CancellationToken cancellationToken = default); - - Task SeedMenuAsync( - Layout layout, - string name, - string path, - string code, - string component, - string displayName, - string redirect = "", - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - bool isPublic = false, - CancellationToken cancellationToken = default); - - Task SeedUserMenuAsync( - Guid userId, - Menu menu, - Guid? tenantId = null, - CancellationToken cancellationToken = default - ); - - Task SeedRoleMenuAsync( - string roleName, - Menu menu, - Guid? tenantId = null, - CancellationToken cancellationToken = default - ); - } -} +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Menus; +using System; +using System.Threading; +using System.Threading.Tasks; + +namespace LINGYUN.Platform.Routes +{ + public interface IRouteDataSeeder + { + Task SeedLayoutAsync( + string name, + string path, + string displayName, + Guid dataId, + string framework, + string redirect = "", + string description = "", + Guid? tenantId = null, + CancellationToken cancellationToken = default); + + Task SeedMenuAsync( + Layout layout, + string name, + string path, + string code, + string component, + string displayName, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + bool isPublic = false, + CancellationToken cancellationToken = default); + + Task SeedUserMenuAsync( + Guid userId, + Menu menu, + Guid? tenantId = null, + CancellationToken cancellationToken = default + ); + + Task SeedRoleMenuAsync( + string roleName, + Menu menu, + Guid? tenantId = null, + CancellationToken cancellationToken = default + ); + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/RouteDataSeeder.cs b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/RouteDataSeeder.cs index c5ec6a1a7..378349c9e 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/RouteDataSeeder.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/Routes/RouteDataSeeder.cs @@ -1,150 +1,150 @@ -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Menus; -using System; -using System.Linq; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Guids; - -namespace LINGYUN.Platform.Routes -{ - public class RouteDataSeeder : IRouteDataSeeder, ITransientDependency - { - protected IGuidGenerator GuidGenerator { get; } - protected ILayoutRepository LayoutRepository { get; } - protected IMenuRepository MenuRepository { get; } - protected IUserMenuRepository UserMenuRepository { get; } - protected IRoleMenuRepository RoleMenuRepository { get; } - - public RouteDataSeeder( - IGuidGenerator guidGenerator, - IMenuRepository menuRepository, - ILayoutRepository layoutRepository, - IUserMenuRepository userMenuRepository, - IRoleMenuRepository roleMenuRepository) - { - GuidGenerator = guidGenerator; - MenuRepository = menuRepository; - LayoutRepository = layoutRepository; - UserMenuRepository = userMenuRepository; - RoleMenuRepository = roleMenuRepository; - } - - public virtual async Task SeedLayoutAsync( - string name, - string path, - string displayName, - Guid dataId, - PlatformType platformType = PlatformType.None, - string redirect = "", - string description = "", - Guid? tenantId = null, - CancellationToken cancellationToken = default) - { - var layout = await LayoutRepository.FindByNameAsync(name, cancellationToken: cancellationToken); - if (layout == null) - { - layout = new Layout( - GuidGenerator.Create(), - path, - name, - displayName, - dataId, - platformType, - redirect, - description, - tenantId); - layout = await LayoutRepository.InsertAsync(layout, cancellationToken: cancellationToken); - } - return layout; - } - - public virtual async Task SeedMenuAsync( - Layout layout, - string name, - string path, - string code, - string component, - string displayName, - string redirect = "", - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - bool isPublic = false, - CancellationToken cancellationToken = default) - { - if (parentId.HasValue) - { - var children = await MenuRepository.GetChildrenAsync(parentId); - var childMenu = children.FirstOrDefault(x => x.Name == name); - if (childMenu != null) - { - return childMenu; - } - } - var menu = await MenuRepository.FindByNameAsync(name, cancellationToken: cancellationToken); - if (menu == null) - { - menu = new Menu( - GuidGenerator.Create(), - layout.Id, - path, - name, - code, - component, - displayName, - redirect, - description, - layout.PlatformType, - parentId, - tenantId) - { - IsPublic = isPublic - }; - - menu = await MenuRepository.InsertAsync(menu, cancellationToken: cancellationToken); - } - - return menu; - } - - public virtual async Task SeedRoleMenuAsync( - string roleName, - Menu menu, - Guid? tenantId = null, - CancellationToken cancellationToken = default) - { - if (! await RoleMenuRepository.RoleHasInMenuAsync(roleName, menu.Name, cancellationToken)) - { - var roleMenu = new RoleMenu(GuidGenerator.Create(), menu.Id, roleName, tenantId); - await RoleMenuRepository.InsertAsync(roleMenu); - - var childrens = await MenuRepository.GetChildrenAsync(menu.Id); - foreach (var children in childrens) - { - await SeedRoleMenuAsync(roleName, children, tenantId, cancellationToken); - } - } - } - - public virtual async Task SeedUserMenuAsync( - Guid userId, - Menu menu, - Guid? tenantId = null, - CancellationToken cancellationToken = default) - { - if (!await UserMenuRepository.UserHasInMenuAsync(userId, menu.Name, cancellationToken)) - { - var userMenu = new UserMenu(GuidGenerator.Create(), menu.Id, userId, tenantId); - await UserMenuRepository.InsertAsync(userMenu); - - var childrens = await MenuRepository.GetChildrenAsync(menu.Id); - foreach (var children in childrens) - { - await SeedUserMenuAsync(userId, children, tenantId, cancellationToken); - } - } - } - } -} +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Menus; +using System; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Guids; + +namespace LINGYUN.Platform.Routes +{ + public class RouteDataSeeder : IRouteDataSeeder, ITransientDependency + { + protected IGuidGenerator GuidGenerator { get; } + protected ILayoutRepository LayoutRepository { get; } + protected IMenuRepository MenuRepository { get; } + protected IUserMenuRepository UserMenuRepository { get; } + protected IRoleMenuRepository RoleMenuRepository { get; } + + public RouteDataSeeder( + IGuidGenerator guidGenerator, + IMenuRepository menuRepository, + ILayoutRepository layoutRepository, + IUserMenuRepository userMenuRepository, + IRoleMenuRepository roleMenuRepository) + { + GuidGenerator = guidGenerator; + MenuRepository = menuRepository; + LayoutRepository = layoutRepository; + UserMenuRepository = userMenuRepository; + RoleMenuRepository = roleMenuRepository; + } + + public virtual async Task SeedLayoutAsync( + string name, + string path, + string displayName, + Guid dataId, + string framework, + string redirect = "", + string description = "", + Guid? tenantId = null, + CancellationToken cancellationToken = default) + { + var layout = await LayoutRepository.FindByNameAsync(name, cancellationToken: cancellationToken); + if (layout == null) + { + layout = new Layout( + GuidGenerator.Create(), + path, + name, + displayName, + dataId, + framework, + redirect, + description, + tenantId); + layout = await LayoutRepository.InsertAsync(layout, cancellationToken: cancellationToken); + } + return layout; + } + + public virtual async Task SeedMenuAsync( + Layout layout, + string name, + string path, + string code, + string component, + string displayName, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + bool isPublic = false, + CancellationToken cancellationToken = default) + { + if (parentId.HasValue) + { + var children = await MenuRepository.GetChildrenAsync(parentId); + var childMenu = children.FirstOrDefault(x => x.Name == name); + if (childMenu != null) + { + return childMenu; + } + } + var menu = await MenuRepository.FindByNameAsync(name, cancellationToken: cancellationToken); + if (menu == null) + { + menu = new Menu( + GuidGenerator.Create(), + layout.Id, + path, + name, + code, + component, + displayName, + layout.Framework, + redirect, + description, + parentId, + tenantId) + { + IsPublic = isPublic + }; + + menu = await MenuRepository.InsertAsync(menu, cancellationToken: cancellationToken); + } + + return menu; + } + + public virtual async Task SeedRoleMenuAsync( + string roleName, + Menu menu, + Guid? tenantId = null, + CancellationToken cancellationToken = default) + { + if (! await RoleMenuRepository.RoleHasInMenuAsync(roleName, menu.Name, cancellationToken)) + { + var roleMenu = new RoleMenu(GuidGenerator.Create(), menu.Id, roleName, tenantId); + await RoleMenuRepository.InsertAsync(roleMenu); + + var childrens = await MenuRepository.GetChildrenAsync(menu.Id); + foreach (var children in childrens) + { + await SeedRoleMenuAsync(roleName, children, tenantId, cancellationToken); + } + } + } + + public virtual async Task SeedUserMenuAsync( + Guid userId, + Menu menu, + Guid? tenantId = null, + CancellationToken cancellationToken = default) + { + if (!await UserMenuRepository.UserHasInMenuAsync(userId, menu.Name, cancellationToken)) + { + var userMenu = new UserMenu(GuidGenerator.Create(), menu.Id, userId, tenantId); + await UserMenuRepository.InsertAsync(userMenu); + + var childrens = await MenuRepository.GetChildrenAsync(menu.Id); + foreach (var children in childrens) + { + await SeedUserMenuAsync(userId, children, tenantId, cancellationToken); + } + } + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/EntityFrameworkCore/PlatformDbContextModelBuilderExtensions.cs b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/EntityFrameworkCore/PlatformDbContextModelBuilderExtensions.cs index c27bf6fa6..373655b5d 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/EntityFrameworkCore/PlatformDbContextModelBuilderExtensions.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/EntityFrameworkCore/PlatformDbContextModelBuilderExtensions.cs @@ -1,249 +1,258 @@ -using JetBrains.Annotations; -using LINGYUN.Platform.Datas; -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Menus; -using LINGYUN.Platform.Routes; -using LINGYUN.Platform.Versions; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Metadata.Builders; -using System; -using Volo.Abp; -using Volo.Abp.EntityFrameworkCore.Modeling; - -namespace LINGYUN.Platform.EntityFrameworkCore -{ - public static class PlatformDbContextModelBuilderExtensions - { - public static void ConfigurePlatform( - this ModelBuilder builder, - Action optionsAction = null) - { - Check.NotNull(builder, nameof(builder)); - - var options = new PlatformModelBuilderConfigurationOptions( - PlatformDbProperties.DbTablePrefix, - PlatformDbProperties.DbSchema - ); - - optionsAction?.Invoke(options); - - builder.Entity(b => - { - b.ToTable(options.TablePrefix + "Layouts", options.Schema); - - b.ConfigureRoute(); - }); - - builder.Entity(b => - { - b.ToTable(options.TablePrefix + "Menus", options.Schema); - - b.ConfigureRoute(); - - b.Property(p => p.Component) - .HasMaxLength(MenuConsts.MaxComponentLength) - .HasColumnName(nameof(Menu.Component)) - .IsRequired(); - b.Property(p => p.Code) - .HasMaxLength(MenuConsts.MaxCodeLength) - .HasColumnName(nameof(Menu.Code)) - .IsRequired(); - }); - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "RoleMenus"); - - x.Property(p => p.RoleName) - .IsRequired() - .HasMaxLength(RoleRouteConsts.MaxRoleNameLength) - .HasColumnName(nameof(RoleMenu.RoleName)); - - x.ConfigureByConvention(); - - x.HasIndex(i => new { i.RoleName, i.MenuId }); - }); - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "UserMenus"); - - x.ConfigureByConvention(); - - x.HasIndex(i => new { i.UserId, i.MenuId }); - }); - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "Datas"); - - x.Property(p => p.Code) - .HasMaxLength(DataConsts.MaxCodeLength) - .HasColumnName(nameof(Data.Code)) - .IsRequired(); - x.Property(p => p.Name) - .HasMaxLength(DataConsts.MaxNameLength) - .HasColumnName(nameof(Data.Name)) - .IsRequired(); - x.Property(p => p.DisplayName) - .HasMaxLength(DataConsts.MaxDisplayNameLength) - .HasColumnName(nameof(Data.DisplayName)) - .IsRequired(); - x.Property(p => p.Description) - .HasMaxLength(DataConsts.MaxDescriptionLength) - .HasColumnName(nameof(Data.Description)); - - x.ConfigureByConvention(); - - x.HasMany(p => p.Items) - .WithOne() - .HasForeignKey(fk => fk.DataId) - .IsRequired(); - - x.HasIndex(i => new { i.Name }); - }); - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "DataItems"); - - x.Property(p => p.DefaultValue) - .HasMaxLength(DataItemConsts.MaxValueLength) - .HasColumnName(nameof(DataItem.DefaultValue)); - x.Property(p => p.Name) - .HasMaxLength(DataItemConsts.MaxNameLength) - .HasColumnName(nameof(DataItem.Name)) - .IsRequired(); - x.Property(p => p.DisplayName) - .HasMaxLength(DataItemConsts.MaxDisplayNameLength) - .HasColumnName(nameof(DataItem.DisplayName)) - .IsRequired(); - x.Property(p => p.Description) - .HasMaxLength(DataItemConsts.MaxDescriptionLength) - .HasColumnName(nameof(DataItem.Description)); - - x.Property(p => p.AllowBeNull).HasDefaultValue(true); - - x.ConfigureByConvention(); - - x.HasIndex(i => new { i.Name }); - }); - - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "Version", options.Schema); - - x.Property(p => p.Title) - .IsRequired() - .HasColumnName(nameof(AppVersion.Title)) - .HasMaxLength(AppVersionConsts.MaxTitleLength); - x.Property(p => p.Version) - .IsRequired() - .HasColumnName(nameof(AppVersion.Version)) - .HasMaxLength(AppVersionConsts.MaxVersionLength); - - x.Property(p => p.Description) - .HasColumnName(nameof(AppVersion.Description)) - .HasMaxLength(AppVersionConsts.MaxDescriptionLength); - - x.ConfigureByConvention(); - - x.HasIndex(i => i.Version); - - x.HasMany(p => p.Files) - .WithOne(q => q.AppVersion) - .HasPrincipalKey(pk => pk.Id) - .HasForeignKey(fk => fk.AppVersionId) - .OnDelete(DeleteBehavior.Cascade); - }); - - builder.Entity(x => - { - x.ToTable(options.TablePrefix + "VersionFile", options.Schema); - - x.Property(p => p.Name) - .IsRequired() - .HasColumnName(nameof(VersionFile.Name)) - .HasMaxLength(VersionFileConsts.MaxNameLength); - x.Property(p => p.SHA256) - .IsRequired() - .HasColumnName(nameof(VersionFile.SHA256)) - .HasMaxLength(VersionFileConsts.MaxSHA256Length); - x.Property(p => p.Version) - .IsRequired() - .HasColumnName(nameof(VersionFile.Version)) - .HasMaxLength(VersionFileConsts.MaxVersionLength); - - x.Property(p => p.Path) - .HasColumnName(nameof(VersionFile.Path)) - .HasMaxLength(VersionFileConsts.MaxPathLength); - - x.ConfigureAudited(); - x.ConfigureMultiTenant(); - - x.HasIndex(i => new { i.Path, i.Name, i.Version }).IsUnique(); - - }); - } - - public static EntityTypeBuilder ConfigureRoute( - this EntityTypeBuilder builder) - where TRoute : Route - { - builder - .Property(p => p.DisplayName) - .HasMaxLength(RouteConsts.MaxDisplayNameLength) - .HasColumnName(nameof(Route.DisplayName)) - .IsRequired(); - builder - .Property(p => p.Name) - .HasMaxLength(RouteConsts.MaxNameLength) - .HasColumnName(nameof(Route.Name)) - .IsRequired(); - builder - .Property(p => p.Path) - .HasMaxLength(RouteConsts.MaxPathLength) - .HasColumnName(nameof(Route.Path)); - builder - .Property(p => p.Redirect) - .HasMaxLength(RouteConsts.MaxRedirectLength) - .HasColumnName(nameof(Route.Redirect)); - - builder.ConfigureByConvention(); - - return builder; - } - - public static OwnedNavigationBuilder ConfigureRoute( - [NotNull] this OwnedNavigationBuilder builder, - [CanBeNull] string tablePrefix = "", - [CanBeNull] string schema = null) - where TEntity : class - where TRoute : Route - { - builder.ToTable(tablePrefix + "Routes", schema); - - builder - .Property(p => p.DisplayName) - .HasMaxLength(RouteConsts.MaxDisplayNameLength) - .HasColumnName(nameof(Route.DisplayName)) - .IsRequired(); - builder - .Property(p => p.Name) - .HasMaxLength(RouteConsts.MaxNameLength) - .HasColumnName(nameof(Route.Name)) - .IsRequired(); - builder - .Property(p => p.Path) - .HasMaxLength(RouteConsts.MaxPathLength) - .HasColumnName(nameof(Route.Path)); - builder - .Property(p => p.Redirect) - .HasMaxLength(RouteConsts.MaxRedirectLength) - .HasColumnName(nameof(Route.Redirect)); - - return builder; - } - } -} +using JetBrains.Annotations; +using LINGYUN.Platform.Datas; +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Menus; +using LINGYUN.Platform.Routes; +using LINGYUN.Platform.Versions; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Metadata.Builders; +using System; +using Volo.Abp; +using Volo.Abp.EntityFrameworkCore.Modeling; + +namespace LINGYUN.Platform.EntityFrameworkCore +{ + public static class PlatformDbContextModelBuilderExtensions + { + public static void ConfigurePlatform( + this ModelBuilder builder, + Action optionsAction = null) + { + Check.NotNull(builder, nameof(builder)); + + var options = new PlatformModelBuilderConfigurationOptions( + PlatformDbProperties.DbTablePrefix, + PlatformDbProperties.DbSchema + ); + + optionsAction?.Invoke(options); + + builder.Entity(b => + { + b.ToTable(options.TablePrefix + "Layouts", options.Schema); + + b.Property(p => p.Framework) + .HasMaxLength(LayoutConsts.MaxFrameworkLength) + .HasColumnName(nameof(Layout.Framework)) + .IsRequired(); + + b.ConfigureRoute(); + }); + + builder.Entity(b => + { + b.ToTable(options.TablePrefix + "Menus", options.Schema); + + b.ConfigureRoute(); + + b.Property(p => p.Framework) + .HasMaxLength(LayoutConsts.MaxFrameworkLength) + .HasColumnName(nameof(Menu.Framework)) + .IsRequired(); + b.Property(p => p.Component) + .HasMaxLength(MenuConsts.MaxComponentLength) + .HasColumnName(nameof(Menu.Component)) + .IsRequired(); + b.Property(p => p.Code) + .HasMaxLength(MenuConsts.MaxCodeLength) + .HasColumnName(nameof(Menu.Code)) + .IsRequired(); + }); + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "RoleMenus"); + + x.Property(p => p.RoleName) + .IsRequired() + .HasMaxLength(RoleRouteConsts.MaxRoleNameLength) + .HasColumnName(nameof(RoleMenu.RoleName)); + + x.ConfigureByConvention(); + + x.HasIndex(i => new { i.RoleName, i.MenuId }); + }); + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "UserMenus"); + + x.ConfigureByConvention(); + + x.HasIndex(i => new { i.UserId, i.MenuId }); + }); + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "Datas"); + + x.Property(p => p.Code) + .HasMaxLength(DataConsts.MaxCodeLength) + .HasColumnName(nameof(Data.Code)) + .IsRequired(); + x.Property(p => p.Name) + .HasMaxLength(DataConsts.MaxNameLength) + .HasColumnName(nameof(Data.Name)) + .IsRequired(); + x.Property(p => p.DisplayName) + .HasMaxLength(DataConsts.MaxDisplayNameLength) + .HasColumnName(nameof(Data.DisplayName)) + .IsRequired(); + x.Property(p => p.Description) + .HasMaxLength(DataConsts.MaxDescriptionLength) + .HasColumnName(nameof(Data.Description)); + + x.ConfigureByConvention(); + + x.HasMany(p => p.Items) + .WithOne() + .HasForeignKey(fk => fk.DataId) + .IsRequired(); + + x.HasIndex(i => new { i.Name }); + }); + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "DataItems"); + + x.Property(p => p.DefaultValue) + .HasMaxLength(DataItemConsts.MaxValueLength) + .HasColumnName(nameof(DataItem.DefaultValue)); + x.Property(p => p.Name) + .HasMaxLength(DataItemConsts.MaxNameLength) + .HasColumnName(nameof(DataItem.Name)) + .IsRequired(); + x.Property(p => p.DisplayName) + .HasMaxLength(DataItemConsts.MaxDisplayNameLength) + .HasColumnName(nameof(DataItem.DisplayName)) + .IsRequired(); + x.Property(p => p.Description) + .HasMaxLength(DataItemConsts.MaxDescriptionLength) + .HasColumnName(nameof(DataItem.Description)); + + x.Property(p => p.AllowBeNull).HasDefaultValue(true); + + x.ConfigureByConvention(); + + x.HasIndex(i => new { i.Name }); + }); + + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "Version", options.Schema); + + x.Property(p => p.Title) + .IsRequired() + .HasColumnName(nameof(AppVersion.Title)) + .HasMaxLength(AppVersionConsts.MaxTitleLength); + x.Property(p => p.Version) + .IsRequired() + .HasColumnName(nameof(AppVersion.Version)) + .HasMaxLength(AppVersionConsts.MaxVersionLength); + + x.Property(p => p.Description) + .HasColumnName(nameof(AppVersion.Description)) + .HasMaxLength(AppVersionConsts.MaxDescriptionLength); + + x.ConfigureByConvention(); + + x.HasIndex(i => i.Version); + + x.HasMany(p => p.Files) + .WithOne(q => q.AppVersion) + .HasPrincipalKey(pk => pk.Id) + .HasForeignKey(fk => fk.AppVersionId) + .OnDelete(DeleteBehavior.Cascade); + }); + + builder.Entity(x => + { + x.ToTable(options.TablePrefix + "VersionFile", options.Schema); + + x.Property(p => p.Name) + .IsRequired() + .HasColumnName(nameof(VersionFile.Name)) + .HasMaxLength(VersionFileConsts.MaxNameLength); + x.Property(p => p.SHA256) + .IsRequired() + .HasColumnName(nameof(VersionFile.SHA256)) + .HasMaxLength(VersionFileConsts.MaxSHA256Length); + x.Property(p => p.Version) + .IsRequired() + .HasColumnName(nameof(VersionFile.Version)) + .HasMaxLength(VersionFileConsts.MaxVersionLength); + + x.Property(p => p.Path) + .HasColumnName(nameof(VersionFile.Path)) + .HasMaxLength(VersionFileConsts.MaxPathLength); + + x.ConfigureAudited(); + x.ConfigureMultiTenant(); + + x.HasIndex(i => new { i.Path, i.Name, i.Version }).IsUnique(); + + }); + } + + public static EntityTypeBuilder ConfigureRoute( + this EntityTypeBuilder builder) + where TRoute : Route + { + builder + .Property(p => p.DisplayName) + .HasMaxLength(RouteConsts.MaxDisplayNameLength) + .HasColumnName(nameof(Route.DisplayName)) + .IsRequired(); + builder + .Property(p => p.Name) + .HasMaxLength(RouteConsts.MaxNameLength) + .HasColumnName(nameof(Route.Name)) + .IsRequired(); + builder + .Property(p => p.Path) + .HasMaxLength(RouteConsts.MaxPathLength) + .HasColumnName(nameof(Route.Path)); + builder + .Property(p => p.Redirect) + .HasMaxLength(RouteConsts.MaxRedirectLength) + .HasColumnName(nameof(Route.Redirect)); + + builder.ConfigureByConvention(); + + return builder; + } + + public static OwnedNavigationBuilder ConfigureRoute( + [NotNull] this OwnedNavigationBuilder builder, + [CanBeNull] string tablePrefix = "", + [CanBeNull] string schema = null) + where TEntity : class + where TRoute : Route + { + builder.ToTable(tablePrefix + "Routes", schema); + + builder + .Property(p => p.DisplayName) + .HasMaxLength(RouteConsts.MaxDisplayNameLength) + .HasColumnName(nameof(Route.DisplayName)) + .IsRequired(); + builder + .Property(p => p.Name) + .HasMaxLength(RouteConsts.MaxNameLength) + .HasColumnName(nameof(Route.Name)) + .IsRequired(); + builder + .Property(p => p.Path) + .HasMaxLength(RouteConsts.MaxPathLength) + .HasColumnName(nameof(Route.Path)); + builder + .Property(p => p.Redirect) + .HasMaxLength(RouteConsts.MaxRedirectLength) + .HasColumnName(nameof(Route.Redirect)); + + return builder; + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Layouts/EfCoreLayoutRepository.cs b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Layouts/EfCoreLayoutRepository.cs index 598535684..7efb4d36c 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Layouts/EfCoreLayoutRepository.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Layouts/EfCoreLayoutRepository.cs @@ -1,80 +1,80 @@ -using LINGYUN.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Dynamic.Core; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.Domain.Repositories.EntityFrameworkCore; -using Volo.Abp.EntityFrameworkCore; - -namespace LINGYUN.Platform.Layouts -{ - public class EfCoreLayoutRepository : EfCoreRepository, ILayoutRepository - { - public EfCoreLayoutRepository(IDbContextProvider dbContextProvider) - : base(dbContextProvider) - { - } - - public virtual async Task FindByNameAsync( - string name, - bool includeDetails = false, - CancellationToken cancellationToken = default) - { - return await (await GetDbSetAsync()) - .IncludeDetails(includeDetails) - .Where(x => x.Name == name) - .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task GetCountAsync( - PlatformType? platformType = null, - string filter = "", - CancellationToken cancellationToken = default) - { - return await (await GetDbSetAsync()) - .WhereIf(platformType.HasValue, x => x.PlatformType == platformType.Value) - .WhereIf(!filter.IsNullOrWhiteSpace(), x => - x.Name.Contains(filter) || x.DisplayName.Contains(filter) || - x.Description.Contains(filter) || x.Redirect.Contains(filter)) - .CountAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetPagedListAsync( - PlatformType? platformType = null, - string filter = "", - string sorting = nameof(Layout.Name), - bool reverse = false, - bool includeDetails = false, - int skipCount = 0, - int maxResultCount = 10, - CancellationToken cancellationToken = default) - { - sorting ??= nameof(Layout.Name); - sorting = reverse ? sorting + " DESC" : sorting; - - return await (await GetDbSetAsync()) - .IncludeDetails(includeDetails) - .WhereIf(platformType.HasValue, x => x.PlatformType == platformType.Value) - .WhereIf(!filter.IsNullOrWhiteSpace(), x => - x.Name.Contains(filter) || x.DisplayName.Contains(filter) || - x.Description.Contains(filter) || x.Redirect.Contains(filter)) - .OrderBy(sorting) - .PageBy(skipCount, maxResultCount) - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public override async Task> WithDetailsAsync() - { - return (await GetQueryableAsync()).IncludeDetails(); - } - - [System.Obsolete("将在abp框架移除之后删除")] - public override IQueryable WithDetails() - { - return GetQueryable().IncludeDetails(); - } - } -} +using LINGYUN.Platform.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Linq.Dynamic.Core; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.Domain.Repositories.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore; + +namespace LINGYUN.Platform.Layouts +{ + public class EfCoreLayoutRepository : EfCoreRepository, ILayoutRepository + { + public EfCoreLayoutRepository(IDbContextProvider dbContextProvider) + : base(dbContextProvider) + { + } + + public virtual async Task FindByNameAsync( + string name, + bool includeDetails = false, + CancellationToken cancellationToken = default) + { + return await (await GetDbSetAsync()) + .IncludeDetails(includeDetails) + .Where(x => x.Name == name) + .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task GetCountAsync( + string framework = "", + string filter = "", + CancellationToken cancellationToken = default) + { + return await (await GetDbSetAsync()) + .WhereIf(!framework.IsNullOrWhiteSpace(), x => x.Framework.Equals(framework)) + .WhereIf(!filter.IsNullOrWhiteSpace(), x => + x.Name.Contains(filter) || x.DisplayName.Contains(filter) || + x.Description.Contains(filter) || x.Redirect.Contains(filter)) + .CountAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetPagedListAsync( + string framework = "", + string filter = "", + string sorting = nameof(Layout.Name), + bool reverse = false, + bool includeDetails = false, + int skipCount = 0, + int maxResultCount = 10, + CancellationToken cancellationToken = default) + { + sorting ??= nameof(Layout.Name); + sorting = reverse ? sorting + " DESC" : sorting; + + return await (await GetDbSetAsync()) + .IncludeDetails(includeDetails) + .WhereIf(!framework.IsNullOrWhiteSpace(), x => x.Framework.Equals(framework)) + .WhereIf(!filter.IsNullOrWhiteSpace(), x => + x.Name.Contains(filter) || x.DisplayName.Contains(filter) || + x.Description.Contains(filter) || x.Redirect.Contains(filter)) + .OrderBy(sorting) + .PageBy(skipCount, maxResultCount) + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public override async Task> WithDetailsAsync() + { + return (await GetQueryableAsync()).IncludeDetails(); + } + + [System.Obsolete("将在abp框架移除之后删除")] + public override IQueryable WithDetails() + { + return GetQueryable().IncludeDetails(); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs index 3dc6e67c0..46593fee7 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.EntityFrameworkCore/LINGYUN/Platform/Menus/EfCoreMenuRepository.cs @@ -1,252 +1,252 @@ -using LINGYUN.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Linq.Dynamic.Core; -using System.Threading; -using System.Threading.Tasks; -using Volo.Abp.Domain.Repositories.EntityFrameworkCore; -using Volo.Abp.EntityFrameworkCore; - -namespace LINGYUN.Platform.Menus -{ - public class EfCoreMenuRepository : EfCoreRepository, IMenuRepository - { - public EfCoreMenuRepository( - IDbContextProvider dbContextProvider) - : base(dbContextProvider) - { - } - - public virtual async Task UserHasInMenuAsync( - Guid userId, - string menuName, - CancellationToken cancellationToken = default) - { - var menuQuery = (await GetDbSetAsync()).Where(x => x.Name == menuName); - - return await (from menu in menuQuery - join userMenu in (await GetDbContextAsync()).Set() - on menu.Id equals userMenu.MenuId - select userMenu) - .AnyAsync(x => x.UserId == userId, GetCancellationToken(cancellationToken)); - } - - public virtual async Task RoleHasInMenuAsync( - string roleName, - string menuName, - CancellationToken cancellationToken = default) - { - var menuQuery = (await GetDbSetAsync()).Where(x => x.Name == menuName); - - return await (from menu in menuQuery - join roleMenu in (await GetDbContextAsync()).Set() - on menu.Id equals roleMenu.MenuId - select roleMenu) - .AnyAsync(x => x.RoleName == roleName, GetCancellationToken(cancellationToken)); - } - - public virtual async Task FindByNameAsync( - string menuName, - CancellationToken cancellationToken = default) - { - return await (await GetDbSetAsync()) - .Where(x => x.Name == menuName) - .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task FindMainAsync( - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default) - { - return await (await GetDbSetAsync()) - .Where(menu => menu.PlatformType.HasFlag(platformType) && menu.Path == "/") - .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetRoleMenusAsync( - string[] roles, - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default) - { - var menuQuery = (await GetDbSetAsync()) - .Where(menu => menu.PlatformType.HasFlag(platformType)); - - var roleMenuQuery = (await GetDbContextAsync()).Set() - .Where(menu => roles.Contains(menu.RoleName)); - - return await (from menu in menuQuery - join roleMenu in roleMenuQuery - on menu.Id equals roleMenu.MenuId - select menu) - .Union(menuQuery.Where(x => x.IsPublic)) - .Distinct() - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetUserMenusAsync( - Guid userId, - string[] roles, - PlatformType platformType = PlatformType.None, - CancellationToken cancellationToken = default) - { - var menuQuery = (await GetDbSetAsync()) - .Where(menu => menu.PlatformType.HasFlag(platformType)); - - var dbContext = await GetDbContextAsync(); - var userMenuQuery = from userMenu in dbContext.Set() - join menu in menuQuery - on userMenu.MenuId equals menu.Id - where userMenu.UserId == userId - select menu; - - if (roles != null && roles.Length > 0) - { - var roleMenuQuery = from roleMenu in dbContext.Set() - join menu in menuQuery - on roleMenu.MenuId equals menu.Id - where roles.Contains(roleMenu.RoleName) - select menu; ; - - return await userMenuQuery - .Union(roleMenuQuery) - .Union(menuQuery.Where(x => x.IsPublic)) - .Distinct() - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - return await userMenuQuery - .Union(menuQuery.Where(x => x.IsPublic)) - .Distinct() - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetChildrenAsync( - Guid? parentId, - CancellationToken cancellationToken = default - ) - { - return await (await GetDbSetAsync()) - .Where(x => x.ParentId == parentId) - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetAllChildrenWithParentCodeAsync( - string code, - Guid? parentId, - CancellationToken cancellationToken = default - ) - { - return await (await GetDbSetAsync()) - .Where(x => x.Code.StartsWith(code) && x.Id != parentId.Value) - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetAllAsync( - string filter = "", - string sorting = nameof(Menu.Code), - bool reverse = false, - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - CancellationToken cancellationToken = default) - { - sorting ??= nameof(Menu.Code); - sorting = reverse ? sorting + " DESC" : sorting; - - return await (await GetDbSetAsync()) - .WhereIf(parentId.HasValue, x => x.ParentId == parentId) - .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) - .WhereIf(platformType.HasValue, menu => menu.PlatformType.HasFlag(platformType.Value)) - .WhereIf(!filter.IsNullOrWhiteSpace(), menu => - menu.Path.Contains(filter) || menu.Name.Contains(filter) || - menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || - menu.Redirect.Contains(filter)) - .OrderBy(sorting) - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task GetCountAsync( - string filter = "", - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - CancellationToken cancellationToken = default) - { - return await (await GetDbSetAsync()) - .WhereIf(parentId.HasValue, x => x.ParentId == parentId) - .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) - .WhereIf(platformType.HasValue, menu => menu.PlatformType.HasFlag(platformType.Value)) - .WhereIf(!filter.IsNullOrWhiteSpace(), menu => - menu.Path.Contains(filter) || menu.Name.Contains(filter) || - menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || - menu.Redirect.Contains(filter)) - .CountAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task> GetListAsync( - string filter = "", - string sorting = nameof(Menu.Code), - bool reverse = false, - PlatformType? platformType = null, - Guid? parentId = null, - Guid? layoutId = null, - int skipCount = 0, - int maxResultCount = 10, - CancellationToken cancellationToken = default) - { - sorting ??= nameof(Menu.Code); - sorting = reverse ? sorting + " DESC" : sorting; - - return await (await GetDbSetAsync()) - .WhereIf(parentId.HasValue, x => x.ParentId == parentId) - .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) - .WhereIf(platformType.HasValue, menu => menu.PlatformType.HasFlag(platformType.Value)) - .WhereIf(!filter.IsNullOrWhiteSpace(), menu => - menu.Path.Contains(filter) || menu.Name.Contains(filter) || - menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || - menu.Redirect.Contains(filter)) - .OrderBy(sorting) - .PageBy(skipCount, maxResultCount) - .ToListAsync(GetCancellationToken(cancellationToken)); - } - - public virtual async Task RemoveAllRolesAsync( - Menu menu, - CancellationToken cancellationToken = default - ) - { - var dbContext = await GetDbContextAsync(); - var rolesQuery = await dbContext.Set() - .Where(q => q.MenuId == menu.Id) - .ToListAsync(GetCancellationToken(cancellationToken)); - - dbContext.Set().RemoveRange(rolesQuery); - } - - public virtual async Task RemoveAllMembersAsync( - Menu menu, - CancellationToken cancellationToken = default - ) - { - var dbContext = await GetDbContextAsync(); - var membersQuery = await dbContext.Set() - .Where(q => q.MenuId == menu.Id) - .ToListAsync(GetCancellationToken(cancellationToken)); - - dbContext.Set().RemoveRange(membersQuery); - } - - public override async Task> WithDetailsAsync() - { - return (await GetQueryableAsync()).IncludeDetails(); - } - - [System.Obsolete("将在abp框架移除之后删除")] - public override IQueryable WithDetails() - { - return GetQueryable().IncludeDetails(); - } - } -} +using LINGYUN.Platform.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Linq.Dynamic.Core; +using System.Threading; +using System.Threading.Tasks; +using Volo.Abp.Domain.Repositories.EntityFrameworkCore; +using Volo.Abp.EntityFrameworkCore; + +namespace LINGYUN.Platform.Menus +{ + public class EfCoreMenuRepository : EfCoreRepository, IMenuRepository + { + public EfCoreMenuRepository( + IDbContextProvider dbContextProvider) + : base(dbContextProvider) + { + } + + public virtual async Task UserHasInMenuAsync( + Guid userId, + string menuName, + CancellationToken cancellationToken = default) + { + var menuQuery = (await GetDbSetAsync()).Where(x => x.Name == menuName); + + return await (from menu in menuQuery + join userMenu in (await GetDbContextAsync()).Set() + on menu.Id equals userMenu.MenuId + select userMenu) + .AnyAsync(x => x.UserId == userId, GetCancellationToken(cancellationToken)); + } + + public virtual async Task RoleHasInMenuAsync( + string roleName, + string menuName, + CancellationToken cancellationToken = default) + { + var menuQuery = (await GetDbSetAsync()).Where(x => x.Name == menuName); + + return await (from menu in menuQuery + join roleMenu in (await GetDbContextAsync()).Set() + on menu.Id equals roleMenu.MenuId + select roleMenu) + .AnyAsync(x => x.RoleName == roleName, GetCancellationToken(cancellationToken)); + } + + public virtual async Task FindByNameAsync( + string menuName, + CancellationToken cancellationToken = default) + { + return await (await GetDbSetAsync()) + .Where(x => x.Name == menuName) + .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task FindMainAsync( + string framework = "", + CancellationToken cancellationToken = default) + { + return await (await GetDbSetAsync()) + .Where(menu => menu.Framework.Equals(framework) && menu.Path == "/") + .FirstOrDefaultAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetRoleMenusAsync( + string[] roles, + string framework = "", + CancellationToken cancellationToken = default) + { + var menuQuery = (await GetDbSetAsync()) + .Where(menu => menu.Framework.Equals(framework)); + + var roleMenuQuery = (await GetDbContextAsync()).Set() + .Where(menu => roles.Contains(menu.RoleName)); + + return await (from menu in menuQuery + join roleMenu in roleMenuQuery + on menu.Id equals roleMenu.MenuId + select menu) + .Union(menuQuery.Where(x => x.IsPublic)) + .Distinct() + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetUserMenusAsync( + Guid userId, + string[] roles, + string framework = "", + CancellationToken cancellationToken = default) + { + var menuQuery = (await GetDbSetAsync()) + .Where(menu => menu.Framework.Equals(framework)); + + var dbContext = await GetDbContextAsync(); + var userMenuQuery = from userMenu in dbContext.Set() + join menu in menuQuery + on userMenu.MenuId equals menu.Id + where userMenu.UserId == userId + select menu; + + if (roles != null && roles.Length > 0) + { + var roleMenuQuery = from roleMenu in dbContext.Set() + join menu in menuQuery + on roleMenu.MenuId equals menu.Id + where roles.Contains(roleMenu.RoleName) + select menu; ; + + return await userMenuQuery + .Union(roleMenuQuery) + .Union(menuQuery.Where(x => x.IsPublic)) + .Distinct() + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + return await userMenuQuery + .Union(menuQuery.Where(x => x.IsPublic)) + .Distinct() + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetChildrenAsync( + Guid? parentId, + CancellationToken cancellationToken = default + ) + { + return await (await GetDbSetAsync()) + .Where(x => x.ParentId == parentId) + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetAllChildrenWithParentCodeAsync( + string code, + Guid? parentId, + CancellationToken cancellationToken = default + ) + { + return await (await GetDbSetAsync()) + .Where(x => x.Code.StartsWith(code) && x.Id != parentId.Value) + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetAllAsync( + string filter = "", + string sorting = nameof(Menu.Code), + bool reverse = false, + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + CancellationToken cancellationToken = default) + { + sorting ??= nameof(Menu.Code); + sorting = reverse ? sorting + " DESC" : sorting; + + return await (await GetDbSetAsync()) + .WhereIf(parentId.HasValue, x => x.ParentId == parentId) + .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) + .WhereIf(!framework.IsNullOrWhiteSpace(), menu => menu.Framework.Equals(framework)) + .WhereIf(!filter.IsNullOrWhiteSpace(), menu => + menu.Path.Contains(filter) || menu.Name.Contains(filter) || + menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || + menu.Redirect.Contains(filter)) + .OrderBy(sorting) + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task GetCountAsync( + string filter = "", + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + CancellationToken cancellationToken = default) + { + return await (await GetDbSetAsync()) + .WhereIf(parentId.HasValue, x => x.ParentId == parentId) + .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) + .WhereIf(!framework.IsNullOrWhiteSpace(), menu => menu.Framework.Equals(framework)) + .WhereIf(!filter.IsNullOrWhiteSpace(), menu => + menu.Path.Contains(filter) || menu.Name.Contains(filter) || + menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || + menu.Redirect.Contains(filter)) + .CountAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task> GetListAsync( + string filter = "", + string sorting = nameof(Menu.Code), + bool reverse = false, + string framework = "", + Guid? parentId = null, + Guid? layoutId = null, + int skipCount = 0, + int maxResultCount = 10, + CancellationToken cancellationToken = default) + { + sorting ??= nameof(Menu.Code); + sorting = reverse ? sorting + " DESC" : sorting; + + return await (await GetDbSetAsync()) + .WhereIf(parentId.HasValue, x => x.ParentId == parentId) + .WhereIf(layoutId.HasValue, x => x.LayoutId == layoutId) + .WhereIf(!framework.IsNullOrWhiteSpace(), menu => menu.Framework.Equals(framework)) + .WhereIf(!filter.IsNullOrWhiteSpace(), menu => + menu.Path.Contains(filter) || menu.Name.Contains(filter) || + menu.DisplayName.Contains(filter) || menu.Description.Contains(filter) || + menu.Redirect.Contains(filter)) + .OrderBy(sorting) + .PageBy(skipCount, maxResultCount) + .ToListAsync(GetCancellationToken(cancellationToken)); + } + + public virtual async Task RemoveAllRolesAsync( + Menu menu, + CancellationToken cancellationToken = default + ) + { + var dbContext = await GetDbContextAsync(); + var rolesQuery = await dbContext.Set() + .Where(q => q.MenuId == menu.Id) + .ToListAsync(GetCancellationToken(cancellationToken)); + + dbContext.Set().RemoveRange(rolesQuery); + } + + public virtual async Task RemoveAllMembersAsync( + Menu menu, + CancellationToken cancellationToken = default + ) + { + var dbContext = await GetDbContextAsync(); + var membersQuery = await dbContext.Set() + .Where(q => q.MenuId == menu.Id) + .ToListAsync(GetCancellationToken(cancellationToken)); + + dbContext.Set().RemoveRange(membersQuery); + } + + public override async Task> WithDetailsAsync() + { + return (await GetQueryableAsync()).IncludeDetails(); + } + + [System.Obsolete("将在abp框架移除之后删除")] + public override IQueryable WithDetails() + { + return GetQueryable().IncludeDetails(); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Datas/DataController.cs b/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Datas/DataController.cs index 62bc131f0..35c53d131 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Datas/DataController.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Datas/DataController.cs @@ -1,84 +1,91 @@ -using Microsoft.AspNetCore.Mvc; -using System; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Application.Dtos; -using Volo.Abp.AspNetCore.Mvc; - -namespace LINGYUN.Platform.Datas -{ - [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] - [Area("platform")] - [Route("api/platform/datas")] - public class DataController : AbpController, IDataAppService - { - protected IDataAppService DataAppService { get; } - - public DataController( - IDataAppService dataAppService) - { - DataAppService = dataAppService; - } - - [HttpPost] - public virtual async Task CreateAsync(DataCreateDto input) - { - return await DataAppService.CreateAsync(input); - } - - [HttpPost] - [Route("{id}/items")] - public virtual async Task CreateItemAsync(Guid id, DataItemCreateDto input) - { - await DataAppService.CreateItemAsync(id, input); - } - - [HttpDelete] - [Route("{id}")] - public virtual async Task DeleteAsync(Guid id) - { - await DataAppService.DeleteAsync(id); - } - - [HttpDelete] - [Route("{id}/items/{name}")] - public virtual async Task DeleteItemAsync(Guid id, string name) - { - await DataAppService.DeleteItemAsync(id, name); - } - - [HttpGet] - [Route("{id}")] - public virtual async Task GetAsync(Guid id) - { - return await DataAppService.GetAsync(id); - } - - [HttpGet] - [Route("all")] - public virtual async Task> GetAllAsync() - { - return await DataAppService.GetAllAsync(); - } - - [HttpGet] - public virtual async Task> GetListAsync(GetDataListInput input) - { - return await DataAppService.GetListAsync(input); - } - - [HttpPut] - [Route("{id}")] - public virtual async Task UpdateAsync(Guid id, DataUpdateDto input) - { - return await DataAppService.UpdateAsync(id, input); - } - - [HttpPut] - [Route("{id}/items/{name}")] - public virtual async Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input) - { - await DataAppService.UpdateItemAsync(id, name, input); - } - } -} +using Microsoft.AspNetCore.Mvc; +using System; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.AspNetCore.Mvc; + +namespace LINGYUN.Platform.Datas +{ + [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] + [Area("platform")] + [Route("api/platform/datas")] + public class DataController : AbpController, IDataAppService + { + protected IDataAppService DataAppService { get; } + + public DataController( + IDataAppService dataAppService) + { + DataAppService = dataAppService; + } + + [HttpPost] + public virtual async Task CreateAsync(DataCreateDto input) + { + return await DataAppService.CreateAsync(input); + } + + [HttpPost] + [Route("{id}/items")] + public virtual async Task CreateItemAsync(Guid id, DataItemCreateDto input) + { + await DataAppService.CreateItemAsync(id, input); + } + + [HttpDelete] + [Route("{id}")] + public virtual async Task DeleteAsync(Guid id) + { + await DataAppService.DeleteAsync(id); + } + + [HttpDelete] + [Route("{id}/items/{name}")] + public virtual async Task DeleteItemAsync(Guid id, string name) + { + await DataAppService.DeleteItemAsync(id, name); + } + + [HttpGet] + [Route("by-name/{name}")] + public virtual async Task GetAsync(string name) + { + return await DataAppService.GetAsync(name); + } + + [HttpGet] + [Route("{id}")] + public virtual async Task GetAsync(Guid id) + { + return await DataAppService.GetAsync(id); + } + + [HttpGet] + [Route("all")] + public virtual async Task> GetAllAsync() + { + return await DataAppService.GetAllAsync(); + } + + [HttpGet] + public virtual async Task> GetListAsync(GetDataListInput input) + { + return await DataAppService.GetListAsync(input); + } + + [HttpPut] + [Route("{id}")] + public virtual async Task UpdateAsync(Guid id, DataUpdateDto input) + { + return await DataAppService.UpdateAsync(id, input); + } + + [HttpPut] + [Route("{id}/items/{name}")] + public virtual async Task UpdateItemAsync(Guid id, string name, DataItemUpdateDto input) + { + await DataAppService.UpdateItemAsync(id, name, input); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Menus/MenuController.cs b/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Menus/MenuController.cs index 2c2e42754..5b11c9458 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Menus/MenuController.cs +++ b/aspnet-core/modules/platform/LINGYUN.Platform.HttpApi/LINGYUN/Platform/Menus/MenuController.cs @@ -1,128 +1,128 @@ -using Microsoft.AspNetCore.Mvc; -using System; -using System.Threading.Tasks; -using Volo.Abp; -using Volo.Abp.Application.Dtos; -using Volo.Abp.AspNetCore.Mvc; -using Volo.Abp.Identity; - -namespace LINGYUN.Platform.Menus -{ - [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] - [Area("platform")] - [Route("api/platform/menus")] - public class MenuController : AbpController, IMenuAppService - { - protected IMenuAppService MenuAppService { get; } - protected IUserRoleFinder UserRoleFinder { get; } - - public MenuController( - IMenuAppService menuAppService, - IUserRoleFinder userRoleFinder) - { - MenuAppService = menuAppService; - UserRoleFinder = userRoleFinder; - } - - [HttpGet] - [Route("by-current-user")] - public virtual async Task> GetCurrentUserMenuListAsync(GetMenuInput input) - { - return await MenuAppService.GetCurrentUserMenuListAsync(input); - } - - [HttpGet] - [Route("{id}")] - public virtual async Task GetAsync(Guid id) - { - return await MenuAppService.GetAsync(id); - } - - [HttpGet] - [Route("all")] - public virtual async Task> GetAllAsync(MenuGetAllInput input) - { - return await MenuAppService.GetAllAsync(input); - } - - [HttpGet] - public virtual async Task> GetListAsync(MenuGetListInput input) - { - return await MenuAppService.GetListAsync(input); - } - - [HttpPost] - public virtual async Task CreateAsync(MenuCreateDto input) - { - return await MenuAppService.CreateAsync(input); - } - - [HttpPut] - [Route("{id}")] - public virtual async Task UpdateAsync(Guid id, MenuUpdateDto input) - { - return await MenuAppService.UpdateAsync(id, input); - } - - [HttpDelete] - [Route("{id}")] - public virtual async Task DeleteAsync(Guid id) - { - await MenuAppService.DeleteAsync(id); - } - - [HttpPut] - [Route("by-user")] - public virtual async Task SetUserMenusAsync(UserMenuInput input) - { - await MenuAppService.SetUserMenusAsync(input); - } - - [HttpGet] - [Route("by-user")] - public virtual async Task> GetUserMenuListAsync(MenuGetByUserInput input) - { - return await MenuAppService.GetUserMenuListAsync(input); - } - - [HttpGet] - [Route("by-user/{userId}/{platformType}")] - public virtual async Task> GetUserMenuListAsync(Guid userId, PlatformType platformType) - { - var userRoles = await UserRoleFinder.GetRolesAsync(userId); - - var getMenuByUser = new MenuGetByUserInput - { - UserId = userId, - Roles = userRoles, - PlatformType = platformType - }; - return await MenuAppService.GetUserMenuListAsync(getMenuByUser); - } - - [HttpPut] - [Route("by-role")] - public virtual async Task SetRoleMenusAsync(RoleMenuInput input) - { - await MenuAppService.SetRoleMenusAsync(input); - } - - [HttpGet] - [Route("by-role")] - public virtual async Task> GetRoleMenuListAsync(MenuGetByRoleInput input) - { - return await MenuAppService.GetRoleMenuListAsync(input); - } - - [HttpGet] - [Route("by-role/{role}/{platformType}")] - public virtual async Task> GetRoleMenuListAsync(string role, PlatformType platformType) - { - return await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput - { - Role = role, - PlatformType = platformType - }); - } - } -} +using Microsoft.AspNetCore.Mvc; +using System; +using System.Threading.Tasks; +using Volo.Abp; +using Volo.Abp.Application.Dtos; +using Volo.Abp.AspNetCore.Mvc; +using Volo.Abp.Identity; + +namespace LINGYUN.Platform.Menus +{ + [RemoteService(Name = PlatformRemoteServiceConsts.RemoteServiceName)] + [Area("platform")] + [Route("api/platform/menus")] + public class MenuController : AbpController, IMenuAppService + { + protected IMenuAppService MenuAppService { get; } + protected IUserRoleFinder UserRoleFinder { get; } + + public MenuController( + IMenuAppService menuAppService, + IUserRoleFinder userRoleFinder) + { + MenuAppService = menuAppService; + UserRoleFinder = userRoleFinder; + } + + [HttpGet] + [Route("by-current-user")] + public virtual async Task> GetCurrentUserMenuListAsync(GetMenuInput input) + { + return await MenuAppService.GetCurrentUserMenuListAsync(input); + } + + [HttpGet] + [Route("{id}")] + public virtual async Task GetAsync(Guid id) + { + return await MenuAppService.GetAsync(id); + } + + [HttpGet] + [Route("all")] + public virtual async Task> GetAllAsync(MenuGetAllInput input) + { + return await MenuAppService.GetAllAsync(input); + } + + [HttpGet] + public virtual async Task> GetListAsync(MenuGetListInput input) + { + return await MenuAppService.GetListAsync(input); + } + + [HttpPost] + public virtual async Task CreateAsync(MenuCreateDto input) + { + return await MenuAppService.CreateAsync(input); + } + + [HttpPut] + [Route("{id}")] + public virtual async Task UpdateAsync(Guid id, MenuUpdateDto input) + { + return await MenuAppService.UpdateAsync(id, input); + } + + [HttpDelete] + [Route("{id}")] + public virtual async Task DeleteAsync(Guid id) + { + await MenuAppService.DeleteAsync(id); + } + + [HttpPut] + [Route("by-user")] + public virtual async Task SetUserMenusAsync(UserMenuInput input) + { + await MenuAppService.SetUserMenusAsync(input); + } + + [HttpGet] + [Route("by-user")] + public virtual async Task> GetUserMenuListAsync(MenuGetByUserInput input) + { + return await MenuAppService.GetUserMenuListAsync(input); + } + + [HttpGet] + [Route("by-user/{userId}/{framework}")] + public virtual async Task> GetUserMenuListAsync(Guid userId, string framework) + { + var userRoles = await UserRoleFinder.GetRolesAsync(userId); + + var getMenuByUser = new MenuGetByUserInput + { + UserId = userId, + Roles = userRoles, + Framework = framework + }; + return await MenuAppService.GetUserMenuListAsync(getMenuByUser); + } + + [HttpPut] + [Route("by-role")] + public virtual async Task SetRoleMenusAsync(RoleMenuInput input) + { + await MenuAppService.SetRoleMenusAsync(input); + } + + [HttpGet] + [Route("by-role")] + public virtual async Task> GetRoleMenuListAsync(MenuGetByRoleInput input) + { + return await MenuAppService.GetRoleMenuListAsync(input); + } + + [HttpGet] + [Route("by-role/{role}/{framework}")] + public virtual async Task> GetRoleMenuListAsync(string role, string framework) + { + return await MenuAppService.GetRoleMenuListAsync(new MenuGetByRoleInput + { + Role = role, + Framework = framework + }); + } + } +} diff --git a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/ElementAdminDataSeedContributor.cs similarity index 92% rename from aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs rename to aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/ElementAdminDataSeedContributor.cs index 0b4d9e11f..e16666069 100644 --- a/aspnet-core/modules/platform/LINGYUN.Platform.Domain/LINGYUN/Platform/PlatformDataSeedContributor.cs +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/ElementAdminDataSeedContributor.cs @@ -1,926 +1,961 @@ -using LINGYUN.Platform.Datas; -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Menus; -using LINGYUN.Platform.Routes; -using LINGYUN.Platform.Utils; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Volo.Abp.Data; -using Volo.Abp.DependencyInjection; -using Volo.Abp.Guids; -using Volo.Abp.MultiTenancy; - -namespace LINGYUN.Platform -{ - public class PlatformDataSeedContributor : IDataSeedContributor, ITransientDependency - { - protected ICurrentTenant CurrentTenant { get; } - protected IGuidGenerator GuidGenerator { get; } - protected IRouteDataSeeder RouteDataSeeder { get; } - protected IDataDictionaryDataSeeder DataDictionaryDataSeeder { get; } - protected IMenuRepository MenuRepository { get; } - protected ILayoutRepository LayoutRepository { get; } - - public PlatformDataSeedContributor( - ICurrentTenant currentTenant, - IRouteDataSeeder routeDataSeeder, - IMenuRepository menuRepository, - ILayoutRepository layoutRepository, - IGuidGenerator guidGenerator, - IDataDictionaryDataSeeder dataDictionaryDataSeeder) - { - CurrentTenant = currentTenant; - GuidGenerator = guidGenerator; - RouteDataSeeder = routeDataSeeder; - MenuRepository = menuRepository; - LayoutRepository = layoutRepository; - DataDictionaryDataSeeder = dataDictionaryDataSeeder; - } - - public virtual async Task SeedAsync(DataSeedContext context) - { - using (CurrentTenant.Change(context.TenantId)) - { - var data = await SeedDefaultDataDictionaryAsync(context.TenantId); - // 预置 - var layout = await SeedDefaultLayoutAsync(data); - // 首页 - await SeedHomeMenuAsync(layout, data); - // 管理菜单预置菜单数据 - await SeedAdminMenuAsync(layout, data); - // saas菜单数据 - await SeedSaasMenuAsync(layout, data); - // 身份资源菜单数据 - await SeedIdentityServerMenuAsync(layout, data); - // 审计日志菜单数据 - await SeedAuditingMenuAsync(layout, data); - // 布局容器预置菜单数据 - await SeedContainerMenuAsync(layout, data); - // 网关管理菜单数据 - await SeedApiGatewayMenuAsync(layout, data); - // Oss对象管理菜单数据 - await SeedOssManagementMenuAsync(layout, data); - // 本地化管理菜单数据 - await SeedLocalizationManagementMenuAsync(layout, data); - } - } - - private async Task SeedDefaultDataDictionaryAsync(Guid? tenantId) - { - var data = await DataDictionaryDataSeeder - .SeedAsync( - "Layout", - CodeNumberGenerator.CreateCode(1), - "Vue Admin Layout Meta Dictionary", - "Vue Admin Layout Meta Dictionary", - null, - tenantId); - - data.AddItem( - GuidGenerator, - "roles", // TODO: 是否需要把这一项写入到预置数据? - "roles", - "", - Datas.ValueType.Array, - "will control the page roles (allow setting multiple roles)"); - data.AddItem( - GuidGenerator, - "title", - "title", - "component", - Datas.ValueType.String, - "the name showed in subMenu and breadcrumb (recommend set)"); - data.AddItem( - GuidGenerator, - "icon", - "icon", - "icon", - Datas.ValueType.String, - "the icon showed in the sidebar"); - data.AddItem( - GuidGenerator, - "hidden", - "hidden", - "false", - Datas.ValueType.Boolean, - "if true, this route will not show in the sidebar (default is false)"); - data.AddItem( - GuidGenerator, - "alwaysShow", - "alwaysShow", - "false", - Datas.ValueType.Boolean, - "if true, will always show the root menu (default is false)"); - data.AddItem( - GuidGenerator, - "breadcrumb", - "breadcrumb", - "true", - Datas.ValueType.Boolean, - "if false, the item will be hidden in breadcrumb (default is true)"); - data.AddItem( - GuidGenerator, - "noCache", - "noCache", - "false", - Datas.ValueType.Boolean, - "if true, the page will not be cached (default is false)"); - data.AddItem( - GuidGenerator, - "affix", - "affix", - "false", - Datas.ValueType.Boolean, - "if true, the tag will affix in the tags-view"); - data.AddItem( - GuidGenerator, - "activeMenu", - "activeMenu", - "", - Datas.ValueType.String, - "if set path, the sidebar will highlight the path you set"); - - return data; - } - - private async Task SeedDefaultLayoutAsync(Data data) - { - var layout = await RouteDataSeeder.SeedLayoutAsync( - "Layout", - "layout/index.vue", - "Vue Admin Layout", - data.Id, - PlatformType.WebMvvm, // 针对当前的vue管理页 - "", - "Vue Admin Layout", - data.TenantId - ); - - return layout; - } - - private async Task SeedHomeMenuAsync(Layout layout, Data data) - { - var adminMenu = await SeedMenuAsync( - layout, - data, - "home", - "/", - CodeNumberGenerator.CreateCode(1), - layout.Path, - "Home", - "/dashboard", - "Home", - null, - layout.TenantId, - new Dictionary() - { - { "title", "home" }, - { "icon", "home" }, - { "alwaysShow", true } - }, - // isPublic: true, - isPublic: false); // 首页应该是共有的页面 - - await SeedMenuAsync( - layout, - data, - "dashboard", - "dashboard", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/dashboard/index.vue", - "Dashboard", - "", - "Dashboard", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "dashboard" }, - { "icon", "dashboard" } - }, - isPublic: false); - } - - private async Task SeedAdminMenuAsync(Layout layout, Data data) - { - var adminMenu = await SeedMenuAsync( - layout, - data, - "admin", - "/admin", - CodeNumberGenerator.CreateCode(2), - layout.Path, - "Admin", - "", - "Admin", - null, - layout.TenantId, - new Dictionary() - { - { "title", "admin" }, - { "icon", "admin" }, - { "alwaysShow", true } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "roles", - "roles", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/roles/index.vue", - "Manage Roles", - "", - "Manage Roles", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "roles" }, - { "icon", "role" }, - { "roles", new string[] { "AbpIdentity.Roles" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "users", - "users", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/users/index.vue", - "Manage Users", - "", - "Manage Users", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "users" }, - { "icon", "users" }, - { "roles", new string[] { "AbpIdentity.Users" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "organization-unit", - "organization-unit", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(3)), - "views/admin/organization-unit/index.vue", - "Manage Organization Units", - "", - "Manage Organization Units", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "organization-unit" }, - { "icon", "organization-unit" }, - { "roles", new string[] { "AbpIdentity.OrganizationUnits" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "claim-type", - "claim-type", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(4)), - "views/admin/claim-type/index.vue", - "Manage Claim Types", - "", - "Manage Claim Types", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "claim-type" }, - { "icon", "claim-type" }, - { "roles", new string[] { "AbpIdentity.IdentityClaimTypes" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "data-dictionary", - "data-dictionary", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(5)), - "views/admin/data-dictionary/index.vue", - "Manage Data Dictionarys", - "", - "Manage Data Dictionarys", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "data-dictionary" }, - { "icon", "data-dictionary" }, - { "roles", new string[] { "Platform.DataDictionary" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "settings", - "settings", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(6)), - "views/admin/settings/index.vue", - "Manage Settings", - "", - "Manage Settings", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "settings" }, - { "icon", "settings" }, - { "roles", new string[] { "AbpSettingManagement.Settings" } } - }, - new string[] { "admin" }); - } - - private async Task SeedSaasMenuAsync(Layout layout, Data data) - { - var saasMenu = await SeedMenuAsync( - layout, - data, - "saas", - "/saas", - CodeNumberGenerator.CreateCode(3), - layout.Path, - "Saas", - "", - "Saas", - null, - layout.TenantId, - new Dictionary() - { - { "title", "saas" }, - { "icon", "saas" }, - { "alwaysShow", true } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "editions", - "editions", - CodeNumberGenerator.AppendCode(saasMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/edition/index.vue", - "Manage Editions", - "", - "Manage Editions", - saasMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "editions" }, - { "icon", "editions" } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "tenants", - "tenants", - CodeNumberGenerator.AppendCode(saasMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/tenants/index.vue", - "Manage Tenants", - "", - "Manage Tenants", - saasMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "tenants" }, - { "icon", "tenants" } - }, - new string[] { "admin" }); - } - - private async Task SeedIdentityServerMenuAsync(Layout layout, Data data) - { - var identityServerMenu = await SeedMenuAsync( - layout, - data, - "identity-server", - "/identity-server", - CodeNumberGenerator.CreateCode(4), - layout.Path, - "Identity Server", - "", - "Identity Server", - null, - layout.TenantId, - new Dictionary() - { - { "title", "identity-server" }, - { "icon", "identity-server" }, - { "alwaysShow", true }, - { "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources", "AbpIdentityServer.ApiScopes" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "clients", - "clients", - CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/identityServer/client/index.vue", - "Manage Clients", - "", - "Manage Clients", - identityServerMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "clients" }, - { "icon", "client" }, - { "roles", new string[]{ "AbpIdentityServer.Clients" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "api-resources", - "api-resources", - CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/identityServer/api-resources/index.vue", - "Manage Api Resources", - "", - "Manage Api Resources", - identityServerMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "api-resources" }, - { "icon", "api" }, - { "roles", new string[]{ "AbpIdentityServer.ApiResources" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "identity-resources", - "identity-resources", - CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(3)), - "views/admin/identityServer/identity-resources/index.vue", - "Manage Identity Resources", - "", - "Manage Identity Resources", - identityServerMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "identity-resources" }, - { "icon", "identity" }, - { "roles", new string[]{ "AbpIdentityServer.IdentityResources" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "api-scopes", - "api-scopes", - CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(4)), - "views/admin/identityServer/api-scopes/index.vue", - "Manage Api Scopes", - "", - "Manage Api Scopes", - identityServerMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "api-scopes" }, - { "icon", "api-scopes" }, - { "roles", new string[]{ "AbpIdentityServer.ApiScopes" } } - }, - new string[] { "admin" }); - } - - private async Task SeedAuditingMenuAsync(Layout layout, Data data) - { - var auditingMenu = await SeedMenuAsync( - layout, - data, - "auditing", - "/auditing", - CodeNumberGenerator.CreateCode(5), - layout.Path, - "Auditing", - "", - "Auditing", - null, - layout.TenantId, - new Dictionary() - { - { "title", "auditing" }, - { "icon", "auditing" }, - { "alwaysShow", true }, - { "roles", new string[]{ "AbpAuditing.AuditLog", "AbpAuditing.SecurityLog" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "audit-log", - "audit-log", - CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/auditing/audit-log/index.vue", - "Manage AuditLog", - "", - "Manage AuditLog", - auditingMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "audit-log" }, - { "icon", "audit-log" }, - { "roles", new string[]{ "AbpAuditing.AuditLog" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "security-log", - "security-log", - CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/auditing/security-log/index.vue", - "Manage SecurityLog", - "", - "Manage SecurityLog", - auditingMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "security-log" }, - { "icon", "security-log" }, - { "roles", new string[]{ "AbpAuditing.SecurityLog" } } - }, - new string[] { "admin" }); - } - - private async Task SeedContainerMenuAsync(Layout layout, Data data) - { - var containerRoot = await SeedMenuAsync( - layout, - data, - "container", - "/container", - CodeNumberGenerator.CreateCode(6), - layout.Path, - "Container", - "", - "Manage Container", - null, - layout.TenantId, - new Dictionary() - { - { "title", "container" }, - { "icon", "container" }, - { "alwaysShow", true } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "layouts", - "layouts", - CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(1)), - "views/container/layouts/index.vue", - "Manage Layouts", - "", - "Manage Layouts", - containerRoot.Id, - containerRoot.TenantId, - new Dictionary() - { - { "title", "layouts" }, - { "icon", "layout" } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "menus", - "menus", - CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(2)), - "views/container/menus/index.vue", - "Manage Menus", - "", - "Manage Menus", - containerRoot.Id, - containerRoot.TenantId, - new Dictionary() - { - { "title", "menus" }, - { "icon", "menu" } - }, - new string[] { "admin" }); - } - - private async Task SeedApiGatewayMenuAsync(Layout layout, Data data) - { - var apiGatewayMenu = await SeedMenuAsync( - layout, - data, - "apigateway", - "/apigateway", - CodeNumberGenerator.CreateCode(7), - layout.Path, - "Manage Api Gateway", - "/group", - "Manage Api Gateway", - null, - layout.TenantId, - new Dictionary() - { - { "title", "api-gateway" }, - { "icon", "api-gateway" }, - { "alwaysShow", true }, - { "roles", new string[] { "ApiGateway.RouteGroup", "ApiGateway.Global", "ApiGateway.Route", "ApiGateway.DynamicRoute", "ApiGateway.AggregateRoute" } }, - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "group", - "group", - CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/apigateway/group.vue", - "Manage Groups", - "", - "Manage Groups", - apiGatewayMenu.Id, - apiGatewayMenu.TenantId, - new Dictionary() - { - { "title", "group" }, - { "icon", "group" }, - { "roles", new string[] { "ApiGateway.RouteGroup" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "global", - "global", - CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/apigateway/global.vue", - "Manage Globals", - "", - "Manage Globals", - apiGatewayMenu.Id, - apiGatewayMenu.TenantId, - new Dictionary() - { - { "title", "global" }, - { "icon", "global-setting" }, - { "roles", new string[] { "ApiGateway.Global" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "route", - "route", - CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(3)), - "views/admin/apigateway/route.vue", - "Manage Routes", - "", - "Manage Routes", - apiGatewayMenu.Id, - apiGatewayMenu.TenantId, - new Dictionary() - { - { "title", "route" }, - { "icon", "route" }, - { "roles", new string[] { "ApiGateway.Route" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "aggregate-route", - "aggregate-route", - CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(4)), - "views/admin/apigateway/aggregateRoute.vue", - "Manage Aggregate Routes", - "", - "Manage Aggregate Routes", - apiGatewayMenu.Id, - apiGatewayMenu.TenantId, - new Dictionary() - { - { "title", "aggregate-route" }, - { "icon", "aggregate" }, - { "roles", new string[] { "ApiGateway.AggregateRoute " } } - }, - new string[] { "admin" }); - } - - private async Task SeedOssManagementMenuAsync(Layout layout, Data data) - { - var ossManagementMenu = await SeedMenuAsync( - layout, - data, - "oss-management", - "/oss-management", - CodeNumberGenerator.CreateCode(8), - layout.Path, - "Manage Object Storage", - "/oss-manager", - "Manage Object Storage", - null, - layout.TenantId, - new Dictionary() - { - { "title", "oss-management" }, - { "icon", "file-system" }, - { "alwaysShow", true }, - { "roles", new string[] { "AbpOssManagement.Container", "AbpOssManagement.OssObject" } }, - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "oss-manager", - "oss-manager", - CodeNumberGenerator.AppendCode(ossManagementMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/oss-management/index.vue", - "Manage Oss Object", - "", - "Manage Oss Object", - ossManagementMenu.Id, - ossManagementMenu.TenantId, - new Dictionary() - { - { "title", "oss-objects" }, - { "icon", "file-system" }, - { "roles", new string[] { "AbpOssManagement.OssObject" } } - }, - new string[] { "admin" }); - } - - private async Task SeedLocalizationManagementMenuAsync(Layout layout, Data data) - { - var localizationManagementMenu = await SeedMenuAsync( - layout, - data, - "localization-management", - "/localization-management", - CodeNumberGenerator.CreateCode(9), - layout.Path, - "Manage Localization", - "/localization", - "Manage Localization", - null, - layout.TenantId, - new Dictionary() - { - { "title", "localization" }, - { "icon", "localization" }, - { "alwaysShow", true }, - { "roles", new string[] { "LocalizationManagement.Resource", "LocalizationManagement.Language", "LocalizationManagement.Text" } }, - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "resource", - "resource", - CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/localization-management/resources/index.vue", - "Manage Resource", - "", - "Manage Resource", - localizationManagementMenu.Id, - localizationManagementMenu.TenantId, - new Dictionary() - { - { "title", "resource" }, - { "icon", "resource" }, - { "roles", new string[] { "LocalizationManagement.Resource" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "language", - "language", - CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/localization-management/languages/index.vue", - "Manage Language", - "", - "Manage Language", - localizationManagementMenu.Id, - localizationManagementMenu.TenantId, - new Dictionary() - { - { "title", "language" }, - { "icon", "language" }, - { "roles", new string[] { "LocalizationManagement.Language" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "text", - "text", - CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(3)), - "views/localization-management/texts/index.vue", - "Manage Text", - "", - "Manage Text", - localizationManagementMenu.Id, - localizationManagementMenu.TenantId, - new Dictionary() - { - { "title", "text" }, - { "icon", "text" }, - { "roles", new string[] { "LocalizationManagement.Text" } } - }, - new string[] { "admin" }); - - } - private async Task SeedMenuAsync( - Layout layout, - Data data, - string name, - string path, - string code, - string component, - string displayName, - string redirect = "", - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - Dictionary meta = null, - string[] roles = null, - Guid[] users = null, - bool isPublic = false - ) - { - var menu = await RouteDataSeeder.SeedMenuAsync( - layout, - name, - path, - code, - component, - displayName, - redirect, - description, - parentId, - tenantId, - isPublic - ); - foreach (var item in data.Items) - { - menu.SetProperty(item.Name, item.DefaultValue); - } - if (meta != null) - { - foreach (var item in meta) - { - menu.SetProperty(item.Key, item.Value); - } - } - - if (roles != null) - { - foreach (var role in roles) - { - await RouteDataSeeder.SeedRoleMenuAsync(role, menu, tenantId); - } - } - - if (users != null) - { - foreach (var user in users) - { - await RouteDataSeeder.SeedUserMenuAsync(user, menu, tenantId); - } - } - - return menu; - } - } -} +using LINGYUN.Platform.Datas; +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Menus; +using LINGYUN.Platform.Routes; +using LINGYUN.Platform.Utils; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Guids; +using Volo.Abp.MultiTenancy; + +namespace LINGYUN.Platform.DataSeeder +{ + public class ElementAdminDataSeedContributor : IDataSeedContributor, ITransientDependency + { + protected ICurrentTenant CurrentTenant { get; } + protected IGuidGenerator GuidGenerator { get; } + protected IRouteDataSeeder RouteDataSeeder { get; } + protected IDataDictionaryDataSeeder DataDictionaryDataSeeder { get; } + protected IMenuRepository MenuRepository { get; } + protected ILayoutRepository LayoutRepository { get; } + + public ElementAdminDataSeedContributor( + ICurrentTenant currentTenant, + IRouteDataSeeder routeDataSeeder, + IMenuRepository menuRepository, + ILayoutRepository layoutRepository, + IGuidGenerator guidGenerator, + IDataDictionaryDataSeeder dataDictionaryDataSeeder) + { + CurrentTenant = currentTenant; + GuidGenerator = guidGenerator; + RouteDataSeeder = routeDataSeeder; + MenuRepository = menuRepository; + LayoutRepository = layoutRepository; + DataDictionaryDataSeeder = dataDictionaryDataSeeder; + } + + public virtual async Task SeedAsync(DataSeedContext context) + { + using (CurrentTenant.Change(context.TenantId)) + { + var uiItem = await SeedUIFrameworkDataAsync(context.TenantId); + var data = await SeedLayoutDataAsync(context.TenantId); + // 预置 + var layout = await SeedDefaultLayoutAsync(data, uiItem); + // 首页 + await SeedHomeMenuAsync(layout, data); + // 管理菜单预置菜单数据 + await SeedAdminMenuAsync(layout, data); + // saas菜单数据 + await SeedSaasMenuAsync(layout, data); + // 身份资源菜单数据 + await SeedIdentityServerMenuAsync(layout, data); + // 审计日志菜单数据 + await SeedAuditingMenuAsync(layout, data); + // 布局容器预置菜单数据 + await SeedContainerMenuAsync(layout, data); + // 网关管理菜单数据 + await SeedApiGatewayMenuAsync(layout, data); + // Oss对象管理菜单数据 + await SeedOssManagementMenuAsync(layout, data); + // 本地化管理菜单数据 + await SeedLocalizationManagementMenuAsync(layout, data); + } + } + + private async Task SeedUIFrameworkDataAsync(Guid? tenantId) + { + var data = await DataDictionaryDataSeeder + .SeedAsync( + "UI Framewark", + CodeNumberGenerator.CreateCode(2), + "UI框架", + "UI Framewark", + null, + tenantId, + true); + + data.AddItem( + GuidGenerator, + "Vue Element Admin", + "Vue Element Admin", + "Vue Element Admin", + Datas.ValueType.String, + "Vue Element Admin", + isStatic: true); + + return data.FindItem("Vue Element Admin"); + } + + private async Task SeedLayoutDataAsync(Guid? tenantId) + { + var data = await DataDictionaryDataSeeder + .SeedAsync( + "Layout", + CodeNumberGenerator.CreateCode(1), + "Vue Admin Layout Meta Dictionary", + "Vue Admin Layout Meta Dictionary", + null, + tenantId, + true); + + data.AddItem( + GuidGenerator, + "roles", // TODO: 是否需要把这一项写入到预置数据? + "roles", + "", + Datas.ValueType.Array, + "will control the page roles (allow setting multiple roles)", + isStatic: true); + data.AddItem( + GuidGenerator, + "title", + "title", + "component", + Datas.ValueType.String, + "the name showed in subMenu and breadcrumb (recommend set)", + isStatic: true); + data.AddItem( + GuidGenerator, + "icon", + "icon", + "icon", + Datas.ValueType.String, + "the icon showed in the sidebar", + isStatic: true); + data.AddItem( + GuidGenerator, + "hidden", + "hidden", + "false", + Datas.ValueType.Boolean, + "if true, this route will not show in the sidebar (default is false)", + isStatic: true); + data.AddItem( + GuidGenerator, + "alwaysShow", + "alwaysShow", + "false", + Datas.ValueType.Boolean, + "if true, will always show the root menu (default is false)", + isStatic: true); + data.AddItem( + GuidGenerator, + "breadcrumb", + "breadcrumb", + "true", + Datas.ValueType.Boolean, + "if false, the item will be hidden in breadcrumb (default is true)", + isStatic: true); + data.AddItem( + GuidGenerator, + "noCache", + "noCache", + "false", + Datas.ValueType.Boolean, + "if true, the page will not be cached (default is false)", + isStatic: true); + data.AddItem( + GuidGenerator, + "affix", + "affix", + "false", + Datas.ValueType.Boolean, + "if true, the tag will affix in the tags-view", + isStatic: true); + data.AddItem( + GuidGenerator, + "activeMenu", + "activeMenu", + "", + Datas.ValueType.String, + "if set path, the sidebar will highlight the path you set", + isStatic: true); + + return data; + } + + private async Task SeedDefaultLayoutAsync(Data data, DataItem uiDataItem) + { + var layout = await RouteDataSeeder.SeedLayoutAsync( + "Layout", + "layout/index.vue", + "Vue Admin Layout", + data.Id, + uiDataItem.Name, + "", + "Vue Admin Layout", + data.TenantId + ); + + return layout; + } + + private async Task SeedHomeMenuAsync(Layout layout, Data data) + { + var adminMenu = await SeedMenuAsync( + layout, + data, + "home", + "/", + CodeNumberGenerator.CreateCode(1), + layout.Path, + "Home", + "/dashboard", + "Home", + null, + layout.TenantId, + new Dictionary() + { + { "title", "home" }, + { "icon", "home" }, + { "alwaysShow", true } + }, + // isPublic: true, + isPublic: false); // 首页应该是共有的页面 + + await SeedMenuAsync( + layout, + data, + "dashboard", + "dashboard", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/dashboard/index.vue", + "Dashboard", + "", + "Dashboard", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "dashboard" }, + { "icon", "dashboard" } + }, + isPublic: false); + } + + private async Task SeedAdminMenuAsync(Layout layout, Data data) + { + var adminMenu = await SeedMenuAsync( + layout, + data, + "admin", + "/admin", + CodeNumberGenerator.CreateCode(2), + layout.Path, + "Admin", + "", + "Admin", + null, + layout.TenantId, + new Dictionary() + { + { "title", "admin" }, + { "icon", "admin" }, + { "alwaysShow", true } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "roles", + "roles", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/admin/roles/index.vue", + "Manage Roles", + "", + "Manage Roles", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "roles" }, + { "icon", "role" }, + { "roles", new string[] { "AbpIdentity.Roles" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "users", + "users", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/admin/users/index.vue", + "Manage Users", + "", + "Manage Users", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "users" }, + { "icon", "users" }, + { "roles", new string[] { "AbpIdentity.Users" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "organization-unit", + "organization-unit", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(3)), + "views/admin/organization-unit/index.vue", + "Manage Organization Units", + "", + "Manage Organization Units", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "organization-unit" }, + { "icon", "organization-unit" }, + { "roles", new string[] { "AbpIdentity.OrganizationUnits" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "claim-type", + "claim-type", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(4)), + "views/admin/claim-type/index.vue", + "Manage Claim Types", + "", + "Manage Claim Types", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "claim-type" }, + { "icon", "claim-type" }, + { "roles", new string[] { "AbpIdentity.IdentityClaimTypes" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "data-dictionary", + "data-dictionary", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(5)), + "views/admin/data-dictionary/index.vue", + "Manage Data Dictionarys", + "", + "Manage Data Dictionarys", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "data-dictionary" }, + { "icon", "data-dictionary" }, + { "roles", new string[] { "Platform.DataDictionary" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "settings", + "settings", + CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(6)), + "views/admin/settings/index.vue", + "Manage Settings", + "", + "Manage Settings", + adminMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "settings" }, + { "icon", "settings" }, + { "roles", new string[] { "AbpSettingManagement.Settings" } } + }, + new string[] { "admin" }); + } + + private async Task SeedSaasMenuAsync(Layout layout, Data data) + { + var saasMenu = await SeedMenuAsync( + layout, + data, + "saas", + "/saas", + CodeNumberGenerator.CreateCode(3), + layout.Path, + "Saas", + "", + "Saas", + null, + layout.TenantId, + new Dictionary() + { + { "title", "saas" }, + { "icon", "saas" }, + { "alwaysShow", true } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "editions", + "editions", + CodeNumberGenerator.AppendCode(saasMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/admin/edition/index.vue", + "Manage Editions", + "", + "Manage Editions", + saasMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "editions" }, + { "icon", "editions" } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "tenants", + "tenants", + CodeNumberGenerator.AppendCode(saasMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/admin/tenants/index.vue", + "Manage Tenants", + "", + "Manage Tenants", + saasMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "tenants" }, + { "icon", "tenants" } + }, + new string[] { "admin" }); + } + + private async Task SeedIdentityServerMenuAsync(Layout layout, Data data) + { + var identityServerMenu = await SeedMenuAsync( + layout, + data, + "identity-server", + "/identity-server", + CodeNumberGenerator.CreateCode(4), + layout.Path, + "Identity Server", + "", + "Identity Server", + null, + layout.TenantId, + new Dictionary() + { + { "title", "identity-server" }, + { "icon", "identity-server" }, + { "alwaysShow", true }, + { "roles", new string[]{ "AbpIdentityServer.Clients", "AbpIdentityServer.ApiResources", "AbpIdentityServer.IdentityResources", "AbpIdentityServer.ApiScopes" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "clients", + "clients", + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/admin/identityServer/client/index.vue", + "Manage Clients", + "", + "Manage Clients", + identityServerMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "clients" }, + { "icon", "client" }, + { "roles", new string[]{ "AbpIdentityServer.Clients" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "api-resources", + "api-resources", + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/admin/identityServer/api-resources/index.vue", + "Manage Api Resources", + "", + "Manage Api Resources", + identityServerMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "api-resources" }, + { "icon", "api" }, + { "roles", new string[]{ "AbpIdentityServer.ApiResources" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "identity-resources", + "identity-resources", + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(3)), + "views/admin/identityServer/identity-resources/index.vue", + "Manage Identity Resources", + "", + "Manage Identity Resources", + identityServerMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "identity-resources" }, + { "icon", "identity" }, + { "roles", new string[]{ "AbpIdentityServer.IdentityResources" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "api-scopes", + "api-scopes", + CodeNumberGenerator.AppendCode(identityServerMenu.Code, CodeNumberGenerator.CreateCode(4)), + "views/admin/identityServer/api-scopes/index.vue", + "Manage Api Scopes", + "", + "Manage Api Scopes", + identityServerMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "api-scopes" }, + { "icon", "api-scopes" }, + { "roles", new string[]{ "AbpIdentityServer.ApiScopes" } } + }, + new string[] { "admin" }); + } + + private async Task SeedAuditingMenuAsync(Layout layout, Data data) + { + var auditingMenu = await SeedMenuAsync( + layout, + data, + "auditing", + "/auditing", + CodeNumberGenerator.CreateCode(5), + layout.Path, + "Auditing", + "", + "Auditing", + null, + layout.TenantId, + new Dictionary() + { + { "title", "auditing" }, + { "icon", "auditing" }, + { "alwaysShow", true }, + { "roles", new string[]{ "AbpAuditing.AuditLog", "AbpAuditing.SecurityLog" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "audit-log", + "audit-log", + CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/admin/auditing/audit-log/index.vue", + "Manage AuditLog", + "", + "Manage AuditLog", + auditingMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "audit-log" }, + { "icon", "audit-log" }, + { "roles", new string[]{ "AbpAuditing.AuditLog" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "security-log", + "security-log", + CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/admin/auditing/security-log/index.vue", + "Manage SecurityLog", + "", + "Manage SecurityLog", + auditingMenu.Id, + layout.TenantId, + new Dictionary() + { + { "title", "security-log" }, + { "icon", "security-log" }, + { "roles", new string[]{ "AbpAuditing.SecurityLog" } } + }, + new string[] { "admin" }); + } + + private async Task SeedContainerMenuAsync(Layout layout, Data data) + { + var containerRoot = await SeedMenuAsync( + layout, + data, + "container", + "/container", + CodeNumberGenerator.CreateCode(6), + layout.Path, + "Container", + "", + "Manage Container", + null, + layout.TenantId, + new Dictionary() + { + { "title", "container" }, + { "icon", "container" }, + { "alwaysShow", true } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "layouts", + "layouts", + CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(1)), + "views/container/layouts/index.vue", + "Manage Layouts", + "", + "Manage Layouts", + containerRoot.Id, + containerRoot.TenantId, + new Dictionary() + { + { "title", "layouts" }, + { "icon", "layout" } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "menus", + "menus", + CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(2)), + "views/container/menus/index.vue", + "Manage Menus", + "", + "Manage Menus", + containerRoot.Id, + containerRoot.TenantId, + new Dictionary() + { + { "title", "menus" }, + { "icon", "menu" } + }, + new string[] { "admin" }); + } + + private async Task SeedApiGatewayMenuAsync(Layout layout, Data data) + { + var apiGatewayMenu = await SeedMenuAsync( + layout, + data, + "apigateway", + "/apigateway", + CodeNumberGenerator.CreateCode(7), + layout.Path, + "Manage Api Gateway", + "/group", + "Manage Api Gateway", + null, + layout.TenantId, + new Dictionary() + { + { "title", "api-gateway" }, + { "icon", "api-gateway" }, + { "alwaysShow", true }, + { "roles", new string[] { "ApiGateway.RouteGroup", "ApiGateway.Global", "ApiGateway.Route", "ApiGateway.DynamicRoute", "ApiGateway.AggregateRoute" } }, + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "group", + "group", + CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/admin/apigateway/group.vue", + "Manage Groups", + "", + "Manage Groups", + apiGatewayMenu.Id, + apiGatewayMenu.TenantId, + new Dictionary() + { + { "title", "group" }, + { "icon", "group" }, + { "roles", new string[] { "ApiGateway.RouteGroup" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "global", + "global", + CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/admin/apigateway/global.vue", + "Manage Globals", + "", + "Manage Globals", + apiGatewayMenu.Id, + apiGatewayMenu.TenantId, + new Dictionary() + { + { "title", "global" }, + { "icon", "global-setting" }, + { "roles", new string[] { "ApiGateway.Global" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "route", + "route", + CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(3)), + "views/admin/apigateway/route.vue", + "Manage Routes", + "", + "Manage Routes", + apiGatewayMenu.Id, + apiGatewayMenu.TenantId, + new Dictionary() + { + { "title", "route" }, + { "icon", "route" }, + { "roles", new string[] { "ApiGateway.Route" } } + }, + new string[] { "admin" }); + await SeedMenuAsync( + layout, + data, + "aggregate-route", + "aggregate-route", + CodeNumberGenerator.AppendCode(apiGatewayMenu.Code, CodeNumberGenerator.CreateCode(4)), + "views/admin/apigateway/aggregateRoute.vue", + "Manage Aggregate Routes", + "", + "Manage Aggregate Routes", + apiGatewayMenu.Id, + apiGatewayMenu.TenantId, + new Dictionary() + { + { "title", "aggregate-route" }, + { "icon", "aggregate" }, + { "roles", new string[] { "ApiGateway.AggregateRoute " } } + }, + new string[] { "admin" }); + } + + private async Task SeedOssManagementMenuAsync(Layout layout, Data data) + { + var ossManagementMenu = await SeedMenuAsync( + layout, + data, + "oss-management", + "/oss-management", + CodeNumberGenerator.CreateCode(8), + layout.Path, + "Manage Object Storage", + "/oss-manager", + "Manage Object Storage", + null, + layout.TenantId, + new Dictionary() + { + { "title", "oss-management" }, + { "icon", "file-system" }, + { "alwaysShow", true }, + { "roles", new string[] { "AbpOssManagement.Container", "AbpOssManagement.OssObject" } }, + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "oss-manager", + "oss-manager", + CodeNumberGenerator.AppendCode(ossManagementMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/oss-management/index.vue", + "Manage Oss Object", + "", + "Manage Oss Object", + ossManagementMenu.Id, + ossManagementMenu.TenantId, + new Dictionary() + { + { "title", "oss-objects" }, + { "icon", "file-system" }, + { "roles", new string[] { "AbpOssManagement.OssObject" } } + }, + new string[] { "admin" }); + } + + private async Task SeedLocalizationManagementMenuAsync(Layout layout, Data data) + { + var localizationManagementMenu = await SeedMenuAsync( + layout, + data, + "localization-management", + "/localization-management", + CodeNumberGenerator.CreateCode(9), + layout.Path, + "Manage Localization", + "/localization", + "Manage Localization", + null, + layout.TenantId, + new Dictionary() + { + { "title", "localization" }, + { "icon", "localization" }, + { "alwaysShow", true }, + { "roles", new string[] { "LocalizationManagement.Resource", "LocalizationManagement.Language", "LocalizationManagement.Text" } }, + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "resource", + "resource", + CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(1)), + "views/localization-management/resources/index.vue", + "Manage Resource", + "", + "Manage Resource", + localizationManagementMenu.Id, + localizationManagementMenu.TenantId, + new Dictionary() + { + { "title", "resource" }, + { "icon", "resource" }, + { "roles", new string[] { "LocalizationManagement.Resource" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "language", + "language", + CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(2)), + "views/localization-management/languages/index.vue", + "Manage Language", + "", + "Manage Language", + localizationManagementMenu.Id, + localizationManagementMenu.TenantId, + new Dictionary() + { + { "title", "language" }, + { "icon", "language" }, + { "roles", new string[] { "LocalizationManagement.Language" } } + }, + new string[] { "admin" }); + + await SeedMenuAsync( + layout, + data, + "text", + "text", + CodeNumberGenerator.AppendCode(localizationManagementMenu.Code, CodeNumberGenerator.CreateCode(3)), + "views/localization-management/texts/index.vue", + "Manage Text", + "", + "Manage Text", + localizationManagementMenu.Id, + localizationManagementMenu.TenantId, + new Dictionary() + { + { "title", "text" }, + { "icon", "text" }, + { "roles", new string[] { "LocalizationManagement.Text" } } + }, + new string[] { "admin" }); + + } + private async Task SeedMenuAsync( + Layout layout, + Data data, + string name, + string path, + string code, + string component, + string displayName, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + Dictionary meta = null, + string[] roles = null, + Guid[] users = null, + bool isPublic = false + ) + { + var menu = await RouteDataSeeder.SeedMenuAsync( + layout, + name, + path, + code, + component, + displayName, + redirect, + description, + parentId, + tenantId, + isPublic + ); + foreach (var item in data.Items) + { + menu.SetProperty(item.Name, item.DefaultValue); + } + if (meta != null) + { + foreach (var item in meta) + { + menu.SetProperty(item.Key, item.Value); + } + } + + if (roles != null) + { + foreach (var role in roles) + { + await RouteDataSeeder.SeedRoleMenuAsync(role, menu, tenantId); + } + } + + if (users != null) + { + foreach (var user in users) + { + await RouteDataSeeder.SeedUserMenuAsync(user, menu, tenantId); + } + } + + return menu; + } + } +} diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/VbenAdminDataSeedContributor.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/VbenAdminDataSeedContributor.cs new file mode 100644 index 000000000..43263f412 --- /dev/null +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/DataSeeder/VbenAdminDataSeedContributor.cs @@ -0,0 +1,291 @@ +using LINGYUN.Platform.Datas; +using LINGYUN.Platform.Layouts; +using LINGYUN.Platform.Menus; +using LINGYUN.Platform.Routes; +using LINGYUN.Platform.Utils; +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.Guids; +using Volo.Abp.MultiTenancy; + +namespace LINGYUN.Platform.DataSeeder +{ + public class VbenAdminDataSeedContributor : IDataSeedContributor, ITransientDependency + { + protected ICurrentTenant CurrentTenant { get; } + protected IGuidGenerator GuidGenerator { get; } + protected IRouteDataSeeder RouteDataSeeder { get; } + protected IDataDictionaryDataSeeder DataDictionaryDataSeeder { get; } + protected IMenuRepository MenuRepository { get; } + protected ILayoutRepository LayoutRepository { get; } + + public VbenAdminDataSeedContributor( + ICurrentTenant currentTenant, + IRouteDataSeeder routeDataSeeder, + IMenuRepository menuRepository, + ILayoutRepository layoutRepository, + IGuidGenerator guidGenerator, + IDataDictionaryDataSeeder dataDictionaryDataSeeder) + { + CurrentTenant = currentTenant; + GuidGenerator = guidGenerator; + RouteDataSeeder = routeDataSeeder; + MenuRepository = menuRepository; + LayoutRepository = layoutRepository; + DataDictionaryDataSeeder = dataDictionaryDataSeeder; + } + + public virtual async Task SeedAsync(DataSeedContext context) + { + using (CurrentTenant.Change(context.TenantId)) + { + var uiDataItem = await SeedUIFrameworkDataAsync(context.TenantId); + + var layoutData = await SeedLayoutDataAsync(context.TenantId); + + var layout = await SeedDefaultLayoutAsync(layoutData, uiDataItem); + } + } + + private async Task SeedUIFrameworkDataAsync(Guid? tenantId) + { + var data = await DataDictionaryDataSeeder + .SeedAsync( + "UI Framewark", + CodeNumberGenerator.CreateCode(2), + "UI框架", + "UI Framewark", + null, + tenantId, + true); + + data.AddItem( + GuidGenerator, + "Vue Vben Admin", + "Vue Vben Admin", + "Vue Vben Admin", + Datas.ValueType.String, + "Vue Vben Admin", + isStatic: true); + + return data.FindItem("Vue Vben Admin"); + } + + private async Task SeedDefaultLayoutAsync(Data data, DataItem uiDataItem) + { + var layout = await RouteDataSeeder.SeedLayoutAsync( + "Vben Admin Layout", + "LAYOUT", // 路由层面已经处理好了,只需要传递LAYOUT可自动引用布局 + "Vben Admin Layout", + data.Id, + uiDataItem.Name, + "", + "Vben Admin Layout", + data.TenantId + ); + + return layout; + } + + private async Task SeedLayoutDataAsync(Guid? tenantId) + { + var data = await DataDictionaryDataSeeder + .SeedAsync( + "Vben Admin Layout", + CodeNumberGenerator.CreateCode(3), + "Vben Admin布局约束", + "Vben Admin Layout Meta Dictionary", + null, + tenantId, + true); + + data.AddItem( + GuidGenerator, + "hideMenu", + "不在菜单显示", + "false", + Datas.ValueType.Boolean, + "当前路由不在菜单显示", + isStatic: true); + data.AddItem( + GuidGenerator, + "icon", + "图标", + "", + Datas.ValueType.String, + "图标,也是菜单图标", + isStatic: true); + data.AddItem( + GuidGenerator, + "currentActiveMenu", + "当前激活的菜单", + "", + Datas.ValueType.String, + "用于配置详情页时左侧激活的菜单路径", + isStatic: true); + data.AddItem( + GuidGenerator, + "ignoreKeepAlive", + "KeepAlive缓存", + "false", + Datas.ValueType.Boolean, + "是否忽略KeepAlive缓存", + isStatic: true); + data.AddItem( + GuidGenerator, + "frameSrc", + "IFrame地址", + "", + Datas.ValueType.String, + "内嵌iframe的地址", + isStatic: true); + data.AddItem( + GuidGenerator, + "transitionName", + "路由切换动画", + "", + Datas.ValueType.String, + "指定该路由切换的动画名", + isStatic: true); + data.AddItem( + GuidGenerator, + "roles", + "可以访问的角色", + "", + Datas.ValueType.Array, + "可以访问的角色,只在权限模式为Role的时候有效", + isStatic: true); + data.AddItem( + GuidGenerator, + "title", + "路由标题", + "", + Datas.ValueType.String, + "路由title 一般必填", + false, + isStatic: true); + data.AddItem( + GuidGenerator, + "carryParam", + "在tab页显示", + "false", + Datas.ValueType.Boolean, + "如果该路由会携带参数,且需要在tab页上面显示。则需要设置为true", + isStatic: true); + data.AddItem( + GuidGenerator, + "hideBreadcrumb", + "隐藏面包屑", + "false", + Datas.ValueType.Boolean, + "隐藏该路由在面包屑上面的显示", + isStatic: true); + data.AddItem( + GuidGenerator, + "ignoreAuth", + "忽略权限", + "false", + Datas.ValueType.Boolean, + "是否忽略权限,只在权限模式为Role的时候有效", + isStatic: true); + data.AddItem( + GuidGenerator, + "hideChildrenInMenu", + "隐藏所有子菜单", + "false", + Datas.ValueType.Boolean, + "隐藏所有子菜单", + isStatic: true); + data.AddItem( + GuidGenerator, + "hideTab", + "不在标签页显示", + "false", + Datas.ValueType.Boolean, + "当前路由不在标签页显示", + isStatic: true); + data.AddItem( + GuidGenerator, + "affix", + "固定标签页", + "false", + Datas.ValueType.Boolean, + "是否固定标签页", + isStatic: true); + data.AddItem( + GuidGenerator, + "frameFormat", + "格式化IFrame", + "false", + Datas.ValueType.Boolean, + "扩展的格式化frame,{token}: 在打开的iframe页面传递token请求头"); + + return data; + } + + private async Task SeedMenuAsync( + Layout layout, + Data data, + string name, + string path, + string code, + string component, + string displayName, + string redirect = "", + string description = "", + Guid? parentId = null, + Guid? tenantId = null, + Dictionary meta = null, + string[] roles = null, + Guid[] users = null, + bool isPublic = false + ) + { + var menu = await RouteDataSeeder.SeedMenuAsync( + layout, + name, + path, + code, + component, + displayName, + redirect, + description, + parentId, + tenantId, + isPublic + ); + foreach (var item in data.Items) + { + menu.SetProperty(item.Name, item.DefaultValue); + } + if (meta != null) + { + foreach (var item in meta) + { + menu.SetProperty(item.Key, item.Value); + } + } + + if (roles != null) + { + foreach (var role in roles) + { + await RouteDataSeeder.SeedRoleMenuAsync(role, menu, tenantId); + } + } + + if (users != null) + { + foreach (var user in users) + { + await RouteDataSeeder.SeedUserMenuAsync(user, menu, tenantId); + } + } + + return menu; + } + } +} diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/EventBus/Handlers/TenantSynchronizer.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/EventBus/Handlers/TenantSynchronizer.cs index 32d60ac56..dc04a3d0b 100644 --- a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/EventBus/Handlers/TenantSynchronizer.cs +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/EventBus/Handlers/TenantSynchronizer.cs @@ -1,525 +1,31 @@ -using LINGYUN.Abp.MultiTenancy; -using LINGYUN.Platform.Datas; -using LINGYUN.Platform.Layouts; -using LINGYUN.Platform.Menus; -using LINGYUN.Platform.Routes; -using LINGYUN.Platform.Utils; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using Volo.Abp.Data; -using Volo.Abp.DependencyInjection; -using Volo.Abp.EventBus.Distributed; -using Volo.Abp.Guids; -using Volo.Abp.MultiTenancy; - -namespace LINGYUN.Platform.EventBus.Handlers -{ - public class TenantSynchronizer : - IDistributedEventHandler, - ITransientDependency - { - protected ICurrentTenant CurrentTenant { get; } - protected IGuidGenerator GuidGenerator { get; } - protected IRouteDataSeeder RouteDataSeeder { get; } - protected IDataDictionaryDataSeeder DataDictionaryDataSeeder { get; } - protected IMenuRepository MenuRepository { get; } - protected ILayoutRepository LayoutRepository { get; } - - public TenantSynchronizer( - ICurrentTenant currentTenant, - IRouteDataSeeder routeDataSeeder, - IMenuRepository menuRepository, - ILayoutRepository layoutRepository, - IGuidGenerator guidGenerator, - IDataDictionaryDataSeeder dataDictionaryDataSeeder) - { - CurrentTenant = currentTenant; - GuidGenerator = guidGenerator; - RouteDataSeeder = routeDataSeeder; - MenuRepository = menuRepository; - LayoutRepository = layoutRepository; - DataDictionaryDataSeeder = dataDictionaryDataSeeder; - } - - /// - /// 租户创建之后需要预置租户平台数据 - /// - /// - /// - public virtual async Task HandleEventAsync(CreateEventData eventData) - { - using (CurrentTenant.Change(eventData.Id)) - { - var data = await SeedDefaultDataDictionaryAsync(eventData.Id); - // 预置 - var layout = await SeedDefaultLayoutAsync(data); - // 首页 - await SeedHomeMenuAsync(layout, data); - // 管理菜单预置菜单数据 - await SeedAdminMenuAsync(layout, data); - // 审计日志菜单数据 - await SeedAuditingMenuAsync(layout, data); - // 布局容器预置菜单数据 - await SeedContainerMenuAsync(layout, data); - } - } - - /// - /// 租户删除之后删除租户平台数据 - /// TODO: 不应删除用户数据 - /// - /// - /// - //public virtual async Task HandleEventAsync(DeleteEventData eventData) - //{ - // //await MenuRepository.GetAllAsync(); - //} - - private async Task SeedDefaultDataDictionaryAsync(Guid? tenantId) - { - var data = await DataDictionaryDataSeeder - .SeedAsync( - "Layout", - CodeNumberGenerator.CreateCode(1), - "Vue Admin Layout Meta Dictionary", - "Vue Admin Layout Meta Dictionary", - null, - tenantId); - - data.AddItem( - GuidGenerator, - "roles", // TODO: 是否需要把这一项写入到预置数据? - "roles", - "", - Datas.ValueType.Array, - "will control the page roles (allow setting multiple roles)"); - data.AddItem( - GuidGenerator, - "title", - "title", - "component", - Datas.ValueType.String, - "the name showed in subMenu and breadcrumb (recommend set)"); - data.AddItem( - GuidGenerator, - "icon", - "icon", - "icon", - Datas.ValueType.String, - "the icon showed in the sidebar"); - data.AddItem( - GuidGenerator, - "hidden", - "hidden", - "false", - Datas.ValueType.Boolean, - "if true, this route will not show in the sidebar (default is false)"); - data.AddItem( - GuidGenerator, - "alwaysShow", - "alwaysShow", - "false", - Datas.ValueType.Boolean, - "if true, will always show the root menu (default is false)"); - data.AddItem( - GuidGenerator, - "breadcrumb", - "breadcrumb", - "true", - Datas.ValueType.Boolean, - "if false, the item will be hidden in breadcrumb (default is true)"); - data.AddItem( - GuidGenerator, - "noCache", - "noCache", - "false", - Datas.ValueType.Boolean, - "if true, the page will not be cached (default is false)"); - data.AddItem( - GuidGenerator, - "affix", - "affix", - "false", - Datas.ValueType.Boolean, - "if true, the tag will affix in the tags-view"); - data.AddItem( - GuidGenerator, - "activeMenu", - "activeMenu", - "", - Datas.ValueType.String, - "if set path, the sidebar will highlight the path you set"); - - return data; - } - - private async Task SeedDefaultLayoutAsync(Data data) - { - var layout = await RouteDataSeeder.SeedLayoutAsync( - "Layout", - "layout/index.vue", - "Vue Admin Layout", - data.Id, - PlatformType.WebMvvm, // 针对当前的vue管理页 - "", - "Vue Admin Layout", - data.TenantId - ); - - return layout; - } - - private async Task SeedHomeMenuAsync(Layout layout, Data data) - { - var adminMenu = await SeedMenuAsync( - layout, - data, - "home", - "/", - CodeNumberGenerator.CreateCode(1), - layout.Path, - "Home", - "/dashboard", - "Home", - null, - layout.TenantId, - new Dictionary() - { - { "title", "home" }, - { "icon", "home" }, - { "alwaysShow", true } - }, - // isPublic: true, - isPublic: false); // 首页应该是共有的页面 - - await SeedMenuAsync( - layout, - data, - "dashboard", - "dashboard", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/dashboard/index.vue", - "Dashboard", - "", - "Dashboard", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "dashboard" }, - { "icon", "dashboard" } - }, - isPublic: false); - } - - private async Task SeedAdminMenuAsync(Layout layout, Data data) - { - var adminMenu = await SeedMenuAsync( - layout, - data, - "admin", - "/admin", - CodeNumberGenerator.CreateCode(2), - layout.Path, - "Admin", - "", - "Admin", - null, - layout.TenantId, - new Dictionary() - { - { "title", "admin" }, - { "icon", "admin" }, - { "alwaysShow", true } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "roles", - "roles", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/roles/index.vue", - "Manage Roles", - "", - "Manage Roles", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "roles" }, - { "icon", "role" }, - { "roles", new string[] { "AbpIdentity.Roles" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "users", - "users", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/users/index.vue", - "Manage Users", - "", - "Manage Users", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "users" }, - { "icon", "users" }, - { "roles", new string[] { "AbpIdentity.Users" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "organization-unit", - "organization-unit", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(3)), - "views/admin/organization-unit/index.vue", - "Manage Organization Units", - "", - "Manage Organization Units", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "organization-unit" }, - { "icon", "organization-unit" }, - { "roles", new string[] { "AbpIdentity.OrganizationUnits" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "data-dictionary", - "data-dictionary", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(5)), - "views/admin/data-dictionary/index.vue", - "Manage Data Dictionarys", - "", - "Manage Data Dictionarys", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "data-dictionary" }, - { "icon", "data-dictionary" }, - { "roles", new string[] { "Platform.DataDictionary" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "settings", - "settings", - CodeNumberGenerator.AppendCode(adminMenu.Code, CodeNumberGenerator.CreateCode(6)), - "views/admin/settings/index.vue", - "Manage Settings", - "", - "Manage Settings", - adminMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "settings" }, - { "icon", "settings" }, - { "roles", new string[] { "AbpSettingManagement.Settings" } } - }, - new string[] { "admin" }); - } - - private async Task SeedAuditingMenuAsync(Layout layout, Data data) - { - var auditingMenu = await SeedMenuAsync( - layout, - data, - "auditing", - "/auditing", - CodeNumberGenerator.CreateCode(5), - layout.Path, - "Auditing", - "", - "Auditing", - null, - layout.TenantId, - new Dictionary() - { - { "title", "auditing" }, - { "icon", "auditing" }, - { "alwaysShow", true }, - { "roles", new string[]{ "AbpAuditing.AuditLog", "AbpAuditing.SecurityLog" } } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "audit-log", - "audit-log", - CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(1)), - "views/admin/auditing/audit-log/index.vue", - "Manage AuditLog", - "", - "Manage AuditLog", - auditingMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "audit-log" }, - { "icon", "audit-log" }, - { "roles", new string[]{ "AbpAuditing.AuditLog" } } - }, - new string[] { "admin" }); - await SeedMenuAsync( - layout, - data, - "security-log", - "security-log", - CodeNumberGenerator.AppendCode(auditingMenu.Code, CodeNumberGenerator.CreateCode(2)), - "views/admin/auditing/security-log/index.vue", - "Manage SecurityLog", - "", - "Manage SecurityLog", - auditingMenu.Id, - layout.TenantId, - new Dictionary() - { - { "title", "security-log" }, - { "icon", "security-log" }, - { "roles", new string[]{ "AbpAuditing.SecurityLog" } } - }, - new string[] { "admin" }); - } - - private async Task SeedContainerMenuAsync(Layout layout, Data data) - { - var containerRoot = await SeedMenuAsync( - layout, - data, - "container", - "/container", - CodeNumberGenerator.CreateCode(6), - layout.Path, - "Container", - "", - "Manage Container", - null, - layout.TenantId, - new Dictionary() - { - { "title", "container" }, - { "icon", "container" }, - { "alwaysShow", true } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "layouts", - "layouts", - CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(1)), - "views/container/layouts/index.vue", - "Manage Layouts", - "", - "Manage Layouts", - containerRoot.Id, - containerRoot.TenantId, - new Dictionary() - { - { "title", "layouts" }, - { "icon", "layout" } - }, - new string[] { "admin" }); - - await SeedMenuAsync( - layout, - data, - "menus", - "menus", - CodeNumberGenerator.AppendCode(containerRoot.Code, CodeNumberGenerator.CreateCode(2)), - "views/container/menus/index.vue", - "Manage Menus", - "", - "Manage Menus", - containerRoot.Id, - containerRoot.TenantId, - new Dictionary() - { - { "title", "menus" }, - { "icon", "menu" } - }, - new string[] { "admin" }); - } - - private async Task SeedMenuAsync( - Layout layout, - Data data, - string name, - string path, - string code, - string component, - string displayName, - string redirect = "", - string description = "", - Guid? parentId = null, - Guid? tenantId = null, - Dictionary meta = null, - string[] roles = null, - Guid[] users = null, - bool isPublic = false - ) - { - var menu = await RouteDataSeeder.SeedMenuAsync( - layout, - name, - path, - code, - component, - displayName, - redirect, - description, - parentId, - tenantId, - isPublic - ); - foreach (var item in data.Items) - { - menu.SetProperty(item.Name, item.DefaultValue); - } - if (meta != null) - { - foreach (var item in meta) - { - menu.SetProperty(item.Key, item.Value); - } - } - - if (roles != null) - { - foreach (var role in roles) - { - await RouteDataSeeder.SeedRoleMenuAsync(role, menu, tenantId); - } - } - - if (users != null) - { - foreach (var user in users) - { - await RouteDataSeeder.SeedUserMenuAsync(user, menu, tenantId); - } - } - - return menu; - } - } -} +using LINGYUN.Abp.MultiTenancy; +using System.Threading.Tasks; +using Volo.Abp.Data; +using Volo.Abp.DependencyInjection; +using Volo.Abp.EventBus.Distributed; + +namespace LINGYUN.Platform.EventBus.Handlers +{ + public class TenantSynchronizer : + IDistributedEventHandler, + ITransientDependency + { + protected IDataSeeder DataSeeder { get; } + + public TenantSynchronizer(IDataSeeder dataSeeder) + { + DataSeeder = dataSeeder; + } + + /// + /// 租户创建之后需要预置种子数据 + /// + /// + /// + public virtual async Task HandleEventAsync(CreateEventData eventData) + { + await DataSeeder.SeedAsync( + new DataSeedContext(eventData.Id)); + } + } +} diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/LINGYUN.Platform.HttpApi.Host.csproj b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/LINGYUN.Platform.HttpApi.Host.csproj index 5f5064fb0..5c137dc87 100644 --- a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/LINGYUN.Platform.HttpApi.Host.csproj +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/LINGYUN.Platform.HttpApi.Host.csproj @@ -1,74 +1,74 @@ - - - - net5.0 - LINGYUN.Platform - - - - - - - - - - - - - - - - - - - - - - all - runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + net5.0 + LINGYUN.Platform + + + + + + + + + + + + + + + + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.Designer.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.Designer.cs new file mode 100644 index 000000000..07f38236f --- /dev/null +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.Designer.cs @@ -0,0 +1,665 @@ +// +using System; +using LINGYUN.Platform.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Volo.Abp.EntityFrameworkCore; + +namespace LINGYUN.Platform.Migrations +{ + [DbContext(typeof(PlatformHttpApiHostMigrationsDbContext))] + [Migration("20210621020117_Rename-Route-Field-PlantType-To-Framework")] + partial class RenameRouteFieldPlantTypeToFramework + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) + .HasAnnotation("Relational:MaxIdentifierLength", 64) + .HasAnnotation("ProductVersion", "5.0.7"); + + modelBuilder.Entity("LINGYUN.Platform.Datas.Data", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Code"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("Name"); + + b.ToTable("AppPlatformDatas"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AllowBeNull") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(true); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DataId") + .HasColumnType("char(36)"); + + b.Property("DefaultValue") + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DefaultValue"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("ValueType") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DataId"); + + b.HasIndex("Name"); + + b.ToTable("AppPlatformDataItems"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Layouts.Layout", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DataId") + .HasColumnType("char(36)"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("Framework") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Framework"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("Redirect") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Redirect"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.ToTable("AppPlatformLayouts"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.Menu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(23) + .HasColumnType("varchar(23) CHARACTER SET utf8mb4") + .HasColumnName("Code"); + + b.Property("Component") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Component"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("Framework") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Framework"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("LayoutId") + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("Redirect") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Redirect"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.ToTable("AppPlatformMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.RoleMenu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("MenuId") + .HasColumnType("char(36)"); + + b.Property("RoleName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256) CHARACTER SET utf8mb4") + .HasColumnName("RoleName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("RoleName", "MenuId"); + + b.ToTable("AppPlatformRoleMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.UserMenu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("MenuId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "MenuId"); + + b.ToTable("AppPlatformUserMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.AppVersion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(2048) + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("PlatformType") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50) CHARACTER SET utf8mb4") + .HasColumnName("Title"); + + b.Property("Version") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20) CHARACTER SET utf8mb4") + .HasColumnName("Version"); + + b.HasKey("Id"); + + b.HasIndex("Version"); + + b.ToTable("AppPlatformVersion"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("AppVersionId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DownloadCount") + .HasColumnType("int"); + + b.Property("FileType") + .HasColumnType("int"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("SHA256") + .IsRequired() + .HasMaxLength(65) + .HasColumnType("varchar(65) CHARACTER SET utf8mb4") + .HasColumnName("SHA256"); + + b.Property("Size") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Version") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20) CHARACTER SET utf8mb4") + .HasColumnName("Version"); + + b.HasKey("Id"); + + b.HasIndex("AppVersionId"); + + b.HasIndex("Path", "Name", "Version") + .IsUnique(); + + b.ToTable("AppPlatformVersionFile"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => + { + b.HasOne("LINGYUN.Platform.Datas.Data", null) + .WithMany("Items") + .HasForeignKey("DataId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => + { + b.HasOne("LINGYUN.Platform.Versions.AppVersion", "AppVersion") + .WithMany("Files") + .HasForeignKey("AppVersionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AppVersion"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.Data", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.AppVersion", b => + { + b.Navigation("Files"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.cs new file mode 100644 index 000000000..fa13fc86a --- /dev/null +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/20210621020117_Rename-Route-Field-PlantType-To-Framework.cs @@ -0,0 +1,81 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +namespace LINGYUN.Platform.Migrations +{ + public partial class RenameRouteFieldPlantTypeToFramework : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "PlatformType", + table: "AppPlatformMenus"); + + migrationBuilder.DropColumn( + name: "PlatformType", + table: "AppPlatformLayouts"); + + migrationBuilder.AddColumn( + name: "Framework", + table: "AppPlatformMenus", + type: "varchar(64) CHARACTER SET utf8mb4", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "Framework", + table: "AppPlatformLayouts", + type: "varchar(64) CHARACTER SET utf8mb4", + maxLength: 64, + nullable: false, + defaultValue: ""); + + migrationBuilder.AddColumn( + name: "IsStatic", + table: "AppPlatformDatas", + type: "tinyint(1)", + nullable: false, + defaultValue: false); + + migrationBuilder.AddColumn( + name: "IsStatic", + table: "AppPlatformDataItems", + type: "tinyint(1)", + nullable: false, + defaultValue: false); + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Framework", + table: "AppPlatformMenus"); + + migrationBuilder.DropColumn( + name: "Framework", + table: "AppPlatformLayouts"); + + migrationBuilder.DropColumn( + name: "IsStatic", + table: "AppPlatformDatas"); + + migrationBuilder.DropColumn( + name: "IsStatic", + table: "AppPlatformDataItems"); + + migrationBuilder.AddColumn( + name: "PlatformType", + table: "AppPlatformMenus", + type: "int", + nullable: false, + defaultValue: 0); + + migrationBuilder.AddColumn( + name: "PlatformType", + table: "AppPlatformLayouts", + type: "int", + nullable: false, + defaultValue: 0); + } + } +} diff --git a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/PlatformHttpApiHostMigrationsDbContextModelSnapshot.cs b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/PlatformHttpApiHostMigrationsDbContextModelSnapshot.cs index 63f721ef2..9864ac2ba 100644 --- a/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/PlatformHttpApiHostMigrationsDbContextModelSnapshot.cs +++ b/aspnet-core/services/platform/LINGYUN.Platform.HttpApi.Host/Migrations/PlatformHttpApiHostMigrationsDbContextModelSnapshot.cs @@ -1,639 +1,663 @@ -// -using System; -using LINGYUN.Platform.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Volo.Abp.EntityFrameworkCore; - -namespace LINGYUN.Platform.Migrations -{ - [DbContext(typeof(PlatformHttpApiHostMigrationsDbContext))] - partial class PlatformHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) - .HasAnnotation("ProductVersion", "3.1.8") - .HasAnnotation("Relational:MaxIdentifierLength", 64); - - modelBuilder.Entity("LINGYUN.Platform.Datas.Data", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Code") - .IsRequired() - .HasColumnName("Code") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnName("ConcurrencyStamp") - .HasColumnType("varchar(40) CHARACTER SET utf8mb4") - .HasMaxLength(40); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DeleterId") - .HasColumnName("DeleterId") - .HasColumnType("char(36)"); - - b.Property("DeletionTime") - .HasColumnName("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnName("Description") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("DisplayName") - .IsRequired() - .HasColumnName("DisplayName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnName("IsDeleted") - .HasColumnType("tinyint(1)") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("Name") - .IsRequired() - .HasColumnName("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("ParentId") - .HasColumnType("char(36)"); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("Name"); - - b.ToTable("AppPlatformDatas"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("AllowBeNull") - .ValueGeneratedOnAdd() - .HasColumnType("tinyint(1)") - .HasDefaultValue(true); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnName("ConcurrencyStamp") - .HasColumnType("varchar(40) CHARACTER SET utf8mb4") - .HasMaxLength(40); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DataId") - .HasColumnType("char(36)"); - - b.Property("DefaultValue") - .HasColumnName("DefaultValue") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("DeleterId") - .HasColumnName("DeleterId") - .HasColumnType("char(36)"); - - b.Property("DeletionTime") - .HasColumnName("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnName("Description") - .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") - .HasMaxLength(1024); - - b.Property("DisplayName") - .IsRequired() - .HasColumnName("DisplayName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnName("IsDeleted") - .HasColumnType("tinyint(1)") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("Name") - .IsRequired() - .HasColumnName("Name") - .HasColumnType("varchar(30) CHARACTER SET utf8mb4") - .HasMaxLength(30); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.Property("ValueType") - .HasColumnType("int"); - - b.HasKey("Id"); - - b.HasIndex("DataId"); - - b.HasIndex("Name"); - - b.ToTable("AppPlatformDataItems"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Layouts.Layout", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnName("ConcurrencyStamp") - .HasColumnType("varchar(40) CHARACTER SET utf8mb4") - .HasMaxLength(40); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DataId") - .HasColumnType("char(36)"); - - b.Property("DeleterId") - .HasColumnName("DeleterId") - .HasColumnType("char(36)"); - - b.Property("DeletionTime") - .HasColumnName("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnName("DisplayName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnName("IsDeleted") - .HasColumnType("tinyint(1)") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("Name") - .IsRequired() - .HasColumnName("Name") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("Path") - .HasColumnName("Path") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("PlatformType") - .HasColumnType("int"); - - b.Property("Redirect") - .HasColumnName("Redirect") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.ToTable("AppPlatformLayouts"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Menus.Menu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("Code") - .IsRequired() - .HasColumnName("Code") - .HasColumnType("varchar(23) CHARACTER SET utf8mb4") - .HasMaxLength(23); - - b.Property("Component") - .IsRequired() - .HasColumnName("Component") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnName("ConcurrencyStamp") - .HasColumnType("varchar(40) CHARACTER SET utf8mb4") - .HasMaxLength(40); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DeleterId") - .HasColumnName("DeleterId") - .HasColumnType("char(36)"); - - b.Property("DeletionTime") - .HasColumnName("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("DisplayName") - .IsRequired() - .HasColumnName("DisplayName") - .HasColumnType("varchar(128) CHARACTER SET utf8mb4") - .HasMaxLength(128); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnName("IsDeleted") - .HasColumnType("tinyint(1)") - .HasDefaultValue(false); - - b.Property("IsPublic") - .HasColumnType("tinyint(1)"); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("LayoutId") - .HasColumnType("char(36)"); - - b.Property("Name") - .IsRequired() - .HasColumnName("Name") - .HasColumnType("varchar(64) CHARACTER SET utf8mb4") - .HasMaxLength(64); - - b.Property("ParentId") - .HasColumnType("char(36)"); - - b.Property("Path") - .HasColumnName("Path") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("PlatformType") - .HasColumnType("int"); - - b.Property("Redirect") - .HasColumnName("Redirect") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.ToTable("AppPlatformMenus"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Menus.RoleMenu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("MenuId") - .HasColumnType("char(36)"); - - b.Property("RoleName") - .IsRequired() - .HasColumnName("RoleName") - .HasColumnType("varchar(256) CHARACTER SET utf8mb4") - .HasMaxLength(256); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("RoleName", "MenuId"); - - b.ToTable("AppPlatformRoleMenus"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Menus.UserMenu", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("MenuId") - .HasColumnType("char(36)"); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.Property("UserId") - .HasColumnType("char(36)"); - - b.HasKey("Id"); - - b.HasIndex("UserId", "MenuId"); - - b.ToTable("AppPlatformUserMenus"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Versions.AppVersion", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("char(36)"); - - b.Property("ConcurrencyStamp") - .IsConcurrencyToken() - .HasColumnName("ConcurrencyStamp") - .HasColumnType("varchar(40) CHARACTER SET utf8mb4") - .HasMaxLength(40); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DeleterId") - .HasColumnName("DeleterId") - .HasColumnType("char(36)"); - - b.Property("DeletionTime") - .HasColumnName("DeletionTime") - .HasColumnType("datetime(6)"); - - b.Property("Description") - .HasColumnName("Description") - .HasColumnType("longtext CHARACTER SET utf8mb4") - .HasMaxLength(2048); - - b.Property("ExtraProperties") - .HasColumnName("ExtraProperties") - .HasColumnType("longtext CHARACTER SET utf8mb4"); - - b.Property("IsDeleted") - .ValueGeneratedOnAdd() - .HasColumnName("IsDeleted") - .HasColumnType("tinyint(1)") - .HasDefaultValue(false); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("Level") - .HasColumnType("int"); - - b.Property("PlatformType") - .HasColumnType("int"); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.Property("Title") - .IsRequired() - .HasColumnName("Title") - .HasColumnType("varchar(50) CHARACTER SET utf8mb4") - .HasMaxLength(50); - - b.Property("Version") - .IsRequired() - .HasColumnName("Version") - .HasColumnType("varchar(20) CHARACTER SET utf8mb4") - .HasMaxLength(20); - - b.HasKey("Id"); - - b.HasIndex("Version"); - - b.ToTable("AppPlatformVersion"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int"); - - b.Property("AppVersionId") - .HasColumnType("char(36)"); - - b.Property("CreationTime") - .HasColumnName("CreationTime") - .HasColumnType("datetime(6)"); - - b.Property("CreatorId") - .HasColumnName("CreatorId") - .HasColumnType("char(36)"); - - b.Property("DownloadCount") - .HasColumnType("int"); - - b.Property("FileType") - .HasColumnType("int"); - - b.Property("LastModificationTime") - .HasColumnName("LastModificationTime") - .HasColumnType("datetime(6)"); - - b.Property("LastModifierId") - .HasColumnName("LastModifierId") - .HasColumnType("char(36)"); - - b.Property("Name") - .IsRequired() - .HasColumnName("Name") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("Path") - .HasColumnName("Path") - .HasColumnType("varchar(255) CHARACTER SET utf8mb4") - .HasMaxLength(255); - - b.Property("SHA256") - .IsRequired() - .HasColumnName("SHA256") - .HasColumnType("varchar(65) CHARACTER SET utf8mb4") - .HasMaxLength(65); - - b.Property("Size") - .HasColumnType("bigint"); - - b.Property("TenantId") - .HasColumnName("TenantId") - .HasColumnType("char(36)"); - - b.Property("Version") - .IsRequired() - .HasColumnName("Version") - .HasColumnType("varchar(20) CHARACTER SET utf8mb4") - .HasMaxLength(20); - - b.HasKey("Id"); - - b.HasIndex("AppVersionId"); - - b.HasIndex("Path", "Name", "Version") - .IsUnique(); - - b.ToTable("AppPlatformVersionFile"); - }); - - modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => - { - b.HasOne("LINGYUN.Platform.Datas.Data", null) - .WithMany("Items") - .HasForeignKey("DataId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); - - modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => - { - b.HasOne("LINGYUN.Platform.Versions.AppVersion", "AppVersion") - .WithMany("Files") - .HasForeignKey("AppVersionId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - }); -#pragma warning restore 612, 618 - } - } -} +// +using System; +using LINGYUN.Platform.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using Volo.Abp.EntityFrameworkCore; + +namespace LINGYUN.Platform.Migrations +{ + [DbContext(typeof(PlatformHttpApiHostMigrationsDbContext))] + partial class PlatformHttpApiHostMigrationsDbContextModelSnapshot : ModelSnapshot + { + protected override void BuildModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("_Abp_DatabaseProvider", EfCoreDatabaseProvider.MySql) + .HasAnnotation("Relational:MaxIdentifierLength", 64) + .HasAnnotation("ProductVersion", "5.0.7"); + + modelBuilder.Entity("LINGYUN.Platform.Datas.Data", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Code"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("Name"); + + b.ToTable("AppPlatformDatas"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("AllowBeNull") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(true); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DataId") + .HasColumnType("char(36)"); + + b.Property("DefaultValue") + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DefaultValue"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(1024) + .HasColumnType("varchar(1024) CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsStatic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("varchar(30) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("ValueType") + .HasColumnType("int"); + + b.HasKey("Id"); + + b.HasIndex("DataId"); + + b.HasIndex("Name"); + + b.ToTable("AppPlatformDataItems"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Layouts.Layout", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DataId") + .HasColumnType("char(36)"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("Framework") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Framework"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("Redirect") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Redirect"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.ToTable("AppPlatformLayouts"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.Menu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("Code") + .IsRequired() + .HasMaxLength(23) + .HasColumnType("varchar(23) CHARACTER SET utf8mb4") + .HasColumnName("Code"); + + b.Property("Component") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Component"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasColumnType("longtext CHARACTER SET utf8mb4"); + + b.Property("DisplayName") + .IsRequired() + .HasMaxLength(128) + .HasColumnType("varchar(128) CHARACTER SET utf8mb4") + .HasColumnName("DisplayName"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("Framework") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Framework"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("IsPublic") + .HasColumnType("tinyint(1)"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("LayoutId") + .HasColumnType("char(36)"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("varchar(64) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("ParentId") + .HasColumnType("char(36)"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("Redirect") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Redirect"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.ToTable("AppPlatformMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.RoleMenu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("MenuId") + .HasColumnType("char(36)"); + + b.Property("RoleName") + .IsRequired() + .HasMaxLength(256) + .HasColumnType("varchar(256) CHARACTER SET utf8mb4") + .HasColumnName("RoleName"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.HasKey("Id"); + + b.HasIndex("RoleName", "MenuId"); + + b.ToTable("AppPlatformRoleMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Menus.UserMenu", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("MenuId") + .HasColumnType("char(36)"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("UserId") + .HasColumnType("char(36)"); + + b.HasKey("Id"); + + b.HasIndex("UserId", "MenuId"); + + b.ToTable("AppPlatformUserMenus"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.AppVersion", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("char(36)"); + + b.Property("ConcurrencyStamp") + .IsConcurrencyToken() + .HasMaxLength(40) + .HasColumnType("varchar(40) CHARACTER SET utf8mb4") + .HasColumnName("ConcurrencyStamp"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DeleterId") + .HasColumnType("char(36)") + .HasColumnName("DeleterId"); + + b.Property("DeletionTime") + .HasColumnType("datetime(6)") + .HasColumnName("DeletionTime"); + + b.Property("Description") + .HasMaxLength(2048) + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("Description"); + + b.Property("ExtraProperties") + .HasColumnType("longtext CHARACTER SET utf8mb4") + .HasColumnName("ExtraProperties"); + + b.Property("IsDeleted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasDefaultValue(false) + .HasColumnName("IsDeleted"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("PlatformType") + .HasColumnType("int"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Title") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("varchar(50) CHARACTER SET utf8mb4") + .HasColumnName("Title"); + + b.Property("Version") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20) CHARACTER SET utf8mb4") + .HasColumnName("Version"); + + b.HasKey("Id"); + + b.HasIndex("Version"); + + b.ToTable("AppPlatformVersion"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + b.Property("AppVersionId") + .HasColumnType("char(36)"); + + b.Property("CreationTime") + .HasColumnType("datetime(6)") + .HasColumnName("CreationTime"); + + b.Property("CreatorId") + .HasColumnType("char(36)") + .HasColumnName("CreatorId"); + + b.Property("DownloadCount") + .HasColumnType("int"); + + b.Property("FileType") + .HasColumnType("int"); + + b.Property("LastModificationTime") + .HasColumnType("datetime(6)") + .HasColumnName("LastModificationTime"); + + b.Property("LastModifierId") + .HasColumnType("char(36)") + .HasColumnName("LastModifierId"); + + b.Property("Name") + .IsRequired() + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Name"); + + b.Property("Path") + .HasMaxLength(255) + .HasColumnType("varchar(255) CHARACTER SET utf8mb4") + .HasColumnName("Path"); + + b.Property("SHA256") + .IsRequired() + .HasMaxLength(65) + .HasColumnType("varchar(65) CHARACTER SET utf8mb4") + .HasColumnName("SHA256"); + + b.Property("Size") + .HasColumnType("bigint"); + + b.Property("TenantId") + .HasColumnType("char(36)") + .HasColumnName("TenantId"); + + b.Property("Version") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("varchar(20) CHARACTER SET utf8mb4") + .HasColumnName("Version"); + + b.HasKey("Id"); + + b.HasIndex("AppVersionId"); + + b.HasIndex("Path", "Name", "Version") + .IsUnique(); + + b.ToTable("AppPlatformVersionFile"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.DataItem", b => + { + b.HasOne("LINGYUN.Platform.Datas.Data", null) + .WithMany("Items") + .HasForeignKey("DataId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.VersionFile", b => + { + b.HasOne("LINGYUN.Platform.Versions.AppVersion", "AppVersion") + .WithMany("Files") + .HasForeignKey("AppVersionId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("AppVersion"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Datas.Data", b => + { + b.Navigation("Items"); + }); + + modelBuilder.Entity("LINGYUN.Platform.Versions.AppVersion", b => + { + b.Navigation("Files"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/vueJs/src/api/data-dictionary.ts b/vueJs/src/api/data-dictionary.ts index 808272af4..6b304362a 100644 --- a/vueJs/src/api/data-dictionary.ts +++ b/vueJs/src/api/data-dictionary.ts @@ -1,116 +1,121 @@ -import ApiService from './serviceBase' -import { urlStringify } from '@/utils/index' -import { ListResultDto, PagedResultDto, PagedAndSortedResultRequestDto } from './types' - -const sourceUrl = '/api/platform/datas' -/** 远程服务地址 */ -const serviceUrl = process.env.VUE_APP_BASE_API - -/** 数据字典api接口 */ -export default class DataDictionaryService { - public static get(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Get(_url, serviceUrl) - } - - public static getList(payload: GetDataByPaged) { - const _url = sourceUrl + '?' + urlStringify(payload) - return ApiService.Get>(_url, serviceUrl) - } - - public static getAll() { - const _url = sourceUrl + '/all' - return ApiService.Get>(_url, serviceUrl) - } - - public static create(payload: DataCreate) { - return ApiService.Post(sourceUrl, payload, serviceUrl) - } - - public static update(id: string, payload: DataUpdate) { - const _url = sourceUrl + '/' + id - return ApiService.Put(_url, payload, serviceUrl) - } - - public static delete(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Delete(_url, serviceUrl) - } - - public static appendItem(id: string, payload: DataItemCreate) { - const _url = sourceUrl + '/' + id + '/items' - return ApiService.Post(_url, payload, serviceUrl) - } - - public static updateItem(id: string, name: string, payload: DataItemUpdate) { - const _url = sourceUrl + '/' + id + '/items/' + name - return ApiService.Put(_url, payload, serviceUrl) - } - - public static removeItem(id: string, name: string) { - const _url = sourceUrl + '/' + id + '/items/' + name - return ApiService.Delete(_url, serviceUrl) - } -} - -export enum ValueType { - String = 0, - Numeic = 1, - Boolean = 2, - Date = 3, - DateTime = 4, - Array = 5, - Object = 6 -} - -export class DataItem { - id!: string - name!: string - defaultValue!: string - displayName!: string - description?: string - allowBeNull!: boolean - valueType!: ValueType -} - -export class Data { - id!: string - name!: string - code!: string - displayName!: string - description?: string - parentId?: string - items = new Array() -} - -export class GetDataByPaged extends PagedAndSortedResultRequestDto { - filter = '' -} - -export class DataCreateOrUpdate { - name = '' - displayName = '' - description? = '' -} - -export class DataCreate extends DataCreateOrUpdate { - parentId?: string -} - -export class DataUpdate extends DataCreateOrUpdate { -} - -export class DataItemCreateOrUpdate { - defaultValue = '' - displayName = '' - description? = '' - allowBeNull = true - valueType = ValueType.String -} - -export class DataItemUpdate extends DataItemCreateOrUpdate { -} - -export class DataItemCreate extends DataItemCreateOrUpdate { - name = '' -} +import ApiService from './serviceBase' +import { urlStringify } from '@/utils/index' +import { ListResultDto, PagedResultDto, PagedAndSortedResultRequestDto } from './types' + +const sourceUrl = '/api/platform/datas' +/** 远程服务地址 */ +const serviceUrl = process.env.VUE_APP_BASE_API + +/** 数据字典api接口 */ +export default class DataDictionaryService { + public static get(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Get(_url, serviceUrl) + } + + public static getByName(name: string) { + const _url = sourceUrl + '/by-name/' + name + return ApiService.Get(_url, serviceUrl) + } + + public static getList(payload: GetDataByPaged) { + const _url = sourceUrl + '?' + urlStringify(payload) + return ApiService.Get>(_url, serviceUrl) + } + + public static getAll() { + const _url = sourceUrl + '/all' + return ApiService.Get>(_url, serviceUrl) + } + + public static create(payload: DataCreate) { + return ApiService.Post(sourceUrl, payload, serviceUrl) + } + + public static update(id: string, payload: DataUpdate) { + const _url = sourceUrl + '/' + id + return ApiService.Put(_url, payload, serviceUrl) + } + + public static delete(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Delete(_url, serviceUrl) + } + + public static appendItem(id: string, payload: DataItemCreate) { + const _url = sourceUrl + '/' + id + '/items' + return ApiService.Post(_url, payload, serviceUrl) + } + + public static updateItem(id: string, name: string, payload: DataItemUpdate) { + const _url = sourceUrl + '/' + id + '/items/' + name + return ApiService.Put(_url, payload, serviceUrl) + } + + public static removeItem(id: string, name: string) { + const _url = sourceUrl + '/' + id + '/items/' + name + return ApiService.Delete(_url, serviceUrl) + } +} + +export enum ValueType { + String = 0, + Numeic = 1, + Boolean = 2, + Date = 3, + DateTime = 4, + Array = 5, + Object = 6 +} + +export class DataItem { + id!: string + name!: string + defaultValue!: string + displayName!: string + description?: string + allowBeNull!: boolean + valueType!: ValueType +} + +export class Data { + id!: string + name!: string + code!: string + displayName!: string + description?: string + parentId?: string + items = new Array() +} + +export class GetDataByPaged extends PagedAndSortedResultRequestDto { + filter = '' +} + +export class DataCreateOrUpdate { + name = '' + displayName = '' + description? = '' +} + +export class DataCreate extends DataCreateOrUpdate { + parentId?: string +} + +export class DataUpdate extends DataCreateOrUpdate { +} + +export class DataItemCreateOrUpdate { + defaultValue = '' + displayName = '' + description? = '' + allowBeNull = true + valueType = ValueType.String +} + +export class DataItemUpdate extends DataItemCreateOrUpdate { +} + +export class DataItemCreate extends DataItemCreateOrUpdate { + name = '' +} diff --git a/vueJs/src/api/layout.ts b/vueJs/src/api/layout.ts index a4031bf45..435d14556 100644 --- a/vueJs/src/api/layout.ts +++ b/vueJs/src/api/layout.ts @@ -1,109 +1,77 @@ -import ApiService from './serviceBase' -import { urlStringify } from '@/utils/index' -import { ListResultDto, PagedResultDto, PagedAndSortedResultRequestDto } from './types' - -const sourceUrl = '/api/platform/layouts' -/** 远程服务地址 */ -const serviceUrl = process.env.VUE_APP_BASE_API - -/** 路由相关pi接口 */ -export default class LayoutService { - public static get(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Get(_url, serviceUrl) - } - - public static getAllList() { - const _url = sourceUrl + '/all' - return ApiService.Get>(_url, serviceUrl) - } - - public static getList(payload: GetLayoutByPaged) { - const _url = sourceUrl + '?' + urlStringify(payload) - return ApiService.Get>(_url, serviceUrl) - } - - public static create(payload: LayoutCreate) { - return ApiService.Post(sourceUrl, payload, serviceUrl) - } - - public static update(id: string, payload: LayoutUpdate) { - const _url = sourceUrl + '/' + id - return ApiService.Put(_url, payload, serviceUrl) - } - - public static delete(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Delete(_url, serviceUrl) - } -} - -export enum PlatformType { - None = 0, - WinCe = 2, - WinForm = 4, - Desktop = WinCe | WinForm, - WebForm = 8, - WebMvc = 16, - WebMvvm = 32, - Web = WebForm | WebMvc | WebMvvm, - Android = 64, - iOS = 128, - Mobile = Android | iOS, - MiniProgram = 256, - All = Desktop | Web | Mobile | MiniProgram -} - -export const PlatformTypes = [ - { key: 'None', value: PlatformType.None }, - { key: 'WinCe', value: PlatformType.WinCe }, - { key: 'WinForm', value: PlatformType.WinForm }, - { key: 'Desktop', value: PlatformType.Desktop }, - { key: 'WebForm', value: PlatformType.WebForm }, - { key: 'WebMvc', value: PlatformType.WebMvc }, - { key: 'WebMvvm', value: PlatformType.WebMvvm }, - { key: 'Web', value: PlatformType.Web }, - { key: 'Android', value: PlatformType.Android }, - { key: 'iOS', value: PlatformType.iOS }, - { key: 'Mobile', value: PlatformType.Mobile }, - { key: 'MiniProgram', value: PlatformType.MiniProgram }, - { key: 'All', value: PlatformType.All } -] - -export class Route { - id!: string - name!: string - path!: string - displayName!: string - description?: string - redirect?: string - meta: {[key: string]: any} = {} -} - -export class Layout extends Route { - platformType!: PlatformType - dataId!: string -} - -export class LayoutCreateOrUpdate { - name!: string - path!: string - displayName!: string - description?: string - redirect?: string - platformType!: PlatformType -} - -export class LayoutCreate extends LayoutCreateOrUpdate { - dataId!: string -} - -export class LayoutUpdate extends LayoutCreateOrUpdate { - -} - -export class GetLayoutByPaged extends PagedAndSortedResultRequestDto { - filter = '' - reverse = false - platformType?: PlatformType | null -} +import ApiService from './serviceBase' +import { urlStringify } from '@/utils/index' +import { ListResultDto, PagedResultDto, PagedAndSortedResultRequestDto } from './types' + +const sourceUrl = '/api/platform/layouts' +/** 远程服务地址 */ +const serviceUrl = process.env.VUE_APP_BASE_API + +/** 路由相关pi接口 */ +export default class LayoutService { + public static get(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Get(_url, serviceUrl) + } + + public static getAllList() { + const _url = sourceUrl + '/all' + return ApiService.Get>(_url, serviceUrl) + } + + public static getList(payload: GetLayoutByPaged) { + const _url = sourceUrl + '?' + urlStringify(payload) + return ApiService.Get>(_url, serviceUrl) + } + + public static create(payload: LayoutCreate) { + return ApiService.Post(sourceUrl, payload, serviceUrl) + } + + public static update(id: string, payload: LayoutUpdate) { + const _url = sourceUrl + '/' + id + return ApiService.Put(_url, payload, serviceUrl) + } + + public static delete(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Delete(_url, serviceUrl) + } +} + +export class Route { + id!: string + name!: string + path!: string + displayName!: string + description?: string + redirect?: string + meta: {[key: string]: any} = {} +} + +export class Layout extends Route { + framework!: string + dataId!: string +} + +export class LayoutCreateOrUpdate { + name!: string + path!: string + displayName!: string + description?: string + redirect?: string +} + +export class LayoutCreate extends LayoutCreateOrUpdate { + dataId!: string + framework!: string +} + +export class LayoutUpdate extends LayoutCreateOrUpdate { + +} + +export class GetLayoutByPaged extends PagedAndSortedResultRequestDto { + filter = '' + reverse = false + framework = '' +} diff --git a/vueJs/src/api/menu.ts b/vueJs/src/api/menu.ts index 765781c1e..bbf5e6ba1 100644 --- a/vueJs/src/api/menu.ts +++ b/vueJs/src/api/menu.ts @@ -1,123 +1,122 @@ -import ApiService from './serviceBase' -import { Route, PlatformType } from './layout' -import { urlStringify } from '@/utils/index' -import { ISortedResultRequest, PagedResultDto, PagedAndSortedResultRequestDto, ListResultDto } from './types' - -const sourceUrl = '/api/platform/menus' -/** 远程服务地址 */ -const serviceUrl = process.env.VUE_APP_BASE_API - -/** 路由相关pi接口 */ -export default class MenuService { - public static get(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Get(_url, serviceUrl) - } - - public static getAll(payload: GetAllMenu) { - const _url = sourceUrl + '/all?' + urlStringify(payload) - return ApiService.Get>(_url, serviceUrl) - } - - public static getList(payload: GetMenuByPaged) { - const _url = sourceUrl + '?' + urlStringify(payload) - return ApiService.Get>(_url, serviceUrl) - } - - public static getMyMenuList(platformType: PlatformType) { - const _url = sourceUrl + '/by-current-user?platformType=' + platformType - return ApiService.Get>(_url, serviceUrl) - } - - public static getRoleMenuList(role: string, platformType: PlatformType) { - const _url = sourceUrl + `/by-role/${role}/${platformType}` - return ApiService.Get>(_url, serviceUrl) - } - - public static getUserMenuList(userId: string, platformType: PlatformType) { - const _url = sourceUrl + `/by-user/${userId}/${platformType}` - return ApiService.Get>(_url, serviceUrl) - } - - public static create(payload: MenuCreate) { - return ApiService.Post(sourceUrl, payload, serviceUrl) - } - - public static update(id: string, payload: MenuUpdate) { - const _url = sourceUrl + '/' + id - return ApiService.Put(_url, payload, serviceUrl) - } - - public static delete(id: string) { - const _url = sourceUrl + '/' + id - return ApiService.Delete(_url, serviceUrl) - } - - public static setRoleMenu(payload: RoleMenu) { - const _url = sourceUrl + '/by-role' - return ApiService.Put(_url, payload, serviceUrl) - } - - public static setUserMenu(payload: UserMenu) { - const _url = sourceUrl + '/by-user' - return ApiService.Put(_url, payload, serviceUrl) - } -} - -export class MenuCreateOrUpdate { - name!: string - path!: string - component!: string - displayName!: string - description?: string - redirect?: string - isPublic!: boolean - platformType!: PlatformType - meta: {[key: string]: any} = {} -} - -export class MenuCreate extends MenuCreateOrUpdate { - layoutId!: string - parentId?: string -} - -export class MenuUpdate extends MenuCreateOrUpdate { - -} - -export class GetAllMenu implements ISortedResultRequest { - filter = '' - sorting = '' - reverse = false - parentId?: string - layoutId?: string - platformType?: PlatformType -} - -export class GetMenuByPaged extends PagedAndSortedResultRequestDto { - filter = '' - reverse = false - layoutId?: string - parentId?: string - platformType?: PlatformType -} - -export class Menu extends Route { - code!: string - layoutId!: string - component!: string - platformType!: PlatformType - parentId?: string - isPublic!: boolean - children = new Array() -} - -export class RoleMenu { - roleName!: string - menuIds = new Array() -} - -export class UserMenu { - userId!: string - menuIds = new Array() -} +import ApiService from './serviceBase' +import { Route } from './layout' +import { urlStringify } from '@/utils/index' +import { ISortedResultRequest, PagedResultDto, PagedAndSortedResultRequestDto, ListResultDto } from './types' + +const sourceUrl = '/api/platform/menus' +/** 远程服务地址 */ +const serviceUrl = process.env.VUE_APP_BASE_API + +/** 路由相关pi接口 */ +export default class MenuService { + public static get(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Get(_url, serviceUrl) + } + + public static getAll(payload: GetAllMenu) { + const _url = sourceUrl + '/all?' + urlStringify(payload) + return ApiService.Get>(_url, serviceUrl) + } + + public static getList(payload: GetMenuByPaged) { + const _url = sourceUrl + '?' + urlStringify(payload) + return ApiService.Get>(_url, serviceUrl) + } + + public static getMyMenuList(framework: string) { + const _url = sourceUrl + '/by-current-user?framework=' + framework + return ApiService.Get>(_url, serviceUrl) + } + + public static getRoleMenuList(role: string, framework: string) { + const _url = sourceUrl + `/by-role/${role}/${framework}` + return ApiService.Get>(_url, serviceUrl) + } + + public static getUserMenuList(userId: string, framework: string) { + const _url = sourceUrl + `/by-user/${userId}/${framework}` + return ApiService.Get>(_url, serviceUrl) + } + + public static create(payload: MenuCreate) { + return ApiService.Post(sourceUrl, payload, serviceUrl) + } + + public static update(id: string, payload: MenuUpdate) { + const _url = sourceUrl + '/' + id + return ApiService.Put(_url, payload, serviceUrl) + } + + public static delete(id: string) { + const _url = sourceUrl + '/' + id + return ApiService.Delete(_url, serviceUrl) + } + + public static setRoleMenu(payload: RoleMenu) { + const _url = sourceUrl + '/by-role' + return ApiService.Put(_url, payload, serviceUrl) + } + + public static setUserMenu(payload: UserMenu) { + const _url = sourceUrl + '/by-user' + return ApiService.Put(_url, payload, serviceUrl) + } +} + +export class MenuCreateOrUpdate { + name!: string + path!: string + component!: string + displayName!: string + description?: string + redirect?: string + isPublic!: boolean + meta: {[key: string]: any} = {} +} + +export class MenuCreate extends MenuCreateOrUpdate { + layoutId!: string + parentId?: string +} + +export class MenuUpdate extends MenuCreateOrUpdate { + +} + +export class GetAllMenu implements ISortedResultRequest { + filter = '' + sorting = '' + reverse = false + parentId?: string + layoutId?: string + framework = '' +} + +export class GetMenuByPaged extends PagedAndSortedResultRequestDto { + filter = '' + reverse = false + layoutId?: string + parentId?: string + framework = '' +} + +export class Menu extends Route { + code!: string + layoutId!: string + component!: string + framework = '' + parentId?: string + isPublic!: boolean + children = new Array() +} + +export class RoleMenu { + roleName!: string + menuIds = new Array() +} + +export class UserMenu { + userId!: string + menuIds = new Array() +} diff --git a/vueJs/src/store/modules/permission.ts b/vueJs/src/store/modules/permission.ts index a82709348..a77c4b68e 100644 --- a/vueJs/src/store/modules/permission.ts +++ b/vueJs/src/store/modules/permission.ts @@ -1,142 +1,141 @@ -import { VuexModule, Module, Mutation, Action, getModule } from 'vuex-module-decorators' -import { RouteConfig } from 'vue-router' -// eslint-disable-next-line -import { asyncRoutes, constantRoutes } from '@/router' -import store from '@/store' -import { AbpModule } from '@/store/modules/abp' -import MenuService, { Menu } from '@/api/menu' -import { PlatformType } from '@/api/layout' -import { generateTree } from '@/utils' - -const mapMetaBoolean = (key: string, meta: any) => { - return typeof meta[key] === 'boolean' ? meta[key] : meta[key] === 'true' -} - -const mapMetaArray = (key: string, meta: any) => { - return Array.isArray(meta[key]) ? meta[key] : String(meta[key]).split(',') -} - -const hasPermission = (roles: string[], route: RouteConfig) => { - if (route.meta && route.meta.roles) { - return roles.some(role => route.meta.roles.includes(role)) - } else { - return true - } -} - -export const filterAsyncRoutes = (routes: RouteConfig[], roles: string[]) => { - const res: RouteConfig[] = [] - routes.forEach(route => { - const r = { ...route } - if (hasPermission(roles, r)) { - if (r.children) { - r.children = filterAsyncRoutes(r.children, roles) - } - res.push(r) - } - }) - return res -} - -const filterDynamicRoutes = (menus: Menu[]) => { - const res: RouteConfig[] = [] - - menus.forEach(menu => { - const r: RouteConfig = { - path: menu.path, - name: menu.name, - redirect: menu.redirect, - // meta自行转换 - meta: { - activeMenu: menu.meta.activeMenu, - affix: mapMetaBoolean('affix', menu.meta), // 需要转换为正确的bool类型 - noCache: mapMetaBoolean('noCache', menu.meta), - breadcrumb: mapMetaBoolean('breadcrumb', menu.meta), - alwaysShow: mapMetaBoolean('alwaysShow', menu.meta), - hidden: mapMetaBoolean('hidden', menu.meta), - icon: menu.meta.icon, - title: menu.meta.title, - displayName: menu.displayName, - roles: mapMetaArray('roles', menu.meta) // 需要转换为正确的array类型 - }, - component: resolve => require([`@/${menu.component}`], resolve) // 需要这种格式才可以正确加载动态路由 - } - if (menu.children && menu.children.length > 0) { - r.children = filterDynamicRoutes(menu.children) - } - res.push(r) - }) - return res -} - -export interface IPermissionState { - routes: RouteConfig[] - dynamicRoutes: RouteConfig[] -} - -@Module({ dynamic: true, store, name: 'permission' }) -class Permission extends VuexModule implements IPermissionState { - public routes: RouteConfig[] = [] - public dynamicRoutes: RouteConfig[] = [] - public authorizedPermissions: string[] = [] - - @Mutation - private SET_ROUTES(routes: RouteConfig[]) { - this.routes = constantRoutes.concat(routes) - this.dynamicRoutes = routes - } - - @Mutation - private SET_AUTHPERMISSIONS(permissions: Array) { - this.authorizedPermissions = permissions - } - - @Action - public async RefreshPermissions() { - const authPermissions = new Array() - const grantedPolicies = AbpModule.configuration.auth.grantedPolicies - if (grantedPolicies) { - Object.keys(grantedPolicies).forEach(key => { - if (grantedPolicies[key]) { - authPermissions.push(key) - } - }) - } - if (authPermissions.length === 0) { - // 防止没有任何权限无限刷新页面 - this.SET_AUTHPERMISSIONS(['guest']) - } else { - this.SET_AUTHPERMISSIONS(authPermissions) - } - } - - @Action - public async GenerateRoutes() { - await this.RefreshPermissions() // 保留授权 - // 没必要再针对admin角色授权,改成全部后台授权 - // if (this.authorizedPermissions.includes('admin')) { - // accessedRoutes = asyncRoutes - // } else { - // accessedRoutes = filterAsyncRoutes(asyncRoutes, this.authorizedPermissions) - // } - - // 取消注释用来启用后端动态路由配置 - const { items } = await MenuService.getMyMenuList(PlatformType.WebMvvm) - const dynamicRoutes = filterDynamicRoutes(generateTree(items)) - this.SET_ROUTES(dynamicRoutes) - - // 取消注释用来启用前端动态路由配置 - // const accessedRoutes = filterAsyncRoutes(asyncRoutes, this.authorizedPermissions) - // this.SET_ROUTES(accessedRoutes) - } - - @Action ResetPermissions() { - this.SET_AUTHPERMISSIONS([]) - } - - @Action ResetRoutes() { - this.SET_ROUTES([]) - } -} - -export const PermissionModule = getModule(Permission) +import { VuexModule, Module, Mutation, Action, getModule } from 'vuex-module-decorators' +import { RouteConfig } from 'vue-router' +// eslint-disable-next-line +import { asyncRoutes, constantRoutes } from '@/router' +import store from '@/store' +import { AbpModule } from '@/store/modules/abp' +import MenuService, { Menu } from '@/api/menu' +import { generateTree } from '@/utils' + +const mapMetaBoolean = (key: string, meta: any) => { + return typeof meta[key] === 'boolean' ? meta[key] : meta[key] === 'true' +} + +const mapMetaArray = (key: string, meta: any) => { + return Array.isArray(meta[key]) ? meta[key] : String(meta[key]).split(',') +} + +const hasPermission = (roles: string[], route: RouteConfig) => { + if (route.meta && route.meta.roles) { + return roles.some(role => route.meta.roles.includes(role)) + } else { + return true + } +} + +export const filterAsyncRoutes = (routes: RouteConfig[], roles: string[]) => { + const res: RouteConfig[] = [] + routes.forEach(route => { + const r = { ...route } + if (hasPermission(roles, r)) { + if (r.children) { + r.children = filterAsyncRoutes(r.children, roles) + } + res.push(r) + } + }) + return res +} + +const filterDynamicRoutes = (menus: Menu[]) => { + const res: RouteConfig[] = [] + + menus.forEach(menu => { + const r: RouteConfig = { + path: menu.path, + name: menu.name, + redirect: menu.redirect, + // meta自行转换 + meta: { + activeMenu: menu.meta.activeMenu, + affix: mapMetaBoolean('affix', menu.meta), // 需要转换为正确的bool类型 + noCache: mapMetaBoolean('noCache', menu.meta), + breadcrumb: mapMetaBoolean('breadcrumb', menu.meta), + alwaysShow: mapMetaBoolean('alwaysShow', menu.meta), + hidden: mapMetaBoolean('hidden', menu.meta), + icon: menu.meta.icon, + title: menu.meta.title, + displayName: menu.displayName, + roles: mapMetaArray('roles', menu.meta) // 需要转换为正确的array类型 + }, + component: resolve => require([`@/${menu.component}`], resolve) // 需要这种格式才可以正确加载动态路由 + } + if (menu.children && menu.children.length > 0) { + r.children = filterDynamicRoutes(menu.children) + } + res.push(r) + }) + return res +} + +export interface IPermissionState { + routes: RouteConfig[] + dynamicRoutes: RouteConfig[] +} + +@Module({ dynamic: true, store, name: 'permission' }) +class Permission extends VuexModule implements IPermissionState { + public routes: RouteConfig[] = [] + public dynamicRoutes: RouteConfig[] = [] + public authorizedPermissions: string[] = [] + + @Mutation + private SET_ROUTES(routes: RouteConfig[]) { + this.routes = constantRoutes.concat(routes) + this.dynamicRoutes = routes + } + + @Mutation + private SET_AUTHPERMISSIONS(permissions: Array) { + this.authorizedPermissions = permissions + } + + @Action + public async RefreshPermissions() { + const authPermissions = new Array() + const grantedPolicies = AbpModule.configuration.auth.grantedPolicies + if (grantedPolicies) { + Object.keys(grantedPolicies).forEach(key => { + if (grantedPolicies[key]) { + authPermissions.push(key) + } + }) + } + if (authPermissions.length === 0) { + // 防止没有任何权限无限刷新页面 + this.SET_AUTHPERMISSIONS(['guest']) + } else { + this.SET_AUTHPERMISSIONS(authPermissions) + } + } + + @Action + public async GenerateRoutes() { + await this.RefreshPermissions() // 保留授权 + // 没必要再针对admin角色授权,改成全部后台授权 + // if (this.authorizedPermissions.includes('admin')) { + // accessedRoutes = asyncRoutes + // } else { + // accessedRoutes = filterAsyncRoutes(asyncRoutes, this.authorizedPermissions) + // } + + // 取消注释用来启用后端动态路由配置 + const { items } = await MenuService.getMyMenuList('Vue Element Admin') + const dynamicRoutes = filterDynamicRoutes(generateTree(items)) + this.SET_ROUTES(dynamicRoutes) + + // 取消注释用来启用前端动态路由配置 + // const accessedRoutes = filterAsyncRoutes(asyncRoutes, this.authorizedPermissions) + // this.SET_ROUTES(accessedRoutes) + } + + @Action ResetPermissions() { + this.SET_AUTHPERMISSIONS([]) + } + + @Action ResetRoutes() { + this.SET_ROUTES([]) + } +} + +export const PermissionModule = getModule(Permission) diff --git a/vueJs/src/views/admin/data-dictionary/components/DataDictionaryTree.vue b/vueJs/src/views/admin/data-dictionary/components/DataDictionaryTree.vue index eff72b3e7..b31ab990b 100644 --- a/vueJs/src/views/admin/data-dictionary/components/DataDictionaryTree.vue +++ b/vueJs/src/views/admin/data-dictionary/components/DataDictionaryTree.vue @@ -1,205 +1,203 @@ - - - - - + + + + + diff --git a/vueJs/src/views/admin/roles/components/ManageRoleMenuDialog.vue b/vueJs/src/views/admin/roles/components/ManageRoleMenuDialog.vue index f1baad718..a22537348 100644 --- a/vueJs/src/views/admin/roles/components/ManageRoleMenuDialog.vue +++ b/vueJs/src/views/admin/roles/components/ManageRoleMenuDialog.vue @@ -1,173 +1,185 @@ - - - - - + + + + + diff --git a/vueJs/src/views/admin/roles/index.vue b/vueJs/src/views/admin/roles/index.vue index 0eee8411d..84c304ba1 100644 --- a/vueJs/src/views/admin/roles/index.vue +++ b/vueJs/src/views/admin/roles/index.vue @@ -1,358 +1,358 @@ - - - - - + + + + + diff --git a/vueJs/src/views/admin/users/components/ManageUserMenuDialog.vue b/vueJs/src/views/admin/users/components/ManageUserMenuDialog.vue index ba402e268..bc2b9c126 100644 --- a/vueJs/src/views/admin/users/components/ManageUserMenuDialog.vue +++ b/vueJs/src/views/admin/users/components/ManageUserMenuDialog.vue @@ -1,173 +1,185 @@ - - - - - + + + + + diff --git a/vueJs/src/views/admin/users/index.vue b/vueJs/src/views/admin/users/index.vue index 5d5d48f74..1e07f05ff 100644 --- a/vueJs/src/views/admin/users/index.vue +++ b/vueJs/src/views/admin/users/index.vue @@ -1,373 +1,373 @@ - - - - - + + + + + diff --git a/vueJs/src/views/container/layouts/components/CreateOrUpdateLayoutDialog.vue b/vueJs/src/views/container/layouts/components/CreateOrUpdateLayoutDialog.vue index 3cdb29dd2..97a34a7b2 100644 --- a/vueJs/src/views/container/layouts/components/CreateOrUpdateLayoutDialog.vue +++ b/vueJs/src/views/container/layouts/components/CreateOrUpdateLayoutDialog.vue @@ -1,276 +1,279 @@ - - - - - + + + + + diff --git a/vueJs/src/views/container/layouts/index.vue b/vueJs/src/views/container/layouts/index.vue index 1dbc5c38f..bd7978573 100644 --- a/vueJs/src/views/container/layouts/index.vue +++ b/vueJs/src/views/container/layouts/index.vue @@ -1,237 +1,249 @@ - - - - - + + + + + diff --git a/vueJs/src/views/container/menus/index.vue b/vueJs/src/views/container/menus/index.vue index 910b15061..5fa545305 100644 --- a/vueJs/src/views/container/menus/index.vue +++ b/vueJs/src/views/container/menus/index.vue @@ -1,286 +1,297 @@ - - - - - + + + + + diff --git a/vueJs/vue.config.js b/vueJs/vue.config.js index b0958d90e..800f26d33 100644 --- a/vueJs/vue.config.js +++ b/vueJs/vue.config.js @@ -1,120 +1,120 @@ -// eslint-disable-next-line @typescript-eslint/no-var-requires -const path = require('path') - -// If your port is set to 80, -// use administrator privileges to execute the command line. -// For example, on Mac: sudo npm run / sudo yarn -const devServerPort = 9527 // TODO: get this variable from setting.ts -const name = 'Vue Typescript Admin' // TODO: get this variable from setting.ts - -module.exports = { - publicPath: process.env.NODE_ENV === 'production' ? '/' : '/vue-typescript-admin-template/', - lintOnSave: process.env.NODE_ENV === 'development', - productionSourceMap: false, - devServer: { - port: devServerPort, - open: true, - overlay: { - warnings: false, - errors: true - }, - progress: false, - proxy: { - // change xxx-api/login => /mock-api/v1/login - // detail: https://cli.vuejs.org/config/#devserver-proxy - [process.env.VUE_APP_BASE_IDENTITY_SERVER]: { - // IdentityServer4 address - target: 'http://127.0.0.1:44385', - changeOrigin: true, - pathRewrite: { - ['^' + process.env.VUE_APP_BASE_IDENTITY_SERVER]: '' - } - }, - [process.env.VUE_APP_SIGNALR_SERVER]: { - // api gateway address websocket protocol - target: 'ws://127.0.0.1:30000', - changeOrigin: true, - pathRewrite: { - ['^' + process.env.VUE_APP_SIGNALR_SERVER]: '' - }, - logLevel: 'debug' - }, - [process.env.VUE_APP_BASE_API]: { - // api gateway address - target: 'http://127.0.0.1:30000', - changeOrigin: true, - pathRewrite: { - ['^' + process.env.VUE_APP_BASE_API]: '' - }, - logLevel: 'debug' - } - } - }, - pwa: { - name: name, - workboxPluginMode: 'InjectManifest', - workboxOptions: { - swSrc: path.resolve(__dirname, 'src/pwa/service-worker.js') - } - }, - pluginOptions: { - 'style-resources-loader': { - preProcessor: 'scss', - patterns: [ - path.resolve(__dirname, 'src/styles/_variables.scss'), - path.resolve(__dirname, 'src/styles/_mixins.scss') - ] - } - }, - chainWebpack(config) { - // provide the app's title in webpack's name field, so that - // it can be accessed in index.html to inject the correct title. - config.set('name', name) - - // https://webpack.js.org/configuration/devtool/#development - config - .when(process.env.NODE_ENV === 'development', - config => config.devtool('cheap-eval-source-map') - ) - - // remove vue-cli-service's progress output - config.plugins.delete('progress') - // replace with another progress output plugin to solve the this bug: - // https://github.com/vuejs/vue-cli/issues/4557 - config.plugin('simple-progress-webpack-plugin') - .use(require.resolve('simple-progress-webpack-plugin'), [{ - format: 'compact' - }]) - - config - .when(process.env.NODE_ENV !== 'development', - config => { - config - .optimization.splitChunks({ - chunks: 'all', - cacheGroups: { - libs: { - name: 'chunk-libs', - test: /[\\/]node_modules[\\/]/, - priority: 10, - chunks: 'initial' // only package third parties that are initially dependent - }, - elementUI: { - name: 'chunk-elementUI', // split elementUI into a single package - priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app - test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm - }, - commons: { - name: 'chunk-commons', - test: path.resolve(__dirname, 'src/components'), - minChunks: 3, // minimum common number - priority: 5, - reuseExistingChunk: true - } - } - }) - config.optimization.runtimeChunk('single') - } - ) - } -} +// eslint-disable-next-line @typescript-eslint/no-var-requires +const path = require('path') + +// If your port is set to 80, +// use administrator privileges to execute the command line. +// For example, on Mac: sudo npm run / sudo yarn +const devServerPort = 9527 // TODO: get this variable from setting.ts +const name = 'Vue Typescript Admin' // TODO: get this variable from setting.ts + +module.exports = { + publicPath: process.env.NODE_ENV === 'production' ? '/' : '/vue-typescript-admin-template/', + lintOnSave: process.env.NODE_ENV === 'development', + productionSourceMap: false, + devServer: { + port: devServerPort, + open: true, + overlay: { + warnings: false, + errors: true + }, + progress: false, + proxy: { + // change xxx-api/login => /mock-api/v1/login + // detail: https://cli.vuejs.org/config/#devserver-proxy + [process.env.VUE_APP_BASE_IDENTITY_SERVER]: { + // IdentityServer4 address + target: 'http://10.21.15.28:44385', + changeOrigin: true, + pathRewrite: { + ['^' + process.env.VUE_APP_BASE_IDENTITY_SERVER]: '' + } + }, + [process.env.VUE_APP_SIGNALR_SERVER]: { + // api gateway address websocket protocol + target: 'ws://10.21.15.28:30000', + changeOrigin: true, + pathRewrite: { + ['^' + process.env.VUE_APP_SIGNALR_SERVER]: '' + }, + logLevel: 'debug' + }, + [process.env.VUE_APP_BASE_API]: { + // api gateway address + target: 'http://10.21.15.28:30000', + changeOrigin: true, + pathRewrite: { + ['^' + process.env.VUE_APP_BASE_API]: '' + }, + logLevel: 'debug' + } + } + }, + pwa: { + name: name, + workboxPluginMode: 'InjectManifest', + workboxOptions: { + swSrc: path.resolve(__dirname, 'src/pwa/service-worker.js') + } + }, + pluginOptions: { + 'style-resources-loader': { + preProcessor: 'scss', + patterns: [ + path.resolve(__dirname, 'src/styles/_variables.scss'), + path.resolve(__dirname, 'src/styles/_mixins.scss') + ] + } + }, + chainWebpack(config) { + // provide the app's title in webpack's name field, so that + // it can be accessed in index.html to inject the correct title. + config.set('name', name) + + // https://webpack.js.org/configuration/devtool/#development + config + .when(process.env.NODE_ENV === 'development', + config => config.devtool('cheap-eval-source-map') + ) + + // remove vue-cli-service's progress output + config.plugins.delete('progress') + // replace with another progress output plugin to solve the this bug: + // https://github.com/vuejs/vue-cli/issues/4557 + config.plugin('simple-progress-webpack-plugin') + .use(require.resolve('simple-progress-webpack-plugin'), [{ + format: 'compact' + }]) + + config + .when(process.env.NODE_ENV !== 'development', + config => { + config + .optimization.splitChunks({ + chunks: 'all', + cacheGroups: { + libs: { + name: 'chunk-libs', + test: /[\\/]node_modules[\\/]/, + priority: 10, + chunks: 'initial' // only package third parties that are initially dependent + }, + elementUI: { + name: 'chunk-elementUI', // split elementUI into a single package + priority: 20, // the weight needs to be larger than libs and app or it will be packaged into libs or app + test: /[\\/]node_modules[\\/]_?element-ui(.*)/ // in order to adapt to cnpm + }, + commons: { + name: 'chunk-commons', + test: path.resolve(__dirname, 'src/components'), + minChunks: 3, // minimum common number + priority: 5, + reuseExistingChunk: true + } + } + }) + config.optimization.runtimeChunk('single') + } + ) + } +}