|
|
|
@ -18,6 +18,7 @@ using DS.Module.DjyRulesEngine;
|
|
|
|
|
using DS.Module.RedisModule;
|
|
|
|
|
using DS.WMS.Core.TaskPlat.Dtos.Mapper;
|
|
|
|
|
using DS.Module.MQ;
|
|
|
|
|
using DS.Module.Core.Filters;
|
|
|
|
|
|
|
|
|
|
var builder = WebApplication.CreateBuilder(args);
|
|
|
|
|
var environment = builder.Environment.EnvironmentName;
|
|
|
|
@ -49,6 +50,10 @@ builder.Services.AddDjyModuleInstall();//Djy
|
|
|
|
|
builder.Services.AddRuleEngineModuleInstall();//Djy规则引擎校验服务
|
|
|
|
|
builder.Services.AddTaskPlatMapsterSetup(); // 全局的Mapster自定义映射规则
|
|
|
|
|
builder.Services.AddMQModuleInstall();//MQ
|
|
|
|
|
|
|
|
|
|
builder.Services.AddControllers(options => {
|
|
|
|
|
options.Filters.Add<OperationLogFilter>();
|
|
|
|
|
});
|
|
|
|
|
// builder.Services.AddEndpointsApiExplorer();
|
|
|
|
|
// builder.Services.AddSwaggerGen();
|
|
|
|
|
|
|
|
|
|