orderListService.js 928 Bytes
import BaseService from '../../libs/services/baseService.js';

const UFO_ORDER_LIST = 'ufo.order.list';
const UFO_BUYER_DELETE_ORDER = 'ufo.buyer.delete';
const UFO_BUYER_CANCEL_ORDER = 'ufo.buyer.cancel';
const UFO_CANCEL_ORDER_INFO = 'ufo.buyer.cancelCompute';

export default class MyAssetsService extends BaseService {
  //获取订单列表
  async getOrderListInfo(params, complete) {
    return await this.GET(
      {
        ...params,
        method: UFO_ORDER_LIST
      },
      {
        complete
      }
    ).then((data) => {
      return data;
    }).catch((error) => {
      return error;
    })
  }
  //获取取消订单数据
  async getCancelOrderInfo(params, complete) {
    return await this.GET(
      {
        ...params,
        method: UFO_CANCEL_ORDER_INFO
      },
      {
        complete
      }
    ).then((data) => {
      return data;
    }).catch((error) => {
      return error;
    })
  }
}