getLeaderList static method

Future<DataResult> getLeaderList(
  1. int type,
  2. int day, [
  3. int? mutiNum,
  4. int? totalNum,
])

获取列表-排行榜

Implementation

static Future<DataResult> getLeaderList(int type, int day,
    [int? mutiNum, int? totalNum]) async {
  Map other = {
    'type': type,
    'day': day,
    'mutiNum': mutiNum,
    'totalNum': totalNum
  };
  var res = await BaseDao.fromBaseJson(other, Address.getLeaderList());
  if (res.result) {
    var entity = TopListEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}