仓库管理:库位:update
This commit is contained in:
@@ -2,6 +2,7 @@ using AspNetCoreRateLimit;
|
||||
using Infrastructure;
|
||||
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
||||
using Microsoft.AspNetCore.DataProtection;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
using System.Text.Json.Serialization;
|
||||
using ZR.Admin.WebApi.AutoMapperProfile;
|
||||
@@ -92,7 +93,11 @@ builder.Services.AddMvc(options =>
|
||||
builder.Services.AddSwaggerConfig();
|
||||
|
||||
builder.Services.AddAutoMapper(typeof(AutoMapperProfile));
|
||||
|
||||
//关闭参数自动校验,我们需要返回自定义的格式
|
||||
builder.Services.Configure<ApiBehaviorOptions>((o) =>
|
||||
{
|
||||
o.SuppressModelStateInvalidFilter = true;
|
||||
});
|
||||
var app = builder.Build();
|
||||
InternalApp.ServiceProvider = app.Services;
|
||||
InternalApp.Configuration = builder.Configuration;
|
||||
|
||||
Reference in New Issue
Block a user