From b2d5a99efc58c0499dec9ccd005c44bdb2e476b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AE=8F?= Date: Wed, 16 Aug 2023 00:56:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=81=9A=E5=90=88=E4=BA=91?= =?UTF-8?q?=E6=8E=A8NewtownJson=E4=B8=BASystemTextJson=EF=BC=8C=E4=B8=8E?= =?UTF-8?q?=E5=85=B6=E5=AE=83=E9=A1=B9=E7=9B=AE=E7=BB=9F=E4=B8=80=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9Host=E9=A1=B9=E7=9B=AE=EF=BC=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0Console.Title=E8=AF=B4=E6=98=8E=EF=BC=8C=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E5=90=AF=E5=8A=A8=E5=8F=8A=E8=B0=83=E8=AF=95=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=20=E5=A2=9E=E5=8A=A0watch=20run=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=EF=BC=8C=E6=96=B9=E4=BE=BF=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E5=90=8E=E7=9B=B4=E6=8E=A5=E9=87=8D=E5=90=AF=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LINGYUN.Abp.TuiJuhe.csproj | 2 +- .../LINGYUN/Abp/TuiJuhe/AbpTuiJuheModule.cs | 4 ++-- .../LINGYUN/Abp/TuiJuhe/TuiJuheResult.cs | 12 ++++++------ .../Program.cs | 1 + .../LY.MicroService.AuthServer/Program.cs | 3 ++- .../Program.cs | 1 + .../Program.cs | 1 + .../Program.cs | 1 + .../Program.cs | 2 +- .../Program.cs | 1 + .../Program.cs | 1 + .../Program.cs | 1 + .../Program.cs | 1 + .../LY.MicroService.identityServer/Program.cs | 1 + aspnet-core/start-http-api-host.bat | 5 +++++ .../Program.cs | 1 + build/modules.dependencies.json | 17 ++++++++++------- starter/10.start-ids.bat | 2 +- starter/11.start-ids-admin.bat | 2 +- starter/12.start-localization.bat | 2 +- starter/13.start-platform.bat | 2 +- starter/14.start-messages.bat | 2 +- starter/15.start-task-management.bat | 2 +- starter/16.start-webhooks-management.bat | 2 +- starter/17.start-workflow-management.bat | 2 +- starter/18.start-admin.bat | 2 +- starter/70.start-internal-gateway.bat | 2 +- 27 files changed, 47 insertions(+), 28 deletions(-) diff --git a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN.Abp.TuiJuhe.csproj b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN.Abp.TuiJuhe.csproj index 341e4212e..b612526ec 100644 --- a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN.Abp.TuiJuhe.csproj +++ b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN.Abp.TuiJuhe.csproj @@ -18,7 +18,7 @@ - + diff --git a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/AbpTuiJuheModule.cs b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/AbpTuiJuheModule.cs index 2097e55f0..12bebe00e 100644 --- a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/AbpTuiJuheModule.cs +++ b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/AbpTuiJuheModule.cs @@ -2,7 +2,7 @@ using LINGYUN.Abp.TuiJuhe.Localization; using Microsoft.Extensions.DependencyInjection; using Volo.Abp.Caching; -using Volo.Abp.Json.Newtonsoft; +using Volo.Abp.Json.SystemTextJson; using Volo.Abp.Localization; using Volo.Abp.Modularity; using Volo.Abp.Settings; @@ -11,7 +11,7 @@ using Volo.Abp.VirtualFileSystem; namespace LINGYUN.Abp.TuiJuhe; [DependsOn( - typeof(AbpJsonNewtonsoftModule), + typeof(AbpJsonSystemTextJsonModule), typeof(AbpSettingsModule), typeof(AbpCachingModule), typeof(AbpFeaturesLimitValidationModule))] diff --git a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/TuiJuheResult.cs b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/TuiJuheResult.cs index 7bdd8cacb..41bec129f 100644 --- a/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/TuiJuheResult.cs +++ b/aspnet-core/modules/tui-juhe/LINGYUN.Abp.TuiJuhe/LINGYUN/Abp/TuiJuhe/TuiJuheResult.cs @@ -1,5 +1,5 @@ -using Newtonsoft.Json; -using System; +using System; +using System.Text.Json.Serialization; namespace LINGYUN.Abp.TuiJuhe; @@ -9,22 +9,22 @@ public class TuiJuheResult /// /// 状态码 /// - [JsonProperty("code")] + [JsonPropertyName("code")] public int Code { get; set; } /// /// 错误消息 /// - [JsonProperty("reason")] + [JsonPropertyName("reason")] public string Reason { get; set; } /// /// 响应数据 /// - [JsonProperty("result")] + [JsonPropertyName("result")] public TResult Result { get; set; } /// /// 响应参数 /// - [JsonProperty("params")] + [JsonPropertyName("params")] public TParam Params { get; set; } [JsonIgnore] diff --git a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs index 08d7ce10a..2fe0bca06 100644 --- a/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.AuthServer.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "IdentityServer.HttpApi.Host"; Log.Information("Starting IdentityServer.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.AuthServer/Program.cs b/aspnet-core/services/LY.MicroService.AuthServer/Program.cs index 4fb8e18ed..e3de2e687 100644 --- a/aspnet-core/services/LY.MicroService.AuthServer/Program.cs +++ b/aspnet-core/services/LY.MicroService.AuthServer/Program.cs @@ -18,8 +18,9 @@ public class Program { try { + Console.Title = "IdentityServer"; Log.Information("Starting IdentityServer."); - + var builder = WebApplication.CreateBuilder(args); builder.Host.AddAppSettingsSecretsJson() .UseAutofac() diff --git a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs index a00fed23c..43d5fd564 100644 --- a/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.BackendAdmin.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "BackendAdmin.Host"; Log.Information("Starting BackendAdmin.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs index ac8e4e347..7353577ec 100644 --- a/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.LocalizationManagement.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "LocalizationManagement.HttpApi.Host"; Log.Information("Starting LocalizationManagement.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs index 023d63470..9db30c68d 100644 --- a/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.PlatformManagement.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "PlatformManagement.HttpApi.Host"; Log.Information("Starting PlatformManagement.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs index 819f9fba7..18b35fdf4 100644 --- a/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.RealtimeMessage.HttpApi.Host/Program.cs @@ -18,8 +18,8 @@ public class Program { try { + Console.Title = "RealtimeMessage.HttpApi.Host"; Log.Information("Starting RealtimeMessage.HttpApi.Host."); - var builder = WebApplication.CreateBuilder(args); builder.Host.AddAppSettingsSecretsJson() .UseAutofac() diff --git a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs index c128e7393..f4035c672 100644 --- a/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.TaskManagement.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "TaskManagement.HttpApi.Host"; Log.Information("Starting TaskManagement.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs index 0b48c72e9..b895ee5d0 100644 --- a/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.WebhooksManagement.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "Web.Host"; Log.Information("Starting web host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs index 41aef61b2..566634709 100644 --- a/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.WorkflowManagement.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "WorkflowManagement.HttpApi.Host"; Log.Information("Starting WorkflowManagement.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs index 572f802aa..d0625474d 100644 --- a/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs +++ b/aspnet-core/services/LY.MicroService.identityServer.HttpApi.Host/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "IdentityServer.HttpApi.Host"; Log.Information("Starting IdentityServer.HttpApi.Host."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/services/LY.MicroService.identityServer/Program.cs b/aspnet-core/services/LY.MicroService.identityServer/Program.cs index b7f1f9f0d..445b3475a 100644 --- a/aspnet-core/services/LY.MicroService.identityServer/Program.cs +++ b/aspnet-core/services/LY.MicroService.identityServer/Program.cs @@ -18,6 +18,7 @@ public class Program { try { + Console.Title = "IdentityServer"; Log.Information("Starting IdentityServer."); var builder = WebApplication.CreateBuilder(args); diff --git a/aspnet-core/start-http-api-host.bat b/aspnet-core/start-http-api-host.bat index 7c64a265d..a35e017b8 100644 --- a/aspnet-core/start-http-api-host.bat +++ b/aspnet-core/start-http-api-host.bat @@ -8,6 +8,7 @@ title %2-host cd .\services\%1 if '%3' equ '--publish' goto publish +if '%3' equ '--watchrun' goto watchrun if '%3' equ '--run' goto run if '%3' equ '--restore' goto restore if '%3' equ '--ef-u' goto efu @@ -23,6 +24,10 @@ exit dotnet run exit +:watchrun +dotnet watch run +exit + :restore dotnet restore exit diff --git a/aspnet-core/templates/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/Program.cs b/aspnet-core/templates/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/Program.cs index 0fbaf6dfa..459b72261 100644 --- a/aspnet-core/templates/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/Program.cs +++ b/aspnet-core/templates/content/host/PackageName.CompanyName.ProjectName.HttpApi.Host/Program.cs @@ -19,6 +19,7 @@ public class Program { try { + Console.Title = "Web.Host"; Log.Information("Starting web host."); var builder = WebApplication.CreateBuilder(args); diff --git a/build/modules.dependencies.json b/build/modules.dependencies.json index 3a50cfa50..60a762b19 100644 --- a/build/modules.dependencies.json +++ b/build/modules.dependencies.json @@ -1,6 +1,6 @@ [ { - "tag": "net6.0", + "tag": "net7.0", "dependencies": [ { "service": "Backend-Admin", @@ -26,7 +26,10 @@ "LINGYUN.Platform.Domain.Shared.dll", "LINGYUN.Abp.Tencent.dll", "LINGYUN.Abp.Tencent.QQ.dll", - "LINGYUN.Abp.Tencent.SettingManagement.dll" + "LINGYUN.Abp.Tencent.SettingManagement.dll", + "LINGYUN.Abp.WxPusher.SettingManagement.dll", + "LINGYUN.Abp.PushPlus.SettingManagement.dll", + "LINGYUN.Abp.TuiJuhe.SettingManagement.dll" ] }, { @@ -43,8 +46,7 @@ "Volo.Abp.Users.Domain.Shared.dll", "Volo.Abp.Users.Abstractions.dll", "LINGYUN.Abp.IdentityServer.Application.Contracts.dll", - "Volo.Abp.IdentityServer.Domain.Shared.dll", - "Volo.Abp.Json.Newtonsoft.dll" + "Volo.Abp.IdentityServer.Domain.Shared.dll" ] } ] @@ -60,8 +62,6 @@ "LINGYUN.Abp.Account.Templates.dll", "LINGYUN.Abp.Features.LimitValidation.dll", "LINGYUN.Abp.Features.LimitValidation.Redis.dll", - "LINGYUN.Abp.WorkflowManagement.Application.Contracts.dll", - "LINGYUN.Abp.WorkflowManagement.Domain.Shared.dll", "LINGYUN.Abp.BackgroundTasks.Abstractions.dll", "LINGYUN.Linq.Dynamic.Queryable.dll", "LINGYUN.Abp.Dynamic.Queryable.Application.Contracts.dll", @@ -69,7 +69,10 @@ "LINGYUN.Abp.TaskManagement.Domain.Shared.dll", "LINGYUN.Abp.Notifications.Core.dll", "LINGYUN.Abp.Notifications.Common.dll", - "LINGYUN.Abp.Notifications.dll" + "LINGYUN.Abp.Notifications.dll", + "LINGYUN.Abp.PushPlus.dll", + "LINGYUN.Abp.WxPusher.dll", + "LINGYUN.Abp.TuiJuhe.dll" ] } ] diff --git a/starter/10.start-ids.bat b/starter/10.start-ids.bat index 274356071..df8193c0d 100644 --- a/starter/10.start-ids.bat +++ b/starter/10.start-ids.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.IdentityServer identityserver --watchrun \ No newline at end of file diff --git a/starter/11.start-ids-admin.bat b/starter/11.start-ids-admin.bat index 6357b397a..333b8c6e7 100644 --- a/starter/11.start-ids-admin.bat +++ b/starter/11.start-ids-admin.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.IdentityServer.HttpApi.Host identityserver4-admin --watchrun \ No newline at end of file diff --git a/starter/12.start-localization.bat b/starter/12.start-localization.bat index 3b564d396..df40be992 100644 --- a/starter/12.start-localization.bat +++ b/starter/12.start-localization.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.LocalizationManagement.HttpApi.Host localization --watchrun \ No newline at end of file diff --git a/starter/13.start-platform.bat b/starter/13.start-platform.bat index 066ec1191..d65c1d21d 100644 --- a/starter/13.start-platform.bat +++ b/starter/13.start-platform.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.PlatformManagement.HttpApi.Host platform --watchrun \ No newline at end of file diff --git a/starter/14.start-messages.bat b/starter/14.start-messages.bat index efda80408..ab6c96c5c 100644 --- a/starter/14.start-messages.bat +++ b/starter/14.start-messages.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.RealtimeMessage.HttpApi.Host messages --watchrun \ No newline at end of file diff --git a/starter/15.start-task-management.bat b/starter/15.start-task-management.bat index ba18a7b32..402d0d8ed 100644 --- a/starter/15.start-task-management.bat +++ b/starter/15.start-task-management.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.TaskManagement.HttpApi.Host task-management --watchrun \ No newline at end of file diff --git a/starter/16.start-webhooks-management.bat b/starter/16.start-webhooks-management.bat index 0ed1619d5..4c9e405f2 100644 --- a/starter/16.start-webhooks-management.bat +++ b/starter/16.start-webhooks-management.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.WebhooksManagement.HttpApi.Host webhooks-management--run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.WebhooksManagement.HttpApi.Host webhooks-management--watchrun \ No newline at end of file diff --git a/starter/17.start-workflow-management.bat b/starter/17.start-workflow-management.bat index d9c663a43..9f97f1b66 100644 --- a/starter/17.start-workflow-management.bat +++ b/starter/17.start-workflow-management.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.WorkflowManagement.HttpApi.Host workflow-management --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.WorkflowManagement.HttpApi.Host workflow-management --watchrun \ No newline at end of file diff --git a/starter/18.start-admin.bat b/starter/18.start-admin.bat index 51631cfdd..3304a4411 100644 --- a/starter/18.start-admin.bat +++ b/starter/18.start-admin.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --run \ No newline at end of file +.\start-http-api-host.bat LY.MicroService.BackendAdmin.HttpApi.Host admin --watchrun \ No newline at end of file diff --git a/starter/70.start-internal-gateway.bat b/starter/70.start-internal-gateway.bat index 8499c238c..dfb60d73c 100644 --- a/starter/70.start-internal-gateway.bat +++ b/starter/70.start-internal-gateway.bat @@ -1,4 +1,4 @@ @echo off cls cd ..\aspnet-core\ -.\start-internal-gateway.bat --run \ No newline at end of file +.\start-internal-gateway.bat \ No newline at end of file