home-api-map.js 1.72 KB
module.exports = {
  '/api/ufo/mine/rollBoardList': {
    ufo: true,
    api: 'ufo.users.rollNoticeList',
    params: {},
  },
  '/api/ufo/mine/seller/orderSummary': {
    ufo: true,
    api: 'ufo.seller.orderSummary',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/mine/favoriteNum': {
    ufo: true,
    api: 'ufo.user.favoriteNum',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/mine/depositNum': {
    ufo: true,
    api: 'ufo.deposit.queryUserStorageCount',
    params: {
      uid: { type: Number },
    },
  },
  '/api/ufo/mine/assets': {
    ufo: true,
    api: 'ufo.asssets.details',
    params: {
      uid: { type: Number },
      limit: { type: Number },
      page: { type: Number },
    },
  },
  '/api/ufo/mine/order/summary': {
    ufo: 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 },
    },
  },
};