|
@@ -12,6 +12,7 @@ using Hotline.Wex;
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
using Microsoft.AspNetCore.Identity;
|
|
|
using Serilog;
|
|
|
+using System.Text.Json;
|
|
|
using XF.Domain.Dependency;
|
|
|
using XF.Domain.Filters;
|
|
|
using XF.Domain.Options;
|
|
@@ -55,6 +56,12 @@ internal static class StartupExtensions
|
|
|
})
|
|
|
.AddDapr(d =>
|
|
|
{
|
|
|
+ d.UseJsonSerializationOptions(new JsonSerializerOptions
|
|
|
+ {
|
|
|
+ PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
|
|
|
+ DictionaryKeyPolicy = JsonNamingPolicy.CamelCase,
|
|
|
+ //Converters = { new JsonStringEnumConverter() }
|
|
|
+ });
|
|
|
#if DEBUG
|
|
|
d.UseHttpEndpoint("http://110.188.24.28:50202");
|
|
|
d.UseGrpcEndpoint("http://110.188.24.28:50203");
|
|
@@ -146,7 +153,7 @@ internal static class StartupExtensions
|
|
|
app.MapControllers()
|
|
|
.RequireAuthorization();
|
|
|
//app.MapSubscribeHandler();
|
|
|
-
|
|
|
+
|
|
|
return app;
|
|
|
}
|
|
|
}
|