添加更新api的实现

This commit is contained in:
carry 2025-02-14 17:51:23 +08:00
parent 16e8d72d9e
commit eb3ebc2745

View File

@ -23,5 +23,10 @@ export const userService = {
async deleteUser(userId: number): Promise<void> {
await apiClient.delete(`${API_BASE_URL}/${userId}`);
},
async getUser(userId: number): Promise<UserResponse> {
const response = await apiClient.get(`${API_BASE_URL}/${userId}`);
return response.data;
}
};