diff --git a/ds-wms-service/DS.WMS.TaskApi/Program.cs b/ds-wms-service/DS.WMS.TaskApi/Program.cs index e9db023b..dcc2f817 100644 --- a/ds-wms-service/DS.WMS.TaskApi/Program.cs +++ b/ds-wms-service/DS.WMS.TaskApi/Program.cs @@ -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(); +}); // builder.Services.AddEndpointsApiExplorer(); // builder.Services.AddSwaggerGen();