getMyCost static method

Future<DataResult> getMyCost(
  1. int type
)

获取列表-排行榜-我的排名-金主榜

Implementation

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