feat(admin): 新增后台退款审核队列
This commit is contained in:
@@ -217,3 +217,18 @@ export async function adjustAdminUserWallet(
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function fetchPendingRefundOrders() {
|
||||
const { data } = await adminClient.get<ApiResponse<{ items: AdminOrderDetail[] }>>(
|
||||
'/admin/orders/refund-pending'
|
||||
)
|
||||
return data.data.items ?? []
|
||||
}
|
||||
|
||||
export async function approveAdminRefund(id: number | string) {
|
||||
await adminClient.post(`/admin/orders/${id}/refund/approve`)
|
||||
}
|
||||
|
||||
export async function rejectAdminRefund(id: number | string, action: 'restore' | 'close') {
|
||||
await adminClient.post(`/admin/orders/${id}/refund/reject`, { action })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user