comment

package
v0.0.0-...-3a3bdc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentAction

func CommentAction(ctx context.Context, c *app.RequestContext)

CommentAction . @Summary 新增评论 @Description 向博文添加新评论 @Tags 评论 @Accept json @Produce json @Param CommentActionRequest body comment.CommentActionRequest true "新增评论请求" @Success 200 {object} comment.CommentActionResponse "评论成功添加" @Failure 400 {object} common.BaseResponse "无效的请求" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/comment/action [post]

func CommentDelAction

func CommentDelAction(ctx context.Context, c *app.RequestContext)

CommentDelAction . @Summary 删除评论 @Description 删除博文中的评论 @Tags 评论 @Accept json @Produce json @Param CommentDelActionRequest body comment.CommentDelActionRequest true "删除评论请求" @Success 200 {object} common.BaseResponse "评论成功删除" @Failure 400 {object} common.BaseResponse "无效的请求" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/comment/action [delete]

func CommentList

func CommentList(ctx context.Context, c *app.RequestContext)

CommentList . @Summary 获取评论列表 @Description 获取博文的评论列表 @Tags 评论 @Accept json @Produce json @Param CommentListRequest query comment.CommentListRequest true "获取评论列表请求" @Success 200 {object} comment.CommentListResponse "成功获取评论列表" @Failure 400 {object} common.BaseResponse "无效的请求" @Failure 500 {object} common.BaseResponse "服务器内部错误" @Router /blog_server/comment/list [get]

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL