Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ThumbHandlers ¶
type ThumbHandlers struct {
*basichandlers.Basic
}
ThumbHandlers defined for thumbs apis
func (*ThumbHandlers) Toggle ¶
func (t *ThumbHandlers) Toggle() gin.HandlerFunc
Toggle thumb @Tags 互动 @Description 点赞或取消点赞 @Accept json @Produce json @Param Authorization header string true "Authentication header" @Param ToggleThumbRequest body thumbhandlers.ToggleThumbRequest true "点赞操作" @Success 200 "{"code":200,"data":{},"message":"操作成功"}" @Router /thumb/toggle [post]
type ToggleThumbRequest ¶
type ToggleThumbRequest struct { // 评论的ID // required: false // min: 0 CommentID int `json:"commentID"` // 资讯的ID // required: false // min: 0 NewsID int `json:"newsID"` // 举报动态的ID // // required: false // min: 0 MomentID int `json:"momentID"` }
ToggleThumbRequest is request data for creating a news category swagger:model CreateNewsCateRequest
Click to show internal directories.
Click to hide internal directories.