home-api-map.js 2.55 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',
    params: {
      content_code: { type: String }},
  },
  '/api/ufo/home/noticelist': {
    ufo: true,
    api: 'ufo.users.noticeList',
    params: {},
  },
  '/api/ufo/home/favoriteProduct': {
    ufo: true,
    auth: true,
    api: 'ufo.user.favoriteList',
    params: {},
    auth: true,
  },
  '/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,
    auth: true,
    api: 'ufo.users.listInboxs',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/home/newsListTab': {
    ufo: true,
    auth: true,
    api: 'ufo.users.listInboxTypeInfo',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/coupon/list': {
    ufo: true,
    auth: true,
    path: 'coupon',
    api: 'ufo.coupons.list',
    param: {
      page: {type: Number},
      limit: {type: Number},
      type: {type: String},
      uid: { type: Number },
    }
  },
};