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