This commit is contained in:
sjk
2026-01-08 13:10:15 +08:00
parent 4c4e0f390d
commit 8446c004e7
10 changed files with 373 additions and 64 deletions

View File

@@ -31,6 +31,7 @@ func SetupRouter(r *gin.Engine) {
api.POST("/login/phone", authCtrl.PhoneLogin) // 手机号登录(测试用)
api.POST("/login/phone-password", authCtrl.PhonePasswordLogin) // 手机号密码登录
api.POST("/login/xhs-phone-code", authCtrl.XHSPhoneCodeLogin) // 小红书手机号验证码登录
api.POST("/login/send-sms-code", authCtrl.SendSmsCode) // 发送阿里云短信验证码
api.POST("/xhs/send-verification-code", authCtrl.SendXHSVerificationCode) // 发送小红书验证码
api.POST("/logout", middleware.AuthMiddleware(), authCtrl.Logout) // 退出登录(需要认证)