mirror of
https://github.com/PlayEdu/backend
synced 2025-07-13 04:02:45 +08:00
密码修改api
This commit is contained in:
parent
d86e1fe838
commit
df50d47605
@ -20,4 +20,11 @@ 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