From 58eebe9388398de953f8eb2f377c6441fb523783 Mon Sep 17 00:00:00 2001 From: zhangxiaofeng <1939543722@qq.com> Date: Tue, 29 Oct 2024 12:03:17 +0800 Subject: [PATCH] =?UTF-8?q?TaskApi=E8=AE=B0=E5=BD=95=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ds-wms-service/DS.WMS.TaskApi/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) 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();