home-api-map.js 2.2 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: '/ufo-gateway/shopping',
    api: 'ufo.order.summary',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/mine/resource': {
    ufo: true,
    api: 'ufo.resource.get',
    params: {
      content_code: { type: String },
      uid: { type: Number },
    },
  },
  '/api/ufo/home/noticelist': {
    ufo: true,
    api: 'ufo.users.noticeList',
    params: {},
  },
  '/api/ufo/home/favoriteProduct': {
    ufo: true,
    api: 'ufo.user.favoriteList',
    params: {},
  },
  '/api/ufo/channel/channelList': {
    ufo: true,
    api: 'ufo.resource.get',
    params: {
      content_code: { type: String },
      uid: { type: Number, require: true },
    },
  },
  '/api/ufo/home/newsList': {
    ufo: true,
    api: 'ufo.users.listInboxs',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/home/newsListTab': {
    ufo: true,
    api: 'ufo.users.listInboxTypeInfo',
    params: {
      uid: { type: Number },
    },
  },
};