优化快手电子凭证发码和手动处理
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { apiGet } from '@/lib/http'
|
||||
import { apiGet, apiPost } from '@/lib/http'
|
||||
import type { AdminOrderDetail, AdminOrderListItem, AdminPagination } from '@/types/admin'
|
||||
|
||||
export function fetchAdminOrders(params?: Record<string, unknown>) {
|
||||
@@ -11,3 +11,12 @@ export function fetchAdminOrders(params?: Record<string, unknown>) {
|
||||
export function fetchAdminOrderDetail(orderId: number | string) {
|
||||
return apiGet<AdminOrderDetail>(`/api/v1/admin/orders/${orderId}`)
|
||||
}
|
||||
|
||||
export function resendAdminOrderKuaishouIndustryVoucherCode(orderId: number | string) {
|
||||
return apiPost<{
|
||||
success: boolean
|
||||
resentCount: number
|
||||
failedCount: number
|
||||
errorMessage: string
|
||||
}>(`/api/v1/admin/orders/${orderId}/kuaishou-industry/resend-code`, {})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user