like static method

Future<int> like({
  1. required String roomId,
})

좋아요 추가

Implementation

static Future<int> like({required String roomId}) async {
  var uri = ApiPath.like.toUri();
  var response = await post(
    uri,
    body: {'room_id': roomId, 'log_cnt': "1"},
  );
  int result = json.decode(response.body)['like_cnt'];
  return result;
}