livePostBlockUser static method

Future<DataResult> livePostBlockUser({
  1. required bool isCancelBlock,
  2. required int userId,
  3. required int roomId,
})

Implementation

static Future<DataResult> livePostBlockUser(
    {required bool isCancelBlock, //是否取消拉黑 0 拉黑 1 取消拉黑
    required int userId,
    required int roomId}) async {
  var res = await BaseDao.fromBaseEncryptV3(
    {'roomId': roomId, 'userId': userId, "blockType": isCancelBlock ? 1 : 0},
    Address.livePostBlockUser(),
  );
  if (res.result) {
    return DataResult(res.data, true);
  }
  return res;
}