mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-25 00:23:53 +08:00
update:移动端忘记密码页面的前后端对接
This commit is contained in:
@@ -123,3 +123,21 @@ export function register(data: RegisterData) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
// 忘记密码数据类型
|
||||
export interface ForgotPasswordData {
|
||||
phone: string
|
||||
code: string
|
||||
password: string
|
||||
captchaId: string
|
||||
}
|
||||
|
||||
// 忘记密码(找回密码)
|
||||
export function retrievePassword(data: ForgotPasswordData) {
|
||||
return http.Put('/user/retrieve-password', data, {
|
||||
meta: {
|
||||
ignoreAuth: true,
|
||||
toast: true,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user