home-api-map.js 2.86 KB
module.exports = {
  '/api/ufo/mine/rollBoardList': {
    ufo: true,
    api: 'ufo.users.rollNoticeList',
    params: {},
  },
  '/api/ufo/mine/seller/orderSummary': {
    ufo: true,
    auth: true,
    api: 'ufo.seller.orderSummary',
    params: {},
  },
  '/api/ufo/mine/favoriteNum': {
    ufo: true,
    auth: true,
    api: 'ufo.user.favoriteNum',
    params: {},
  },
  '/api/ufo/mine/depositNum': {
    ufo: true,
    auth: true,
    api: 'ufo.deposit.queryUserStorageCount',
    params: {},
  },
  '/api/ufo/mine/assets': {
    ufo: true,
    auth: true,
    api: 'ufo.asssets.details',
    params: {
      limit: { type: Number },
      page: { type: Number },
    },
  },
  '/api/ufo/mine/wallet': {
    ufo: true,
    auth: true,
    api: 'ufo.wallet.queryWalletDetailList',
    params: {
      tradeType: { type: Number },
      limit: { type: Number },
      page: { type: Number },
      startTime: {type: Number},
      endTime: {type: Number}
    },
  },
  '/api/ufo/mine/userWalletInfo': {
    ufo: true,
    auth: true,
    api: 'ufo.wallet.queryUserWalletInfo',
    params: {}
  },
  '/api/ufo/mine/walletFilter': {
    ufo: true,
    auth: true,
    api: 'ufo.wallet.queryDateAndType',
    params: {}
  },
  '/api/ufo/mine/order/summary': {
    ufo: true,
    auth: true,
    path: 'shopping',
    api: 'ufo.order.summary',
    params: {},
  },
  '/api/ufo/mine/coupon': {
    ufo: true,
    auth: true,
    path: 'coupon',
    api: 'ufo.coupons.cnt',
    params: {},
  },
  '/api/ufo/mine/resource': {
    ufo: true,
    api: 'ufo.resource.get',
    cache: true,
    params: {
      content_code: { type: String }},
  },
  '/api/ufo/home/noticelist': {
    ufo: true,
    api: 'ufo.users.noticeList',
    params: {},
  },
  '/api/ufo/home/favoriteProduct': {
    ufo: true,
    api: 'ufo.user.favoriteList',
    params: {},
    auth: true,
  },
  '/api/ufo/channel/channelList': {
    ufo: true,
    api: 'ufo.resource.get',
    params: {
      content_code: { type: String },
    },
    auth: true,
    cache: true
  },
  '/api/ufo/home/newsList': {
    ufo: true,
    api: 'ufo.users.listInboxs',
    params: {
      // uid: {type: Number}
    },
    auth: true,
  },
  '/api/ufo/home/newsListTab': {
    ufo: true,
    api: 'ufo.users.listInboxTypeInfo',
    params: {},
    auth: true,
  },
  '/api/ufo/coupon/list': {
    ufo: true,
    auth: true,
    path: 'coupon',
    api: 'ufo.coupons.list',
    param: {}
  },
  '/api/ufo/home/bindAliPayAccount': {
    ufo: true,
    auth: true,
    api: 'ufo.user.directBindAliPayAccountInfo',
    param: {
      alipayAccount: {type: String},
      certName: {type: String}
    }
  },
  '/api/ufo/home/getUserAliPayAccount': {
    ufo: true,
    auth: true,
    api: 'ufo.user.getUserAliPayAccountInfo',
    param: {}
  },
  '/api/ufo/home/listInboxTypeInfo': {
    ufo: true,
    auth: true,
    api: 'ufo.users.listInboxTypeInfo',
    param: {}
  },
};