From 4deb5edc39cfa1f2b768836acc9bdad63dec1ee7 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Tue, 7 May 2024 18:54:38 +0800 Subject: [PATCH] =?UTF-8?q?master=E5=88=86=E6=94=AF=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/routes/admin.go | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/app/http/routes/admin.go b/app/http/routes/admin.go index 595cf1e..ea01006 100644 --- a/app/http/routes/admin.go +++ b/app/http/routes/admin.go @@ -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") + //{ + // + //} }