favorite

package
v0.0.0-...-62160e7 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 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.

Jump to

Keyboard shortcuts

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