From 5095c9599d4b8ddd13ebd9fe45223e314ce3e56a Mon Sep 17 00:00:00 2001 From: frombunny Date: Sat, 14 Sep 2024 20:00:17 +0900 Subject: [PATCH] =?UTF-8?q?:heavy=5Fplus=5Fsign:=20ADD.=20=EC=B1=84?= =?UTF-8?q?=ED=8C=85=EB=B0=A9=20=EC=83=9D=EC=84=B1=20=EC=8B=9C,=20?= =?UTF-8?q?=EC=83=9D=EC=84=B1=EB=90=9C=20=EC=B1=84=ED=8C=85=EB=B0=A9?= =?UTF-8?q?=EC=9D=98=20=EA=B8=B0=EB=B3=B8=ED=82=A4=EB=A5=BC=20=EB=B0=98?= =?UTF-8?q?=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/chatbot/service/ChatRoomServiceImpl.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hsu/shimpyoo/domain/chatbot/service/ChatRoomServiceImpl.java b/src/main/java/com/hsu/shimpyoo/domain/chatbot/service/ChatRoomServiceImpl.java index 644f4a1..6000df0 100644 --- a/src/main/java/com/hsu/shimpyoo/domain/chatbot/service/ChatRoomServiceImpl.java +++ b/src/main/java/com/hsu/shimpyoo/domain/chatbot/service/ChatRoomServiceImpl.java @@ -43,13 +43,18 @@ public ResponseEntity> makeChatRoom(){ ChatRoom chatRoom = ChatRoom. builder() - .chatTitle("채팅방") + .chatTitle("채팅방 제목") .userId(isExistUser.get()) .build(); chatRoomRepository.save(chatRoom); - CustomAPIResponse res=CustomAPIResponse.createSuccess(200, null, "채팅방이 생성되었습니다."); + ChatRoomListDto chatRoomResponseDto=new ChatRoomListDto(); + chatRoomResponseDto.setChatRoomId(chatRoom.getChatRoomId()); + chatRoomResponseDto.setChatRoomTitle(chatRoom.getChatTitle()); + + + CustomAPIResponse res=CustomAPIResponse.createSuccess(200, chatRoomResponseDto, "채팅방이 생성되었습니다."); return ResponseEntity.status(HttpStatus.OK).body(res); }