update:移动端忘记密码页面的前后端对接

This commit is contained in:
3030332422
2025-10-06 20:01:06 +08:00
parent 05389b1368
commit 1466806339
2 changed files with 44 additions and 19 deletions
+18
View File
@@ -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,
},
})
}