mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 10:52:49 +08:00
密码修改api
This commit is contained in:
parent
d86e1fe838
commit
df50d47605
@ -21,3 +21,10 @@ export function logout() {
|
|||||||
export function getUser() {
|
export function getUser() {
|
||||||
return client.get("/backend/v1/auth/detail", {});
|
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,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user