mirror of
https://github.com/PlayEdu/backend
synced 2025-11-19 08:17:44 +08:00
密码修改api
This commit is contained in:
@@ -20,4 +20,11 @@ export function logout() {
|
||||
|
||||
export function getUser() {
|
||||
return client.get("/backend/v1/auth/detail", {});
|
||||
}
|
||||
}
|
||||
|
||||
export function passwordChange(oldPassword: string, newPassword: string) {
|
||||
return client.put("/backend/v1/auth/password", {
|
||||
old_password: oldPassword,
|
||||
new_password: newPassword,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user