userpage.js 2.19 KB
module.exports = {
  '/api/grass/getGrassUserBaseInfo': {
    api: 'app.grass.getGrassUserBaseInfo',
    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},
      limit: {type: Number},
      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},
      limit: {type: Number},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/getMineGrassBaseInfo': {
    api: 'app.grass.getGrassUserBaseInfo',
    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},
      limit: {type: Number},
      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},
      limit: {type: Number},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },

}