忘记密码与部门改为懒加载

This commit is contained in:
孙景学
2025-07-18 13:39:45 +08:00
parent e637f62d86
commit 505562892f
8 changed files with 480 additions and 61 deletions

View File

@ -70,4 +70,30 @@ export async function queryUserOrgAll() {
return request('/org/queryUserOrgAll', {
method: 'GET'
});
}
/**
* 发送验证码
*/
interface sendCodeData {
account: string;
}
export async function sendCode(data: sendCodeData) {
return request('/v1/login/forgotPassword/sendCode', {
method: 'POST',
data
});
}
/**
* 校验验证码并设置新密码
*/
interface resetData {
account: string;
identifying: string;
password: string;
}
export async function reset(data: resetData) {
return request('/v1/login/forgotPassword/reset', {
method: 'POST',
data
});
}