master分支初始化

This commit is contained in:
qiyunfanbo126.com 2024-05-07 18:54:38 +08:00
parent c05c75362f
commit 4deb5edc39
1 changed files with 4 additions and 16 deletions

View File

@ -4,7 +4,6 @@ import (
"github.com/gin-gonic/gin"
"github.com/qit-team/snow-core/http/middleware"
"qteam/app/http/controllers"
"qteam/app/http/controllers/backend"
"qteam/app/http/middlewares"
"qteam/app/http/trace"
"qteam/app/utils"
@ -22,21 +21,10 @@ func RegisterAdminRoute(router *gin.Engine) {
router.Use(middlewares.Trace())
}
}
admin := router.Group("/admin")
{
api := admin.Group("/api")
{
api.POST("/userList", backend.UserList)
}
}
v1 := router.Group("/admin/api/v1")
{
products := v1.Group("/product")
products.POST("/create", middlewares.ValidateRequest(), backend.ProductCreateHandler)
products.GET("/query", backend.ProductQueryHandler)
products.PUT("/update", middlewares.ValidateRequest(), backend.ProductUpdateHandler)
products.DELETE("/delete", backend.ProductDeleteHandler)
}
//v1 := router.Group("/admin/api/v1")
//{
//
//}
}