|
|
@ -24,6 +24,7 @@ export function createUser(params: { username: string; nickname: string; passwor |
|
|
|
return httpRequest<BaseResponse>({ url: "/api/user/", method: "POST", params }); |
|
|
|
} |
|
|
|
|
|
|
|
export function deleteUser(userId: number) { |
|
|
|
return httpRequest<BaseResponse>({ url: `/api/user/${userId}`, method: "DELETE" }); |
|
|
|
// 逗号分隔的useId
|
|
|
|
export function deleteUser(userIds: string) { |
|
|
|
return httpRequest<BaseResponse>({ url: `/api/user/${userIds}`, method: "DELETE" }); |
|
|
|
} |