feat: support set user phone

This commit is contained in:
2025-12-20 14:27:29 +08:00
parent 8e95dada82
commit 0185e51396
5 changed files with 135 additions and 6 deletions

View File

@@ -18,6 +18,11 @@ export const userService = {
balance
});
},
setPhone(id, phone) {
return httpClient.post(`/users/${id}/phone`, {
phone
});
},
getUser(id) {
return httpClient.get(`/users/${id}`);
},
@@ -35,4 +40,4 @@ export const userService = {
}
});
}
}
}