order-api-map.js 1.07 KB
module.exports = {
  '/api/ufo/invite/friendList': {
    ufo: true,
    api: 'ufo.invite.code',
    params: {},
  },
  '/api/ufo/invite/recordDetailList': {
    ufo: true,
    api: 'ufo.invite.getInviteSettlementItemList',
    params: {},
  },
  '/api/yoho/resource': {
    service: true,
    api: 'operations/api/v5/resource/get',
    params: {
      content_code: { type: String },
    },
  },
  '/api/union/inviteList': {
    api: 'app.union.shareOrder.queryInviteYohoList',
    params: {
      page: { type: Number },
      size: { type: Number },
    },
  },
  '/api/union/queryUnion': {
    api: 'app.union.shareOrder.queryUnionTypeByUid',
    params: {},
  },

  // 订单列表查询
  '/order/list': {
    ufo: true,
    api: 'ufo.order.list',

    // 类型定义
    params: {
      limit: { type: Number, require: true }, // page size
      page: { type: Number, require: true }, // page number
      uid: { type: String, require: true },
      type: { type: Number, require: true }, // 订单类型
      tabType: { type: Number, require: true }, // 订单来源
    },
  },
};