feat(worker-platform): add worker withdrawal blacklist and admin actions
This commit is contained in:
@@ -186,6 +186,16 @@ export function fetchAdminWorkerDetail(workerId: number | string) {
|
||||
return apiGet<AdminWorkerDetail>(`/api/v1/admin/worker-platform/workers/${workerId}/detail`)
|
||||
}
|
||||
|
||||
export function updateAdminWorkerWithdrawalBlacklist(
|
||||
workerId: number | string,
|
||||
payload: { isWithdrawalBlacklisted: boolean; reason?: string },
|
||||
) {
|
||||
return apiPost<{ worker: WorkerUser }>(
|
||||
`/api/v1/admin/worker-platform/workers/${workerId}/withdrawal-blacklist`,
|
||||
payload,
|
||||
)
|
||||
}
|
||||
|
||||
export function fetchAdminWorkerWalletLedgers(
|
||||
workerId: number | string,
|
||||
params?: Record<string, unknown>,
|
||||
|
||||
Reference in New Issue
Block a user