Browse Source
Merge pull request #7784 from abpframework/content-renaming
CMS Kit - Content app service renaming
pull/7796/head
İlkay İlknur
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
8 additions and
8 deletions
-
modules/cms-kit/src/Volo.CmsKit.Public.Application.Contracts/Volo/CmsKit/Public/Contents/IContentPublicAppService.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Application/Volo/CmsKit/Public/Contents/ContentPublicAppService.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.HttpApi/Volo/CmsKit/Public/Contents/ContentController.cs
-
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Contents/ContentViewComponent.cs
|
|
@ -3,8 +3,8 @@ using Volo.CmsKit.Contents; |
|
|
|
|
|
|
|
|
namespace Volo.CmsKit.Public.Contents |
|
|
namespace Volo.CmsKit.Public.Contents |
|
|
{ |
|
|
{ |
|
|
public interface IContentAppService |
|
|
public interface IContentPublicAppService |
|
|
{ |
|
|
{ |
|
|
Task<ContentDto> GetAsync(GetContentInput input); |
|
|
Task<ContentDto> GetAsync(GetContentInput input); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -3,7 +3,7 @@ using Volo.CmsKit.Contents; |
|
|
|
|
|
|
|
|
namespace Volo.CmsKit.Public.Contents |
|
|
namespace Volo.CmsKit.Public.Contents |
|
|
{ |
|
|
{ |
|
|
public class ContentPublicAppService : CmsKitAppServiceBase, IContentAppService |
|
|
public class ContentPublicAppService : CmsKitPublicAppServiceBase, IContentPublicAppService |
|
|
{ |
|
|
{ |
|
|
protected IContentRepository ContentRepository { get; } |
|
|
protected IContentRepository ContentRepository { get; } |
|
|
|
|
|
|
|
|
|
|
|
@ -9,11 +9,11 @@ namespace Volo.CmsKit.Public.Contents |
|
|
[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, IContentAppService |
|
|
public class ContentController : CmsKitControllerBase, IContentPublicAppService |
|
|
{ |
|
|
{ |
|
|
protected readonly IContentAppService _contentAppService; |
|
|
protected readonly IContentPublicAppService _contentAppService; |
|
|
|
|
|
|
|
|
public ContentController(IContentAppService contentAppService) |
|
|
public ContentController(IContentPublicAppService contentAppService) |
|
|
{ |
|
|
{ |
|
|
_contentAppService = contentAppService; |
|
|
_contentAppService = contentAppService; |
|
|
} |
|
|
} |
|
|
|
|
|
@ -12,11 +12,11 @@ namespace Volo.CmsKit.Public.Web.Pages.CmsKit.Shared.Components.Contents |
|
|
public class ContentViewComponent : AbpViewComponent |
|
|
public class ContentViewComponent : AbpViewComponent |
|
|
{ |
|
|
{ |
|
|
private readonly IContentRenderer contentRenderer; |
|
|
private readonly IContentRenderer contentRenderer; |
|
|
private readonly IContentAppService contentAppService; |
|
|
private readonly IContentPublicAppService contentAppService; |
|
|
|
|
|
|
|
|
public ContentViewComponent( |
|
|
public ContentViewComponent( |
|
|
IContentRenderer contentRenderer, |
|
|
IContentRenderer contentRenderer, |
|
|
IContentAppService contentAppService) |
|
|
IContentPublicAppService contentAppService) |
|
|
{ |
|
|
{ |
|
|
this.contentRenderer = contentRenderer; |
|
|
this.contentRenderer = contentRenderer; |
|
|
this.contentAppService = contentAppService; |
|
|
this.contentAppService = contentAppService; |
|
|
|