Class CommentPublicController
Inheritance
CommentPublicController
Implements
Inherited Members
Namespace: Volo.CmsKit.Public.Comments
Assembly: Volo.CmsKit.Public.HttpApi.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.CommentEnable" })]
[RequiresGlobalFeature(typeof(CommentsFeature))]
[RemoteService(true, Name = "CmsKitPublic")]
[Area("cms-kit")]
[Route("api/cms-kit-public/comments")]
public class CommentPublicController : CmsKitPublicControllerBase, IAvoidDuplicateCrossCuttingConcerns, ICommentPublicAppService, IApplicationService, IRemoteService
Constructors
CommentPublicController(ICommentPublicAppService)
Declaration
public CommentPublicController(ICommentPublicAppService commentPublicAppService)
Parameters
Type | Name | Description |
---|---|---|
ICommentPublicAppService | commentPublicAppService |
Properties
CommentPublicAppService
Declaration
public ICommentPublicAppService CommentPublicAppService { get; }
Property Value
Type | Description |
---|---|
ICommentPublicAppService |
Methods
CreateAsync(string, string, CreateCommentInput)
Declaration
[HttpPost]
[Route("{entityType}/{entityId}")]
public Task<CommentDto> CreateAsync(string entityType, string entityId, CreateCommentInput input)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId | |
CreateCommentInput | input |
Returns
Type | Description |
---|---|
Task<CommentDto> |
DeleteAsync(Guid)
Declaration
[HttpDelete]
[Route("{id}")]
public Task DeleteAsync(Guid id)
Parameters
Type | Name | Description |
---|---|---|
Guid | id |
Returns
Type | Description |
---|---|
Task |
GetListAsync(string, string)
Declaration
[HttpGet]
[Route("{entityType}/{entityId}")]
public Task<ListResultDto<CommentWithDetailsDto>> GetListAsync(string entityType, string entityId)
Parameters
Type | Name | Description |
---|---|---|
string | entityType | |
string | entityId |
Returns
Type | Description |
---|---|
Task<ListResultDto<CommentWithDetailsDto>> |
UpdateAsync(Guid, UpdateCommentInput)
Declaration
[HttpPut]
[Route("{id}")]
public Task<CommentDto> UpdateAsync(Guid id, UpdateCommentInput input)
Parameters
Type | Name | Description |
---|---|---|
Guid | id | |
UpdateCommentInput | input |
Returns
Type | Description |
---|---|
Task<CommentDto> |