auth.go 278 B

12345678910111213
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/fms_api/controller"
  5. )
  6. func InitAuth(baseGroup *gin.RouterGroup) {
  7. //登录
  8. authController := new(controller.AuthController)
  9. authGroup := baseGroup.Group("auth/")
  10. authGroup.POST("login", authController.Login)
  11. }