Class PageAdminController
Implements
Inherited Members
Namespace: Volo.CmsKit.Admin.Pages
Assembly: Volo.CmsKit.Admin.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.PageEnable" })]
[RequiresGlobalFeature(typeof(PagesFeature))]
[RemoteService(true, Name = "CmsKitAdmin")]
[Area("cms-kit-admin")]
[Authorize("CmsKit.Pages")]
[Route("api/cms-kit-admin/pages")]
public class PageAdminController : CmsKitAdminController, IAvoidDuplicateCrossCuttingConcerns, IPageAdminAppService, ICrudAppService<PageDto, PageDto, Guid, GetPagesInputDto, CreatePageInputDto, UpdatePageInputDto>, IReadOnlyAppService<PageDto, PageDto, Guid, GetPagesInputDto>, ICreateUpdateAppService<PageDto, Guid, CreatePageInputDto, UpdatePageInputDto>, ICreateAppService<PageDto, CreatePageInputDto>, IUpdateAppService<PageDto, Guid, UpdatePageInputDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
PageAdminController(IPageAdminAppService)
Declaration
public PageAdminController(IPageAdminAppService pageAdminAppService)
Parameters
Type | Name | Description |
---|---|---|
IPageAdminAppService | pageAdminAppService |
Fields
PageAdminAppService
Declaration
protected readonly IPageAdminAppService PageAdminAppService
Field Value
Type | Description |
---|---|
IPageAdminAppService |
Methods
CreateAsync(CreatePageInputDto)
Declaration
[HttpPost]
[Authorize("CmsKit.Pages.Create")]
public virtual Task<PageDto> CreateAsync(CreatePageInputDto input)
Parameters
Type | Name | Description |
---|---|---|
CreatePageInputDto | input |
Returns
Type | Description |
---|---|
Task<PageDto> |
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Authorize("CmsKit.Pages.Delete")]
[Route("{id}")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public virtual Task<PageDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<PageDto> |
GetListAsync(GetPagesInputDto)
Declaration
[HttpGet]
public virtual Task<PagedResultDto<PageDto>> GetListAsync(GetPagesInputDto input)
Parameters
Type | Name | Description |
---|---|---|
GetPagesInputDto | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<PageDto>> |
SetAsHomePageAsync(Guid)
Declaration
[HttpPut]
[Authorize("CmsKit.Pages.SetAsHomePage")]
[Route("setashomepage/{id}")]
public virtual Task SetAsHomePageAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
UpdateAsync(Guid, UpdatePageInputDto)
Declaration
[HttpPut]
[Authorize("CmsKit.Pages.Update")]
[Route("{id}")]
public virtual Task<PageDto> UpdateAsync(Guid id, UpdatePageInputDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
UpdatePageInputDto | input |
Returns
Type | Description |
---|---|
Task<PageDto> |