package routers import ( "eta/eta_bridge/controller" "eta/eta_bridge/middleware" "github.com/gin-gonic/gin" ) func InitAuth(r *gin.RouterGroup) { //登录 authController := new(controller.AuthController) authGroup := r.Group("auth/").Use(middleware.Token()) authGroup.POST("auth_code", authController.CreateAuthCode) authGroup.POST("eta_token", authController.GetEtaToken) authGroup.POST("crm_token", authController.GetCrmToken) }