Skip to content

Commit 34f7758

Browse files
committed
♻️ 리뷰 반영 수정
- RoomService의 RoomMapper를 static import로 변경 - roomResponse DTO의 title을 roomName으로 변경
1 parent a1d31ee commit 34f7758

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

backend/src/main/java/io/f1/backend/domain/game/app/RoomService.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
package io.f1.backend.domain.game.app;
22

3-
import static io.f1.backend.domain.game.mapper.RoomMapper.toRoomSetting;
3+
import static io.f1.backend.domain.game.mapper.RoomMapper.*;
44

55
import io.f1.backend.domain.game.dto.request.RoomCreateRequest;
66
import io.f1.backend.domain.game.dto.response.RoomCreateResponse;
77
import io.f1.backend.domain.game.dto.response.RoomListResponse;
88
import io.f1.backend.domain.game.dto.response.RoomResponse;
9-
import io.f1.backend.domain.game.mapper.RoomMapper;
109
import io.f1.backend.domain.game.model.GameSetting;
1110
import io.f1.backend.domain.game.model.Player;
1211
import io.f1.backend.domain.game.model.Room;
@@ -62,7 +61,7 @@ public RoomListResponse getAllRooms() {
6261
quiz.setQuestions(List.of());
6362
quiz.setCreator(user);
6463

65-
return RoomMapper.toRoomResponse(room, quiz);
64+
return toRoomResponse(room, quiz);
6665
})
6766
.toList();
6867
return new RoomListResponse(roomResponses);

backend/src/main/java/io/f1/backend/domain/game/dto/response/RoomResponse.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
public record RoomResponse(
44
Long roomId,
5-
String title,
5+
String roomName,
66
int maxUserCount,
77
int currentUserCount,
88
boolean locked,

0 commit comments

Comments
 (0)