Files
sundynix-go/router/system/auth_router.go
T
2025-09-15 21:00:39 +08:00

19 lines
442 B
Go

package system
import (
"github.com/gin-gonic/gin"
)
type AuthRouter struct {
}
// InitAuthRouter 初始化登录路由
func (s *AuthRouter) InitAuthRouter(Router *gin.RouterGroup) {
loginRouter := Router.Group("auth")
{
loginRouter.POST("login", authApi.Login)
loginRouter.GET("captcha", authApi.Captcha)
loginRouter.GET("logout", authApi.Logout) // 服务端不保存任何登录状态 退出实际是禁用了当前的jwt
}
}