zhou.xiaoning 3 yıl önce
ebeveyn
işleme
a09b093598
2 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 1 1
      controllers/common/menu.go
  2. 2 0
      routers/router.go

+ 1 - 1
controllers/common/menu.go

@@ -519,7 +519,7 @@ type GetClientNewFuncmenuReq struct {
 	LoginID int `form:"loginid" binding:"required"`
 }
 
-// FindNewFuncmenu 获取终端菜单
+// GetClientNewFuncmenu 获取终端菜单
 // @Summary 获取终端菜单
 // @Produce json
 // @Security ApiKeyAuth

+ 2 - 0
routers/router.go

@@ -142,6 +142,8 @@ func InitRouter() *gin.Engine {
 		commonR.Use(token.Auth()).POST("/InsertNewFuncmenu", common.InsertNewFuncmenu)
 		commonR.Use(token.Auth()).PUT("/UpdateNewFuncmenu", common.UpdateNewFuncmenu)
 		commonR.Use(token.Auth()).DELETE("/DeleteNewFuncmenu", common.DeleteNewFuncmenu)
+
+		commonR.Use(token.Auth()).GET("/GetClientNewFuncmenu", common.GetClientNewFuncmenu)
 	}
 	// ************************ 通用市场 ************************
 	marketR := apiR.Group("Market")