mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-06 01:30:53 +08:00
feat: 完善各个模块功能
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
using AspNetCore.Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.Options;
|
||||
using StartupModules;
|
||||
using Yi.Framework.AspNetCore;
|
||||
using Yi.Framework.Auth.JwtBearer;
|
||||
using Yi.Framework.Core;
|
||||
using Yi.Framework.Core.Attributes;
|
||||
using Yi.Framework.Core.Autofac;
|
||||
using Yi.Framework.Data.Json;
|
||||
using Yi.RBAC.Application;
|
||||
using Yi.RBAC.Sqlsugar;
|
||||
|
||||
@@ -21,7 +23,11 @@ namespace Yi.RBAC.Web
|
||||
public void ConfigureServices(IServiceCollection services, ConfigureServicesContext context)
|
||||
{
|
||||
//添加控制器与动态api
|
||||
services.AddControllers();
|
||||
services.AddControllers().AddJsonOptions(opt => {
|
||||
|
||||
opt.JsonSerializerOptions.Converters.Add(new DateTimeJsonConverter("yyyy-MM-dd HH:mm:ss"));
|
||||
|
||||
});
|
||||
services.AddAutoApiService(opt =>
|
||||
{
|
||||
//NETServiceTest所在程序集添加进动态api配置
|
||||
|
||||
Reference in New Issue
Block a user