From 250cbfa1ddcb3cf38e0d0505c1c7e282b940d25b Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 13 十月 2023 10:30:05 +0800
Subject: [PATCH] admin user id 转crm user id

---
 router/index.go |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/router/index.go b/router/index.go
index ea98b63..2c3d5b3 100644
--- a/router/index.go
+++ b/router/index.go
@@ -4,6 +4,7 @@
 	"aps_crm/conf"
 	_ "aps_crm/docs"
 	"aps_crm/middleware"
+	"fmt"
 	"github.com/gin-contrib/cors"
 	"github.com/gin-gonic/gin"
 	swaggerFiles "github.com/swaggo/files"
@@ -86,6 +87,14 @@
 	Router.Use(cors.Default())
 	Router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
 
+	//鑾峰彇鎵�鏈夎矾鐢� //todo
+	Router.GET("getRouters", func(c *gin.Context) {
+		routers := Router.Routes()
+		for _, v := range routers {
+			fmt.Printf("\"%v\" : 1,\n", v.Path)
+		}
+	})
+
 	routerGroup := new(Group)
 	PublicGroup := Router.Group("api")
 

--
Gitblit v1.8.0