1
This commit is contained in:
parent
8c1fa38f4f
commit
db2a77bf66
@ -1,6 +1,6 @@
|
|||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- All Fake packages -->
|
<!-- All Fake packages -->
|
||||||
<FakePackageVersion>8.0.5.3</FakePackageVersion>
|
<FakePackageVersion>8.0.5.6</FakePackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@ -12,11 +12,9 @@
|
|||||||
<ProjectReference Include="..\InterfaceForward.ServiceDefaults\InterfaceForward.ServiceDefaults.csproj"/>
|
<ProjectReference Include="..\InterfaceForward.ServiceDefaults\InterfaceForward.ServiceDefaults.csproj"/>
|
||||||
<PackageReference Include="Fake.Autofac" Version="$(FakePackageVersion)" />
|
<PackageReference Include="Fake.Autofac" Version="$(FakePackageVersion)" />
|
||||||
<PackageReference Include="Fake.Consul" Version="$(FakePackageVersion)" />
|
<PackageReference Include="Fake.Consul" Version="$(FakePackageVersion)" />
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.21" />
|
|
||||||
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.18" />
|
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="8.0.18" />
|
||||||
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
|
|
||||||
<PackageReference Include="Serilog.Sinks.Elasticsearch" Version="10.0.0" />
|
<PackageReference Include="Serilog.AspNetCore" Version="8.0.1" />
|
||||||
<PackageReference Include="Serilog.Sinks.Console" Version="6.0.0" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@ -6,6 +6,7 @@ using Fake.Autofac;
|
|||||||
using Fake.FeiShu;
|
using Fake.FeiShu;
|
||||||
using Fake.Modularity;
|
using Fake.Modularity;
|
||||||
using Fake.Security.Claims;
|
using Fake.Security.Claims;
|
||||||
|
using Fake.Serilog.Sink.FeiShu;
|
||||||
using Fake.SyncEx;
|
using Fake.SyncEx;
|
||||||
using InterfaceForward.Application;
|
using InterfaceForward.Application;
|
||||||
using InterfaceForward.Domain.Shared;
|
using InterfaceForward.Domain.Shared;
|
||||||
@ -19,6 +20,7 @@ namespace InterfaceForward.Api;
|
|||||||
[DependsOn(typeof(FakeAuthorizationModule))]
|
[DependsOn(typeof(FakeAuthorizationModule))]
|
||||||
[DependsOn(typeof(FakeAutofacModule))]
|
[DependsOn(typeof(FakeAutofacModule))]
|
||||||
[DependsOn(typeof(InterfaceForwardApplicationModule))]
|
[DependsOn(typeof(InterfaceForwardApplicationModule))]
|
||||||
|
[DependsOn(typeof(FakeSerilogSinkFeiShuModule))]
|
||||||
public class InterfaceForwardApiModule : FakeModule
|
public class InterfaceForwardApiModule : FakeModule
|
||||||
{
|
{
|
||||||
private const string DefaultCorsPolicyName = "default";
|
private const string DefaultCorsPolicyName = "default";
|
||||||
|
|||||||
@ -5,6 +5,7 @@ var builder = WebApplication.CreateSlimBuilder(args);
|
|||||||
var configuration = builder.Configuration;
|
var configuration = builder.Configuration;
|
||||||
builder.Configuration.AddConsul("idwms/itfxapi", source => source.ReloadOnChange = true);
|
builder.Configuration.AddConsul("idwms/itfxapi", source => source.ReloadOnChange = true);
|
||||||
builder.Configuration.AddConsul("idwms/common", source => source.ReloadOnChange = true);
|
builder.Configuration.AddConsul("idwms/common", source => source.ReloadOnChange = true);
|
||||||
|
|
||||||
Log.Logger = new LoggerConfiguration()
|
Log.Logger = new LoggerConfiguration()
|
||||||
.ReadFrom.Configuration(configuration)
|
.ReadFrom.Configuration(configuration)
|
||||||
.CreateLogger();
|
.CreateLogger();
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
|
||||||
<PackageReference Include="Serilog" Version="4.2.1-dev-02337" />
|
<PackageReference Include="Fake.Serilog" Version="$(FakePackageVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -1,19 +0,0 @@
|
|||||||
namespace InterfaceForward.Domain.Shared.Options;
|
|
||||||
|
|
||||||
public class FeiShuNoticeOptions
|
|
||||||
{
|
|
||||||
/// <summary>
|
|
||||||
/// 飞书通知webhook
|
|
||||||
/// </summary>
|
|
||||||
public string Webhook { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 消息标题前缀
|
|
||||||
/// </summary>
|
|
||||||
public string TitlePrefix { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 超时时间 秒
|
|
||||||
/// </summary>
|
|
||||||
public int Timeout { get; set; } = 20;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user