diff --git a/aspnet-core/migrate-database.bat b/aspnet-core/migrate-database.bat new file mode 100644 index 000000000..4ce04c22f --- /dev/null +++ b/aspnet-core/migrate-database.bat @@ -0,0 +1,19 @@ +@echo off +cls +set stime=8 + +start .\migrate-db-cmd.bat LY.MicroService.BackendAdmin.DbMigrator admin --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.AuthServer.DbMigrator auth-server --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.IdentityServer.DbMigrator identityserver4-admin --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.LocalizationManagement.DbMigrator localization --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.Platform.DbMigrator platform --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.RealtimeMessage.DbMigrator messages --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.TaskManagement.DbMigrator task-management --run +ping -n %stime% 127.1 >nul +start .\migrate-db-cmd.bat LY.MicroService.WebhooksManagement.DbMigrator webhooks-management --run diff --git a/aspnet-core/migrate-db-cmd.bat b/aspnet-core/migrate-db-cmd.bat new file mode 100644 index 000000000..87b9014f6 --- /dev/null +++ b/aspnet-core/migrate-db-cmd.bat @@ -0,0 +1,28 @@ +@echo off +cls +chcp 65001 + +title %2 + +@echo %2 migration running + +cd .\migrations\%1 + +if '%3' equ '--run' goto run +if '%3' equ '--restore' goto restore +if '%3' equ '--ef-u' goto efu +if '%3' equ '' goto run +exit + +:run +dotnet run +pause +exit + +:restore +dotnet restore +exit + +:efu +dotnet ef databse update +exit \ 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 6dddd8baf..283841978 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 @@ -21,6 +21,7 @@ "DisplayName:Code": "编号", "DisplayName:IsPublic": "是否公用的", "DisplayName:DisplayName": "显示名称", + "DisplayName:UIFramework": "UI框架", "DisplayName:Description": "说明", "DisplayName:AllowBeNull": "允许空值", "DisplayName:DefaultValue": "默认值", diff --git a/aspnet-core/start-all-service.bat b/aspnet-core/start-all-service.bat index 3fb1a6c24..77bace5bd 100644 --- a/aspnet-core/start-all-service.bat +++ b/aspnet-core/start-all-service.bat @@ -1,12 +1,25 @@ @echo off cls +set stime=8 start .\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --run +ping -n %stime% 127.1 >nul +start .\start-http-api-host.bat LY.MicroService.WebhooksManagement.HttpApi.Host webhooks-management--run +ping -n %stime% 127.1 >nul +start .\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host realtime-message --run +ping -n %stime% 127.1 >nul +start .\start-http-api-host.bat LY.MicroService.WorkflowManagement.HttpApi.Host workflow-management --run +ping -n %stime% 127.1 >nul start .\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --run -ping -n 10 127.1 >nul +ping -n %stime% 127.1 >nul start .\start-internal-gateway.bat --run \ No newline at end of file diff --git a/aspnet-core/start-http-api-host.bat b/aspnet-core/start-http-api-host.bat index cf24de8fd..7c64a265d 100644 --- a/aspnet-core/start-http-api-host.bat +++ b/aspnet-core/start-http-api-host.bat @@ -2,6 +2,9 @@ cls chcp 65001 +title %2-host +@echo %2-host + cd .\services\%1 if '%3' equ '--publish' goto publish diff --git a/gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json b/gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json index edfd81263..114264ea7 100644 --- a/gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json +++ b/gateways/web/LY.MicroService.ApiGateway/appsettings.Development.json @@ -11,15 +11,15 @@ "CorsOrigins": "http://127.0.0.1:3100" }, "ConnectionStrings": { - "Default": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpIdentity": "Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456", - "AbpIdentityServer": "Server=127.0.0.1;Database=IdentityServer;User Id=root;Password=123456", - "AbpSaas": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpSettingManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpFeatureManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpPermissionManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpLocalizationManagement": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456", - "AbpTextTemplating": "Server=127.0.0.1;Database=Platform;User Id=root;Password=123456" + "Default": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpIdentity": "Server=127.0.0.1;Database=IdentityServer-v70;User Id=root;Password=123456", + "AbpIdentityServer": "Server=127.0.0.1;Database=IdentityServer-v70;User Id=root;Password=123456", + "AbpSaas": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpSettingManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpFeatureManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpPermissionManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpLocalizationManagement": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456", + "AbpTextTemplating": "Server=127.0.0.1;Database=Platform-v70;User Id=root;Password=123456" }, "AuthServer": { "Authority": "http://127.0.0.1:44385/",