忘记密码与部门改为懒加载
This commit is contained in:
@ -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
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user