api-map.js 612 Bytes
module.exports = {
  '/api/product/data': {
    api: 'app.product.data',
    cache: true,
    params: {
      product_id: {type: Number},
      uid: {type: Number, require: false}
    }
  },
  '/api/coupon/yoho/list': {
    api: 'app.coupons.get',
    params: {
      type: {type: String},
      filter: {type: Number},
      limit: {type: Number},
      page: {type: Number}
    }
  },
  '/api/coupon/yoho/num': {
    api: 'app.coupons.getCouponNums',
    params: {}
  },
  '/api/coupon/ufo/list': {
    api: 'app.coupons.get',
    params: {
      limit: {type: Number},
      page: {type: Number}
    }
  }
};