order-api-map.js 4.01 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: {}
  },

  // 获取调价商品及尺码信息
  '/api/ufo/seller/entryGoodsSizeList': {
    auth: true,
    accessLog: true,
    checkSign: true,
    ufo: true,
    api: 'ufo.seller.entryGoodsSizeList',
    params: {
      productId: {type: Number},
      limit: {type: Number},
      page: {type: Number}
    }
  },

  // 调价功能中的下架商品(不卖了)
  '/api/ufo/sellerOrder/batchDownShelf': {
    auth: true,
    accessLog: true,
    checkSign: true,
    ufo: true,
    api: 'ufo.sellerOrder.batchDownShelf',
    params: {
      product_id: {type: Number},
      storage_id: {type: Number},
      old_price: {type: Number},
      num: {type: Number}
    }
  },

  // 预先试算价格,看是否符合调价标准
  '/api/ufo/sellerOrder/computeAdjustPrice': {
    auth: true,
    accessLog: true,
    checkSign: true,
    ufo: true,
    api: 'ufo.sellerOrder.computeAdjustPrice',
    params: {
      product_id: {type: Number},
      storage_id: {type: Number},
      new_price: {type: Number},
      old_price: {type: Number},
      num: {type: Number}
    }
  },

  // 调价
  '/api/ufo/sellerOrder/batchAdjustPrice': {
    auth: true,
    accessLog: true,
    checkSign: true,
    ufo: true,
    api: 'ufo.sellerOrder.batchAdjustPrice',
    params: {
      product_id: {type: Number},
      storage_id: {type: Number},
      new_price: {type: Number},
      old_price: {type: Number},
      num: {type: Number}
    }
  },

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

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

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

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

  // 订单数量
  '/api/order/confirm/count': {
    ufo: true,
    auth: true,
    api: 'ufo.order.getAllCnt',
  },

  // 地址列表
  '/api/order/confirm/address': {
    auth: true,
    api: 'app.address.gethidden',
  },

  // 计算订单价格
  '/api/order/confirm/compute': {
    auth: true,
    ufo: true,
    api: 'ufo.sellerOrder.computePublishPrd',
  },

  // 判断用户状态
  '/api/order/user/status': {
    auth: true,
    ufo: true,
    api: 'ufo.sellerOrder.entryStatus',
  },

  // 是绑定支付宝
  '/api/order/alipay/status': {
    auth: true,
    ufo: true,
    api: 'ufo.user.aliPayAccountQuery',
  },

  // 下订单
  '/api/order/presubmit': {
    auth: true,
    ufo: true,
    api: 'ufo.sellerOrder.publishPrd',
  },

  // 支付方式
  '/api/order/paytype': {
    auth: true,
    ufo: true,
    api: 'ufo.payment.findPayListDetail',
  },

  // 订单物流信息
  '/api/order/express': {
    ufo: true,
    auth: true,
    api: 'ufo.order.expressDetailInfo',
    params: {
      tabType: { type: String, require: true }, // 订单来源
      orderCode: { type: Number, require: true }, // 订单编号
    },
  },
};