1234567891011121314151617 |
- package routers
- import (
- "github.com/gin-gonic/gin"
- "hongze/hongze_yb_en_api/controller"
- )
- func InitAuth(baseGroup *gin.RouterGroup) {
- //登录
- authController := new(controller.AuthController)
- authGroup := baseGroup.Group("auth/")
- authGroup.POST("login", authController.Login)
- authGroup.POST("register", authController.Register)
- authGroup.POST("modifyPwd", authController.Login)
- authGroup.POST("smsCode", authController.GetSmsCode)
- authGroup.POST("emailCode", authController.GetEmailCode)
- }
|