增加前端格式检查配置
This commit is contained in:
@@ -53,9 +53,12 @@ export async function fetchAdminWithdrawals(params: {
|
||||
page?: number
|
||||
page_size?: number
|
||||
}) {
|
||||
const { data } = await apiClient.get<ApiResponse<PaginatedResult<WithdrawalDetail>>>('/admin/withdrawals', {
|
||||
params,
|
||||
})
|
||||
const { data } = await apiClient.get<ApiResponse<PaginatedResult<WithdrawalDetail>>>(
|
||||
'/admin/withdrawals',
|
||||
{
|
||||
params,
|
||||
}
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
@@ -65,11 +68,17 @@ export async function fetchAdminWithdrawal(id: number) {
|
||||
}
|
||||
|
||||
export async function reviewWithdrawal(id: number, req: ReviewWithdrawalRequest) {
|
||||
const { data } = await apiClient.post<ApiResponse<WithdrawalDetail>>(`/admin/withdrawals/${id}/review`, req)
|
||||
const { data } = await apiClient.post<ApiResponse<WithdrawalDetail>>(
|
||||
`/admin/withdrawals/${id}/review`,
|
||||
req
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function confirmPayment(id: number, req: ConfirmPaymentRequest) {
|
||||
const { data } = await apiClient.post<ApiResponse<WithdrawalDetail>>(`/admin/withdrawals/${id}/confirm-payment`, req)
|
||||
const { data } = await apiClient.post<ApiResponse<WithdrawalDetail>>(
|
||||
`/admin/withdrawals/${id}/confirm-payment`,
|
||||
req
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user