home-api-map.js 2.45 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: {},
  },
  '/api/ufo/mine/coupon': {
    ufo: true,
    auth: true,
    path: '/ufo-gateway/coupon',
    api: 'ufo.coupons.cnt',
    params: {},
  },
  '/api/ufo/mine/resource': {
    ufo: true,
    api: 'ufo.resource.get',
    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,
  },
  '/api/ufo/home/newsList': {
    ufo: true,
    api: 'ufo.users.listInboxs',
    params: {},
    auth: true,
  },
  '/api/ufo/home/newsListTab': {
    ufo: true,
    api: 'ufo.users.listInboxTypeInfo',
    params: {},
    auth: true,
  },
  '/api/ufo/coupon/list': {
    ufo: true,
    auth: true,
    path: '/ufo-gateway/coupon',
    api: 'ufo.coupons.list',
    param: {
      page: {type: Number},
      limit: {type: Number},
      type: {type: String},
    }
  },
};