postJoinChatRoom static method

Future<DataResult> postJoinChatRoom({
  1. required int roomId,
})

用户加入直播间成功

Implementation

static Future<DataResult> postJoinChatRoom({required int roomId}) async {
  var res = await BaseDao.fromBaseEncryptV3(
    {
      'roomId': roomId,
    },
    Address.joinChatroom(),
  );
  if (res.result) {
    return DataResult(res.data, true);
  }
  return res;
}