Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArticleFavoriteAction ¶
func ArticleFavoriteAction(ctx context.Context, c *app.RequestContext)
ArticleFavoriteAction . @Summary 对文章进行点赞或者踩 @Description Allows a user to favorite an article. @Tags 点赞或者踩 @Accept json @Produce json @Param request body favorite.FavoriteActionRequest true "Request body for favoriting an article" @Success 200 {object} favorite.FavoriteActionResponse "Success response" @Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error" @Router /blog_server/favorite/action/article [post]
func CommentFavoriteAction ¶
func CommentFavoriteAction(ctx context.Context, c *app.RequestContext)
CommentFavoriteAction . @Summary 对评论进行点赞或者踩 @Description Allows a user to comment on a favorite item. @Tags 点赞或者踩 @Accept json @Produce json @Param request body favorite.FavoriteActionRequest true "Request body for commenting on a favorite" @Success 200 {object} favorite.FavoriteActionResponse "Success response" @Failure 400 {object} common.BaseResponse "Invalid request" @Failure 500 {object} common.BaseResponse "Internal server error" @Router /blog_server/favorite/action/comment [post]
Types ¶
This section is empty.