Class PageFeedbackAdminController
Inheritance
PageFeedbackAdminController
Implements
Inherited Members
Namespace: Volo.CmsKit.Admin.PageFeedbacks
Assembly: Volo.CmsKit.Pro.Admin.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKitPro.PageFeedbackEnable" })]
[RequiresGlobalFeature(typeof(PageFeedbackFeature))]
[RemoteService(true, Name = "CmsKitAdmin")]
[Area("cms-kit-pro-admin")]
[Route("api/cms-kit-admin/page-feedback")]
[Authorize("CmsKit.PageFeedback")]
public class PageFeedbackAdminController : CmsKitProAdminController, IAvoidDuplicateCrossCuttingConcerns, IPageFeedbackAdminAppService, IReadOnlyAppService<PageFeedbackDto, Guid, GetPageFeedbackListInput>, IReadOnlyAppService<PageFeedbackDto, PageFeedbackDto, Guid, GetPageFeedbackListInput>, IUpdateAppService<PageFeedbackDto, Guid, UpdatePageFeedbackDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService
Constructors
PageFeedbackAdminController(IPageFeedbackAdminAppService)
Declaration
public PageFeedbackAdminController(IPageFeedbackAdminAppService pageFeedbackAdminAppService)
Parameters
Type | Name | Description |
---|---|---|
IPageFeedbackAdminAppService | pageFeedbackAdminAppService |
Properties
PageFeedbackAdminAppService
Declaration
protected IPageFeedbackAdminAppService PageFeedbackAdminAppService { get; }
Property Value
Type | Description |
---|---|
IPageFeedbackAdminAppService |
Methods
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
[Authorize("CmsKit.PageFeedback.Delete")]
public Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetAsync(Guid)
Declaration
[HttpGet]
[Route("{id}")]
public Task<PageFeedbackDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<PageFeedbackDto> |
GetEntityTypesAsync()
Declaration
[HttpGet]
[Route("entity-types")]
public Task<List<string>> GetEntityTypesAsync()
Returns
Type | Description |
---|---|
Task<List<string>> |
GetListAsync(GetPageFeedbackListInput)
Declaration
[HttpGet]
public Task<PagedResultDto<PageFeedbackDto>> GetListAsync(GetPageFeedbackListInput input)
Parameters
Type | Name | Description |
---|---|---|
GetPageFeedbackListInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<PageFeedbackDto>> |
GetSettingsAsync()
Declaration
[HttpGet]
[Route("settings")]
[Authorize("CmsKit.PageFeedback.Settings")]
public Task<List<PageFeedbackSettingDto>> GetSettingsAsync()
Returns
Type | Description |
---|---|
Task<List<PageFeedbackSettingDto>> |
UpdateAsync(Guid, UpdatePageFeedbackDto)
Declaration
[HttpPut]
[Route("{id}")]
[Authorize("CmsKit.PageFeedback.Update")]
public Task<PageFeedbackDto> UpdateAsync(Guid id, UpdatePageFeedbackDto dto)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
UpdatePageFeedbackDto | dto |
Returns
Type | Description |
---|---|
Task<PageFeedbackDto> |
UpdateSettingsAsync(UpdatePageFeedbackSettingsInput)
Declaration
[HttpPut]
[Route("settings")]
[Authorize("CmsKit.PageFeedback.Settings")]
public Task UpdateSettingsAsync(UpdatePageFeedbackSettingsInput input)
Parameters
Type | Name | Description |
---|---|---|
UpdatePageFeedbackSettingsInput | input |
Returns
Type | Description |
---|---|
Task |