order-api-map.js 1.86 KB
/**
 * param 仅为参数校验使用
 */
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: {}
  },
  '/api/ufo/seller/entryGoodsSizeList': {
    accessLog: true,
    checkSign: false,
    ufo: true,
    api: 'ufo.seller.entryGoodsSizeList',
    params: {
      productId: {type: Number},
      limit: {type: Number},
      page: {type: Number}
    }
  },

  // 订单列表查询
  '/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 }, // 订单来源
    },
  },

  // 订单详情
  '/order/detail': {
    ufo: true,
    api: 'ufo.order.detail',
    params: {
      tabType: { type: Number, require: true }, // 订单来源
      order_code: { type: Number, require: true }, // 订单编号
      uid: { type: String, require: true },
    },
  },

  // 确认收货
  '/buyer/confirm/receipt': {
    ufo: true,
    api: 'ufo.buyer.confirm',
    params: {
      order_code: { type: Number, require: true }, // 订单编号
      uid: { type: String, require: true },
    },
  },
};