管理后台新增打手详情抽屉聚合钱包流水待解冻与订单数据
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { apiDelete, apiGet, apiPost, apiPut } from '@/lib/http'
|
||||
import type {
|
||||
UploadedFile,
|
||||
AdminWorkerDetail,
|
||||
AdminWorkerWithdrawalAccount,
|
||||
WorkCategory,
|
||||
WorkOrder,
|
||||
@@ -11,6 +12,7 @@ import type {
|
||||
WorkProductRuleMapping,
|
||||
KuaishouMatchSource,
|
||||
WorkProductMatchLog,
|
||||
WorkerDepositUnfreeze,
|
||||
WorkerFinanceConfig,
|
||||
WorkerHallConfig,
|
||||
WorkerFinanceRequest,
|
||||
@@ -24,6 +26,7 @@ import type {
|
||||
WorkerLevel,
|
||||
WorkerListResponse,
|
||||
WorkerUser,
|
||||
WorkerWalletLedger,
|
||||
} from '@/types/worker-platform'
|
||||
|
||||
type WorkOrderVoucherConsumeResult = {
|
||||
@@ -171,6 +174,30 @@ export function fetchAdminWorkerUsers(params?: Record<string, unknown>) {
|
||||
return apiGet<WorkerListResponse<WorkerUser>>('/api/v1/admin/worker-platform/workers', params)
|
||||
}
|
||||
|
||||
export function fetchAdminWorkerDetail(workerId: number | string) {
|
||||
return apiGet<AdminWorkerDetail>(`/api/v1/admin/worker-platform/workers/${workerId}/detail`)
|
||||
}
|
||||
|
||||
export function fetchAdminWorkerWalletLedgers(
|
||||
workerId: number | string,
|
||||
params?: Record<string, unknown>,
|
||||
) {
|
||||
return apiGet<WorkerListResponse<WorkerWalletLedger>>(
|
||||
`/api/v1/admin/worker-platform/workers/${workerId}/wallet-ledgers`,
|
||||
params,
|
||||
)
|
||||
}
|
||||
|
||||
export function fetchAdminWorkerDepositUnfreezes(
|
||||
workerId: number | string,
|
||||
params?: Record<string, unknown>,
|
||||
) {
|
||||
return apiGet<WorkerListResponse<WorkerDepositUnfreeze>>(
|
||||
`/api/v1/admin/worker-platform/workers/${workerId}/deposit-unfreezes`,
|
||||
params,
|
||||
)
|
||||
}
|
||||
|
||||
export function fetchAdminWorkProductRules(params?: Record<string, unknown>) {
|
||||
return apiGet<{
|
||||
items: WorkProductRule[]
|
||||
|
||||
Reference in New Issue
Block a user