对接 Lazada/Shopee/TikTok/Temu OAuth 与回调落库,移除手工店;地址管理支持按类型默认与揽收校验。 Co-authored-by: Cursor <cursoragent@cursor.com>
39 lines
1.3 KiB
C#
39 lines
1.3 KiB
C#
using Fake.Modularity;
|
|
using Fake.ObjectMapping.AutoMapper;
|
|
using Fake.Security.Claims;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Oms.Application.Integrations.SmallBagTrack;
|
|
using Oms.Application.Integrations.Itfx;
|
|
using Oms.Application.Integrations.PlatformShop;
|
|
using Oms.Application.Shared;
|
|
using Oms.Application.Workers;
|
|
using Oms.Domain;
|
|
|
|
namespace Oms.Application;
|
|
|
|
/// <summary>
|
|
/// OMS 应用层模块注册。
|
|
/// </summary>
|
|
[DependsOn(
|
|
typeof(OmsDomainModule),
|
|
typeof(FakeObjectMappingAutoMapperModule)
|
|
)]
|
|
public class OmsApplicationModule : FakeModule
|
|
{
|
|
/// <inheritdoc />
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
context.Services.Configure<FakeAutoMapperOptions>(options =>
|
|
{
|
|
options.ScanProfiles<OmsApplicationModule>();
|
|
});
|
|
context.Services.AddOmsSmallBagTrack(context.Services.GetConfiguration());
|
|
context.Services.AddOmsItfxIntegration(context.Services.GetConfiguration());
|
|
context.Services.AddOmsPlatformShopIntegration(context.Services.GetConfiguration());
|
|
context.Services.AddOmsOrderBatchMessaging(context.Services.GetConfiguration());
|
|
context.Services.AddXhsLlmClient();
|
|
context.Services.AddDistributedMemoryCache();
|
|
context.Services.AddHostedService<XhsScheduledPublishWorker>();
|
|
}
|
|
}
|