From db2a77bf668b6f41185f1028d9b2757d337d8f4f Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Thu, 26 Feb 2026 14:40:23 +0800 Subject: [PATCH] 1 --- Directory.Build.props | 2 +- .../InterfaceForward.Api.csproj | 6 ++---- .../InterfaceForwardApiModule.cs | 2 ++ src/InterfaceForward.Api/Program.cs | 1 + .../InterfaceForward.Domain.Shared.csproj | 2 +- .../Options/FeiShuNoticeOptions.cs | 19 ------------------- 6 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs diff --git a/Directory.Build.props b/Directory.Build.props index f5818f4..6e6a1a0 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 8.0.5.3 + 8.0.5.6 diff --git a/src/InterfaceForward.Api/InterfaceForward.Api.csproj b/src/InterfaceForward.Api/InterfaceForward.Api.csproj index 0773f42..2eacd2f 100644 --- a/src/InterfaceForward.Api/InterfaceForward.Api.csproj +++ b/src/InterfaceForward.Api/InterfaceForward.Api.csproj @@ -12,11 +12,9 @@ - - - - + + diff --git a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs index 9eeb619..9262aac 100644 --- a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs +++ b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs @@ -6,6 +6,7 @@ using Fake.Autofac; using Fake.FeiShu; using Fake.Modularity; using Fake.Security.Claims; +using Fake.Serilog.Sink.FeiShu; using Fake.SyncEx; using InterfaceForward.Application; using InterfaceForward.Domain.Shared; @@ -19,6 +20,7 @@ namespace InterfaceForward.Api; [DependsOn(typeof(FakeAuthorizationModule))] [DependsOn(typeof(FakeAutofacModule))] [DependsOn(typeof(InterfaceForwardApplicationModule))] +[DependsOn(typeof(FakeSerilogSinkFeiShuModule))] public class InterfaceForwardApiModule : FakeModule { private const string DefaultCorsPolicyName = "default"; diff --git a/src/InterfaceForward.Api/Program.cs b/src/InterfaceForward.Api/Program.cs index c84b449..10446ba 100644 --- a/src/InterfaceForward.Api/Program.cs +++ b/src/InterfaceForward.Api/Program.cs @@ -5,6 +5,7 @@ var builder = WebApplication.CreateSlimBuilder(args); var configuration = builder.Configuration; builder.Configuration.AddConsul("idwms/itfxapi", source => source.ReloadOnChange = true); builder.Configuration.AddConsul("idwms/common", source => source.ReloadOnChange = true); + Log.Logger = new LoggerConfiguration() .ReadFrom.Configuration(configuration) .CreateLogger(); diff --git a/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj b/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj index edc1715..0dfb77a 100644 --- a/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj +++ b/src/InterfaceForward.Domain.Shared/InterfaceForward.Domain.Shared.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs b/src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs deleted file mode 100644 index 2c87952..0000000 --- a/src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs +++ /dev/null @@ -1,19 +0,0 @@ -namespace InterfaceForward.Domain.Shared.Options; - -public class FeiShuNoticeOptions -{ - /// - /// 飞书通知webhook - /// - public string Webhook { get; set; } - - /// - /// 消息标题前缀 - /// - public string TitlePrefix { get; set; } - - /// - /// 超时时间 秒 - /// - public int Timeout { get; set; } = 20; -} \ No newline at end of file