feat:完成furion改造

This commit is contained in:
橙子
2023-04-16 14:30:56 +08:00
parent 1655870d4d
commit 24bc61396e
16 changed files with 182 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Yi.Framework.Infrastructure.Data.Json;
using Yi.Furion.Web.Core.Handlers;
namespace Yi.Furion.Web.Core;
@@ -16,7 +17,10 @@ public class Startup : AppStartup
services.AddCorsAccessor();
services.AddControllers().AddInjectWithUnifyResult();
services.AddControllers().AddInjectWithUnifyResult().AddJsonOptions(x => {
//x.JsonSerializerOptions.Converters.Add(new DateTimeJsonConverter("yyyy-MM-dd HH:mm:ss"));
x.JsonSerializerOptions.Converters.Add(new LongToStringConverter());
});
services.AddEventBus();