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.