Class CommentAdminController
Implements
Inherited Members
Namespace: Volo.CmsKit.Admin.Comments
Assembly: Volo.CmsKit.Admin.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.CommentEnable" })]
[Authorize("CmsKit.Comments")]
[RequiresGlobalFeature(typeof(CommentsFeature))]
[RemoteService(true, Name = "CmsKitAdmin")]
[Area("cms-kit-admin")]
[Route("api/cms-kit-admin/comments")]
public class CommentAdminController : CmsKitAdminController, IAvoidDuplicateCrossCuttingConcerns, ICommentAdminAppService, IApplicationService, IRemoteService
Constructors
CommentAdminController(ICommentAdminAppService)
Declaration
public CommentAdminController(ICommentAdminAppService commentAdminAppService)
Parameters
Type | Name | Description |
---|---|---|
ICommentAdminAppService | commentAdminAppService |
Properties
CommentAdminAppService
Declaration
protected ICommentAdminAppService CommentAdminAppService { get; }
Property Value
Type | Description |
---|---|
ICommentAdminAppService |
Methods
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
[Authorize("CmsKit.Comments.Delete")]
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<CommentWithAuthorDto> GetAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task<CommentWithAuthorDto> |
GetListAsync(CommentGetListInput)
Declaration
[HttpGet]
public virtual Task<PagedResultDto<CommentWithAuthorDto>> GetListAsync(CommentGetListInput input)
Parameters
Type | Name | Description |
---|---|---|
CommentGetListInput | input |
Returns
Type | Description |
---|---|
Task<PagedResultDto<CommentWithAuthorDto>> |
GetWaitingCountAsync()
Declaration
[HttpGet]
[Route("waiting-count")]
public Task<int> GetWaitingCountAsync()
Returns
Type | Description |
---|---|
Task<int> |
UpdateApprovalStatusAsync(Guid, CommentApprovalDto)
Declaration
[HttpPut]
[Route("{id}/approval-status")]
public Task UpdateApprovalStatusAsync(Guid id, CommentApprovalDto input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
CommentApprovalDto | input |
Returns
Type | Description |
---|---|
Task |
UpdateSettingsAsync(CommentSettingsDto)
Declaration
[HttpPost]
[Route("settings")]
public Task UpdateSettingsAsync(CommentSettingsDto input)
Parameters
Type | Name | Description |
---|---|---|
CommentSettingsDto | input |
Returns
Type | Description |
---|---|
Task |