Browse Source

Add MyProjectNameRemoteServiceConsts

pull/10063/head
liangshiwei 5 years ago
parent
commit
5441c0f3b0
  1. 7
      templates/module/aspnet-core/src/MyCompanyName.MyProjectName.Application.Contracts/MyProjectNameRemoteServiceConsts.cs
  2. 2
      templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/Samples/SampleController.cs

7
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";
}
}

2
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
{

Loading…
Cancel
Save