refactor: 1.修正api auth 2.帖子话题业务
This commit is contained in:
@@ -15,7 +15,7 @@ type PostApi struct{}
|
||||
// PublishPost 发布帖子
|
||||
// @Tags 帖子
|
||||
// @Summary 发布帖子
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BearerAuth
|
||||
// @accept json
|
||||
// @Produce application/json
|
||||
// @Param data body plantReq.CreatePost true "发布帖子"
|
||||
@@ -42,7 +42,7 @@ func (a *PostApi) PublishPost(c *gin.Context) {
|
||||
// PostPage 帖子列表
|
||||
// @Tags 帖子
|
||||
// @Summary 帖子列表
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BearerAuth
|
||||
// @accept json
|
||||
// @Produce application/json
|
||||
// @Param data body plantReq.PostPage true "分页获取帖子列表"
|
||||
@@ -73,7 +73,7 @@ func (a *PostApi) PostPage(c *gin.Context) {
|
||||
// LikePost 点赞帖子
|
||||
// @Tags 帖子
|
||||
// @Summary 点赞帖子
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BearerAuth
|
||||
// @Produce application/json
|
||||
// @Param id query string true "帖子id"
|
||||
// @Param type query string true "点赞类型 1 点赞 2 取消点赞"
|
||||
@@ -95,7 +95,7 @@ func (a *PostApi) LikePost(c *gin.Context) {
|
||||
// CommentPost 评论帖子
|
||||
// @Tags 帖子
|
||||
// @Summary 评论帖子
|
||||
// @Security ApiKeyAuth
|
||||
// @Security BearerAuth
|
||||
// @accept json
|
||||
// @Produce application/json
|
||||
// @Param data body plantReq.CreateComment true "评论帖子"
|
||||
|
||||
Reference in New Issue
Block a user