Skip to content

Commit

Permalink
Merge pull request #83 from shim-pyoo/refactor/#82-addChatRoomId
Browse files Browse the repository at this point in the history
βž• ADD. μ±„νŒ…λ°© 생성 μ‹œ, μƒμ„±λœ μ±„νŒ…λ°©μ˜ κΈ°λ³Έν‚€λ₯Ό λ°˜ν™˜ν•˜λ„λ‘ μΆ”κ°€
  • Loading branch information
frombunny authored Sep 14, 2024
2 parents 113cd22 + 5095c95 commit ea378f7
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,18 @@ public ResponseEntity<CustomAPIResponse<?>> makeChatRoom(){

ChatRoom chatRoom = ChatRoom.
builder()
.chatTitle("μ±„νŒ…λ°©")
.chatTitle("μ±„νŒ…λ°© 제λͺ©")
.userId(isExistUser.get())
.build();

chatRoomRepository.save(chatRoom);

CustomAPIResponse<Object> res=CustomAPIResponse.createSuccess(200, null, "μ±„νŒ…λ°©μ΄ μƒμ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.");
ChatRoomListDto chatRoomResponseDto=new ChatRoomListDto();
chatRoomResponseDto.setChatRoomId(chatRoom.getChatRoomId());
chatRoomResponseDto.setChatRoomTitle(chatRoom.getChatTitle());


CustomAPIResponse<Object> res=CustomAPIResponse.createSuccess(200, chatRoomResponseDto, "μ±„νŒ…λ°©μ΄ μƒμ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€.");
return ResponseEntity.status(HttpStatus.OK).body(res);
}

Expand Down

0 comments on commit ea378f7

Please sign in to comment.