refactor: 1.修正api auth 2.帖子话题业务
This commit is contained in:
@@ -7,6 +7,7 @@ type PostRouter struct{}
|
||||
func (p *PostRouter) InitPostRouter(Router *gin.RouterGroup) {
|
||||
postRouter := Router.Group("post")
|
||||
{
|
||||
// 帖子
|
||||
postRouter.POST("publish", postApi.PublishPost) // 发布帖子
|
||||
postRouter.POST("page", postApi.PostPage) // 帖子列表
|
||||
postRouter.GET("like", postApi.LikePost) // 点赞或者取消点赞
|
||||
|
||||
Reference in New Issue
Block a user