userpage.js 2.11 KB
module.exports = {
  '/api/grass/getGrassUserBaseInfo': {
    api: 'app.grass.getGrassUserBaseInfo',
    cache: true,
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true}
    }
  },
  '/api/grass/getGrassPubAndFavorNum': {
    api: 'app.grass.getGrassPubAndFavorNum',
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true}
    }
  },
  '/api/grass/userPublishedArticleList': {
    api: 'app.grass.userPublishedArticleList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/userFavouriteArticleList': {
    api: 'app.grass.userFavouriteArticleList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/getMineGrassBaseInfo': {
    api: 'app.grass.getGrassUserBaseInfo',
    cache: true,
    auth: true,
    params: {
      authorUid: {type: Number, require: true, alias: 'uid'},
      authorType: {type: Number, require: true}
    }
  },
  '/api/grass/getMineGrassPubAndFavorNum': {
    api: 'app.grass.getGrassPubAndFavorNum',
    auth: true,
    params: {
      authorUid: {type: Number, require: true, alias: 'uid'},
      authorType: {type: Number, require: true}
    }
  },
  '/api/grass/minePublishedArticleList': {
    api: 'app.grass.userPublishedArticleList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true, alias: 'uid'},
      authorType: {type: Number, require: true},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/mineFavouriteArticleList': {
    api: 'app.grass.userFavouriteArticleList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true, alias: 'uid'},
      authorType: {type: Number, require: true},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },

}