新增:新增修改密码功能,并优化部分以往代码

This commit is contained in:
2023-01-10 23:25:58 +08:00
parent 519124a3c7
commit a08fd7773e
14 changed files with 331 additions and 12 deletions

View File

@@ -19,4 +19,12 @@ export interface UpdateBasicInfoReq {
}
export function updateBasicInfo(req: UpdateBasicInfoReq) {
return axios.patch('/system/user/center/basic/info', req);
}
export interface UpdatePasswordReq {
oldPassword: string;
newPassword: string;
}
export function updatePassword(req: UpdatePasswordReq) {
return axios.patch('/system/user/center/password', req);
}