getLeaderList static method
获取列表-排行榜
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;
}