注册集成手机号登录,修改密码,修改手机号

This commit is contained in:
xiaowang
2026-03-03 14:39:02 +08:00
parent 2c505deaf9
commit b301e37468
29 changed files with 1405 additions and 44 deletions
+9
View File
@@ -6,6 +6,11 @@ export interface LoginRequest {
rememberMe?: boolean
}
export interface PhoneLoginRequest {
phone: string
verificationCode: string
}
export interface RegisterRequest {
account: string
password: string
@@ -44,6 +49,10 @@ export const authApi = {
return api.post<LoginResponse>('/user/login', data)
},
phoneLogin: (data: PhoneLoginRequest) => {
return api.post<LoginResponse>('/user/phone-login', data)
},
adminLogin: (data: LoginRequest) => {
return api.post<LoginResponse>('/admin/auth/login', data)
},