From 30fe9f4cbad93c7fc57f341f57aca15ae72ed322 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Tue, 12 Nov 2024 16:00:14 +0800 Subject: [PATCH] update --- app/router/router.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/router/router.go b/app/router/router.go index 7135204..c0fdd9d 100644 --- a/app/router/router.go +++ b/app/router/router.go @@ -51,9 +51,9 @@ func Init() *gin.Engine { func route(r *gin.RouterGroup) { r.GET("/test", hdl.Demo) r.POST("/login", hdl.Login) - //r.Use(mw.Auth) // 以下接口需要JWT验证 + r.Use(mw.Auth) // 以下接口需要JWT验证 rComm(r.Group("/comm")) - //r.Use(mw.CheckPermission) // 检测权限 + r.Use(mw.CheckPermission) // 检测权限 rInstitutionalManagement(r.Group("/institutionalManagement")) } @@ -88,7 +88,7 @@ func rInstitutionalManagement(r *gin.RouterGroup) { //制度管理 { rEggEnergy.GET("/getBasic", egg_energy.GetEggEnergyBasic) rEggEnergy.POST("/updateBasic", egg_energy.UpdateEggEnergyBasic) - rEggEnergyUserCoin := rPublicPlatoon.Group("/userCoin") + rEggEnergyUserCoin := rEggEnergy.Group("/userCoin") { rEggEnergyUserCoin.POST("/activePointsUserCoinList", egg_energy.GetActivePointsUserCoinList) rEggEnergyUserCoin.POST("/activePointsUserCoinFlowList", egg_energy.GetActivePointsUserCoinFlowList)