blockList static method

Future<DataResult> blockList(
  1. int page
)

获取黑名单列表

Implementation

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