import request from '@/utils/request';
import { AxiosPromise } from 'axios';

export interface SubOrderAppealVO {
  id: string | number;
  orderId: string | number;
  orderCode: string;
  service: string | number;
  photos: string;
  photoUrls: string;
  fulfillmentCommission: number;
  reason: string;
  fulfiller: string | number;
  fulfillerName: string;
  auditStatus: number;
  rejectReason: string;
  auditor: string | number;
  auditorName: string;
  auditTime: string;
  createTime: string;
}

/**
 * 根据订单ID查询服务变更记录列表
 * @param orderId 订单ID
 */
export function listSubOrderAppealByOrderId(orderId: string | number): AxiosPromise<SubOrderAppealVO[]> {
  return request({
    url: '/order/subOrderAppeal/listByOrderId/' + orderId,
    method: 'get'
  });
}