修改用户密码.

This commit is contained in:
lijiahang
2023-10-31 12:39:12 +08:00
parent 46fd799021
commit 6c9aabd4fd
11 changed files with 255 additions and 40 deletions

View File

@@ -15,6 +15,14 @@ export interface LoginResponse {
token: string;
}
/**
* 修改密码请求
*/
export interface UserUpdatePasswordRequest {
beforePassword?: string;
password?: string;
}
/**
* 登陆
*/
@@ -29,6 +37,13 @@ export function logout() {
return axios.get('/infra/auth/logout');
}
/**
* 修改密码
*/
export function updatePassword(request: UserUpdatePasswordRequest) {
return axios.put('/infra/auth/update-password', request);
}
/**
* 获取用户信息
*/