mirror of https://github.com/abpframework/abp.git
committed by
GitHub
25 changed files with 218 additions and 121 deletions
@ -1,27 +1,29 @@ |
|||||
using System.Threading.Tasks; |
using System.Threading.Tasks; |
||||
using Microsoft.AspNetCore.Mvc; |
using Microsoft.AspNetCore.Mvc; |
||||
using Volo.Abp; |
using Volo.Abp; |
||||
|
using Volo.Abp.GlobalFeatures; |
||||
using Volo.CmsKit.Contents; |
using Volo.CmsKit.Contents; |
||||
|
using Volo.CmsKit.GlobalFeatures; |
||||
|
|
||||
namespace Volo.CmsKit.Public.Contents |
namespace Volo.CmsKit.Public.Contents |
||||
{ |
{ |
||||
|
[RequiresGlobalFeature(typeof(ContentsFeature))] |
||||
[RemoteService(Name = CmsKitCommonRemoteServiceConsts.RemoteServiceName)] |
[RemoteService(Name = CmsKitCommonRemoteServiceConsts.RemoteServiceName)] |
||||
[Area("cms-kit")] |
[Area("cms-kit")] |
||||
[Route("api/cms-kit-public/contents")] |
[Route("api/cms-kit-public/contents")] |
||||
public class ContentController : CmsKitControllerBase, IContentPublicAppService |
public class ContentController : CmsKitControllerBase, IContentPublicAppService |
||||
{ |
{ |
||||
protected readonly IContentPublicAppService _contentAppService; |
protected IContentPublicAppService ContentAppService { get; } |
||||
|
|
||||
public ContentController(IContentPublicAppService contentAppService) |
public ContentController(IContentPublicAppService contentAppService) |
||||
{ |
{ |
||||
_contentAppService = contentAppService; |
ContentAppService = contentAppService; |
||||
} |
} |
||||
|
|
||||
[HttpGet] |
[HttpGet] |
||||
public virtual Task<ContentDto> GetAsync(GetContentInput input) |
public virtual Task<ContentDto> GetAsync(GetContentInput input) |
||||
{ |
{ |
||||
return _contentAppService.GetAsync(input); |
return ContentAppService.GetAsync(input); |
||||
} |
} |
||||
} |
} |
||||
} |
} |
||||
|
|||||
Loading…
Reference in new issue