12345678910111213141516 |
- package routers
- import (
- "eta_gn/eta_bridge/controller"
- "eta_gn/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)
- }
|