mirror of
https://github.com/continew-org/continew-admin.git
synced 2026-01-12 06:57:09 +08:00
新增:新增修改密码功能,并优化部分以往代码
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user