优化申诉仲裁流程和证据展示
This commit is contained in:
@@ -7,14 +7,26 @@ export interface Dispute {
|
||||
id: number
|
||||
order_id: number
|
||||
order_no: string
|
||||
order_status: string
|
||||
handoff_status: string
|
||||
settlement_status: string
|
||||
listing_no: string
|
||||
title: string
|
||||
owner_id: number
|
||||
renter_id: number
|
||||
owner_phone: string
|
||||
renter_phone: string
|
||||
initiator_id: number
|
||||
target_user_id: number
|
||||
type: string
|
||||
status: DisputeStatus
|
||||
description: string
|
||||
evidence_urls?: string[]
|
||||
previous_order_status?: string
|
||||
previous_handoff_status?: string
|
||||
previous_settlement_status?: string
|
||||
checkout_id?: number
|
||||
previous_checkout_status?: string
|
||||
arbitration_result: string
|
||||
arbitration_remark: string
|
||||
handled_by?: number
|
||||
@@ -31,6 +43,16 @@ export async function createDispute(
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function cancelOrderDispute(orderId: number) {
|
||||
const { data } = await apiClient.post<ApiResponse<Dispute>>(`/orders/${orderId}/dispute/cancel`)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function cancelDispute(id: number) {
|
||||
const { data } = await apiClient.post<ApiResponse<Dispute>>(`/disputes/${id}/cancel`)
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function fetchDisputes(page = 1, pageSize = 20) {
|
||||
const { data } = await apiClient.get<ApiResponse<PaginatedResult<Dispute>>>('/disputes', {
|
||||
params: { page, page_size: pageSize },
|
||||
|
||||
Reference in New Issue
Block a user