新增客服一键交接功能
This commit is contained in:
@@ -78,6 +78,7 @@ export interface Order {
|
||||
export interface AdminActions {
|
||||
reset_handoff?: AdminAction
|
||||
platform_handoff?: AdminAction
|
||||
force_handoff?: AdminAction
|
||||
platform_checkout_confirm?: AdminAction
|
||||
platform_checkout_counter?: AdminAction
|
||||
platform_checkout_dispute?: AdminAction
|
||||
@@ -418,6 +419,14 @@ export async function adminPlatformHandoff(id: number, content: string, reason:
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function adminForceHandoff(id: number, content: string, reason: string) {
|
||||
const { data } = await apiClient.post<ApiResponse<{ received: boolean }>>(
|
||||
`/admin/orders/${id}/force-handoff`,
|
||||
{ content, reason }
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function adminPlatformCheckoutConfirm(id: number, reason: string) {
|
||||
const { data } = await apiClient.post<ApiResponse<{ confirmed: boolean }>>(
|
||||
`/admin/orders/${id}/platform-checkout/confirm`,
|
||||
|
||||
Reference in New Issue
Block a user