userpage.js 3.38 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}
    }
  },
  '/api/grass/userAttentionList': {
    api: 'app.grass.userAttentionList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true},
      limit: {type: Number},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/userFansList': {
    api: 'app.grass.userFansList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true},
      authorType: {type: Number, require: true},
      limit: {type: Number},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },
  '/api/grass/mineAttentionList': {
    api: 'app.grass.userAttentionList',
    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/mineFansList': {
    api: 'app.grass.userFansList',
    auth: true,
    params: {
      authorUid: {type: Number, require: true, alias: 'uid'},
      authorType: {type: Number, require: true},
      limit: {type: Number},
      page: {type: Number},
      lastedTime: {type: Number}
    }
  },

}