anchorReport static method

Future<DataResult> anchorReport(
  1. String? id,
  2. String? content,
  3. String? block
)

zb举报

Implementation

static Future<DataResult> anchorReport(
    String? id, String? content, String? block) async {
  Map other = {'id': id, 'block': block, 'content': content ?? ''};
  var res = await BaseDao.fromBaseJson(other, Address.anchorReport());
  if (res.result) {
    var entity = TokenEntity.fromJson(res.data);
    return DataResult(entity, true);
  }
  return res;
}