From 5f0170df9787c6f3ff17cc168b3f2e3f511453f6 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期二, 31 十月 2023 20:04:16 +0800
Subject: [PATCH] 支持职级降级的情况

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

diff --git a/router/index.go b/router/index.go
index 8913ffe..94aae0a 100644
--- a/router/index.go
+++ b/router/index.go
@@ -4,6 +4,7 @@
 	v1 "aps_crm/api/v1"
 	"aps_crm/conf"
 	_ "aps_crm/docs"
+	"aps_crm/middleware"
 	"fmt"
 	"github.com/gin-contrib/cors"
 	"github.com/gin-gonic/gin"
@@ -111,10 +112,10 @@
 
 	PrivateGroup := Router.Group("api")
 	//PrivateGroup.Use(middleware.JWTAuth()).Use(middleware.CasbinHandler())
-	//PrivateGroup.Use(middleware.JWTAuth2())
+	PrivateGroup.Use(middleware.JWTAuth2())
 	//PrivateGroup.Use(middleware.CasbinHandler())
 	{
-		//routerGroup.InitJwtRouter(PrivateGroup) // jwt鐩稿叧璺敱
+		routerGroup.InitJwtRouter(PrivateGroup) // jwt鐩稿叧璺敱
 		//routerGroup.InitUserRouter(PrivateGroup)                 // 娉ㄥ唽鐢ㄦ埛璺敱
 		routerGroup.InitCountryRouter(PrivateGroup)              // 娉ㄥ唽country璺敱
 		routerGroup.InitProvinceRouter(PrivateGroup)             // 娉ㄥ唽province璺敱
@@ -183,6 +184,7 @@
 		InitReceiptRouter(PrivateGroup)
 		InitBankAccountRouter(PrivateGroup)
 		InitPaymentTypeRouter(PrivateGroup)
+		InitRefundTypeRouter(PrivateGroup)
 		InitFileRouter(PrivateGroup)
 		InitInvoiceRouter(PrivateGroup)
 		InitInvoiceStatusRouter(PrivateGroup)
@@ -195,7 +197,8 @@
 	codeGroup := PrivateGroup.Group("code")
 	codeApi := v1.CodeApi{}
 	{
-		codeGroup.GET("getCodeList", codeApi.GetCodeList) //鑾峰彇缂栫爜鍒楄〃
+		codeGroup.GET("getCodeList", codeApi.GetCodeList)  //鑾峰彇缂栫爜鍒楄〃
+		codeGroup.POST("getAutoCode", codeApi.GetAutoCode) //鑾峰彇缂栫爜鍒楄〃
 	}
 	return Router
 }

--
Gitblit v1.8.0