feat: 合并
This commit is contained in:
@@ -85,12 +85,12 @@ namespace Yi.Abp.Web
|
|||||||
options => options.RemoteServiceName = "bbs");
|
options => options.RemoteServiceName = "bbs");
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkChatHubApplicationModule).Assembly,
|
options.ConventionalControllers.Create(typeof(YiFrameworkChatHubApplicationModule).Assembly,
|
||||||
options => options.RemoteServiceName = "chat-hub");
|
options => options.RemoteServiceName = "chat-hub");
|
||||||
options.ConventionalControllers.Create(
|
options.ConventionalControllers.Create(typeof(YiFrameworkTenantManagementApplicationModule).Assembly,
|
||||||
typeof(YiFrameworkTenantManagementApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "tenant-management");
|
options => options.RemoteServiceName = "tenant-management");
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkCodeGenApplicationModule).Assembly,
|
options.ConventionalControllers.Create(typeof(YiFrameworkCodeGenApplicationModule).Assembly,
|
||||||
options => options.RemoteServiceName = "code-gen");
|
options => options.RemoteServiceName = "code-gen");
|
||||||
|
options.ConventionalControllers.Create(typeof(YiFrameworkDigitalCollectiblesApplicationModule).Assembly,
|
||||||
|
options => options.RemoteServiceName = "digital-collectibles");
|
||||||
//统一前缀
|
//统一前缀
|
||||||
options.ConventionalControllers.ConventionalControllerSettings.ForEach(x => x.RootPath = "api/app");
|
options.ConventionalControllers.ConventionalControllerSettings.ForEach(x => x.RootPath = "api/app");
|
||||||
});
|
});
|
||||||
@@ -122,28 +122,6 @@ namespace Yi.Abp.Web
|
|||||||
//配置错误处理显示详情
|
//配置错误处理显示详情
|
||||||
Configure<AbpExceptionHandlingOptions>(options => { options.SendExceptionsDetailsToClients = true; });
|
Configure<AbpExceptionHandlingOptions>(options => { options.SendExceptionsDetailsToClients = true; });
|
||||||
|
|
||||||
|
|
||||||
//动态Api
|
|
||||||
Configure<AbpAspNetCoreMvcOptions>(options =>
|
|
||||||
{
|
|
||||||
options.ConventionalControllers.Create(typeof(YiAbpApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "default");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkRbacApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "rbac");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkBbsApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "bbs");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkChatHubApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "chat-hub");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkTenantManagementApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "tenant-management");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkCodeGenApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "code-gen");
|
|
||||||
options.ConventionalControllers.Create(typeof(YiFrameworkDigitalCollectiblesApplicationModule).Assembly,
|
|
||||||
options => options.RemoteServiceName = "digital-collectibles");
|
|
||||||
//统一前缀
|
|
||||||
options.ConventionalControllers.ConventionalControllerSettings.ForEach(x => x.RootPath = "api/app");
|
|
||||||
});
|
|
||||||
|
|
||||||
//【NewtonsoftJson严重问题!!!!!逆天】设置api格式,留给后人铭记
|
//【NewtonsoftJson严重问题!!!!!逆天】设置api格式,留给后人铭记
|
||||||
// service.AddControllers().AddNewtonsoftJson(options =>
|
// service.AddControllers().AddNewtonsoftJson(options =>
|
||||||
// {
|
// {
|
||||||
|
|||||||
Reference in New Issue
Block a user