增加前端格式检查配置
This commit is contained in:
@@ -22,7 +22,10 @@ export interface Dispute {
|
||||
updated_at: string
|
||||
}
|
||||
|
||||
export async function createDispute(orderId: number, payload: { type: string; description: string; evidence_urls?: string[] }) {
|
||||
export async function createDispute(
|
||||
orderId: number,
|
||||
payload: { type: string; description: string; evidence_urls?: string[] }
|
||||
) {
|
||||
const { data } = await apiClient.post<ApiResponse<Dispute>>(`/orders/${orderId}/dispute`, payload)
|
||||
return data.data
|
||||
}
|
||||
@@ -41,7 +44,13 @@ export async function fetchAdminDisputes(page = 1, pageSize = 20) {
|
||||
return data.data
|
||||
}
|
||||
|
||||
export async function arbitrateDispute(id: number, payload: { result: string; remark: string; amount?: number }) {
|
||||
const { data } = await apiClient.post<ApiResponse<Dispute>>(`/admin/disputes/${id}/arbitrate`, payload)
|
||||
export async function arbitrateDispute(
|
||||
id: number,
|
||||
payload: { result: string; remark: string; amount?: number }
|
||||
) {
|
||||
const { data } = await apiClient.post<ApiResponse<Dispute>>(
|
||||
`/admin/disputes/${id}/arbitrate`,
|
||||
payload
|
||||
)
|
||||
return data.data
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user