From e4de1ba222252329dc6654263637db27c5804d5d Mon Sep 17 00:00:00 2001
From: xiaolipro <2357729423@qq.com>
Date: Thu, 26 Feb 2026 14:40:30 +0800
Subject: [PATCH] Revert "1"
This reverts commit db2a77bf668b6f41185f1028d9b2757d337d8f4f.
---
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, 25 insertions(+), 7 deletions(-)
create mode 100644 src/InterfaceForward.Domain.Shared/Options/FeiShuNoticeOptions.cs
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