livePostBlockUser static method
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;
}