TaskApi记录日志

dev
zhangxiaofeng 4 weeks ago
parent 72e256cc57
commit 58eebe9388

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

Loading…
Cancel
Save