From 5441c0f3b078025df2a85472580dc56e26c60d82 Mon Sep 17 00:00:00 2001 From: liangshiwei Date: Fri, 17 Sep 2021 13:38:52 +0800 Subject: [PATCH] Add MyProjectNameRemoteServiceConsts --- .../MyProjectNameRemoteServiceConsts.cs | 7 +++++++ .../Samples/SampleController.cs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs diff --git a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs new file mode 100644 index 0000000000..875f41eb2e --- /dev/null +++ b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs @@ -0,0 +1,7 @@ +namespace MyCompanyName.MyProjectName +{ + public class MyProjectNameRemoteServiceConsts + { + public const string RemoteServiceName = "AbpAccount"; + } +} diff --git a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/Samples/SampleController.cs b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/Samples/SampleController.cs index 1bf34c32c4..9d4ef179c9 100644 --- a/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/Samples/SampleController.cs +++ b/templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/Samples/SampleController.cs @@ -5,7 +5,7 @@ using Volo.Abp; namespace MyCompanyName.MyProjectName.Samples { - [RemoteService] + [RemoteService(Name = MyProjectNameRemoteServiceConsts.RemoteServiceName)] [Route("api/MyProjectName/sample")] public class SampleController : MyProjectNameController, ISampleAppService {