getLoverTopList static method

Future<DataResult> getLoverTopList(
  1. String? anchorId,
  2. int type
)

获取列表-排行榜详情

Implementation

static Future<DataResult> getLoverTopList(String? anchorId, int type) async {
  Map other = {'anchorId': anchorId, 'type': type};
  var res = await BaseDao.fromBaseJson(other, Address.getLoverTopList());
  if (res.result) {
    var entity = TopListEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}