diff --git a/Directory.Build.props b/Directory.Build.props index 6e6a1a0..f5818f4 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@ - 8.0.5.6 + 8.0.5.3 diff --git a/src/InterfaceForward.Api/InterfaceForward.Api.csproj b/src/InterfaceForward.Api/InterfaceForward.Api.csproj index 2eacd2f..0773f42 100644 --- a/src/InterfaceForward.Api/InterfaceForward.Api.csproj +++ b/src/InterfaceForward.Api/InterfaceForward.Api.csproj @@ -12,9 +12,11 @@ + - - + + + diff --git a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs index 9262aac..9eeb619 100644 --- a/src/InterfaceForward.Api/InterfaceForwardApiModule.cs +++ b/src/InterfaceForward.Api/InterfaceForwardApiModule.cs @@ -6,7 +6,6 @@ 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; @@ -20,7 +19,6 @@ 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 10446ba..c84b449 100644 --- a/src/InterfaceForward.Api/Program.cs +++ b/src/InterfaceForward.Api/Program.cs @@ -5,7 +5,6 @@ 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 0dfb77a..edc1715 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 new file mode 100644 index 0000000..2c87952 --- /dev/null +++ b/src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs @@ -0,0 +1,19 @@ +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