feat: 重置密码

This commit is contained in:
zhangyh
2025-10-27 15:01:36 +08:00
parent e7b0b3843f
commit 80b1558518
7 changed files with 86 additions and 39 deletions

View File

@@ -8,11 +8,12 @@ interface LoginParamsType {
verifyCode?: string // 验证码
}
export const precheckAndSendEmail = (data: LoginParamsType): Promise<ApiResponse> => {
// 发送验证码
export const precheckEmail = (params: { email: string }): Promise<ApiResponse> => {
return request({
url: '/api/auth/precheckAndSendEmail',
method: 'post',
data
url: '/api/auth/precheckEmail',
method: 'get',
params
})
}
@@ -35,6 +36,7 @@ export const resetPassword = (data: LoginParamsType): Promise<ApiResponse> => {
export const checkLoginStatus = (): Promise<ApiResponse<LoginResponse>> => {
return request({
url: '/api/auth/checkLoginStatus',
method: 'get'
method: 'get',
meta: { responseAll: true }
})
}
}