添加更新api的实现
This commit is contained in:
parent
16e8d72d9e
commit
eb3ebc2745
@ -23,5 +23,10 @@ export const userService = {
|
|||||||
|
|
||||||
async deleteUser(userId: number): Promise<void> {
|
async deleteUser(userId: number): Promise<void> {
|
||||||
await apiClient.delete(`${API_BASE_URL}/${userId}`);
|
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;
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
x
Reference in New Issue
Block a user