认证流程迁移到 oauth 风格,登出接口改为 /revoke,重构接口代码到 service

This commit is contained in:
2025-04-24 10:52:13 +08:00
parent 1374757eab
commit 08c88da0ce
7 changed files with 432 additions and 549 deletions

View File

@@ -12,10 +12,9 @@ func ApplyRouters(app *fiber.App) {
// 认证
auth := api.Group("/auth")
auth.Post("/verify/sms", handlers.SmsCode)
auth.Post("/login/sms", auth2.PermitDevice(), handlers.Login)
auth.Post("/logout", handlers.Logout)
auth.Post("/token", handlers.Token)
auth.Post("/revoke", handlers.Revoke)
auth.Post("/verify/sms", handlers.SmsCode)
// 通道
channel := api.Group("/channel")