添加查询用户发布文评数量接口

This commit is contained in:
JACKYMYPERSON
2025-09-27 18:26:29 +08:00
parent ee2bcf1988
commit 9081472c10
2 changed files with 63 additions and 0 deletions

View File

@@ -3,6 +3,7 @@ package router
import (
"github.com/gin-gonic/gin"
"toutoukan/controllers/article"
"toutoukan/controllers/article/getArticleNum"
"toutoukan/controllers/comments/getcomments"
"toutoukan/controllers/comments/publishComments"
"toutoukan/controllers/goods"
@@ -42,6 +43,7 @@ func SetupRouter() *gin.Engine {
articleGroup.POST("/vote", article.VoteArticle)
articleGroup.POST("/create", article.CreateArticle)
articleGroup.POST("/delete", article.DeleteArticle)
articleGroup.POST("/getnum", getArticleNum.GetArticlenum)
}
goodsGroup := r.Group("/goods")