Skip to content

Commit

Permalink
Merge pull request #55 from goormthon-Univ/chat
Browse files Browse the repository at this point in the history
[chore]
  • Loading branch information
Lujaec authored Mar 23, 2024
2 parents 5f27823 + 170f041 commit 8d144f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;

//tem
@RequiredArgsConstructor
@RestController
@RequestMapping("/chatRoomUser")
Expand All @@ -27,7 +28,9 @@ public class ChatRoomUserController {
// @RequestBody๋Š” ํ•˜๋‚˜์˜ ๋ฉ”์„œ๋“œ์— ์—ฌ๋Ÿฌ ๊ฐœ์ผ ์ˆ˜ ์—†์Œ -> ๋”ฐ๋ผ์„œ, ๋‘ ๊ฐœ์˜ Long ํƒ€์ž… ์ธ์ž๋กœ ๋ฐ›์œผ๋ ค๋ฉด ํ•˜๋‚˜์˜ DTO ์•ˆ์— ๋„ฃ์–ด์ค˜์•ผ ํ•จ!
@PostMapping("/check/{chatRoomUserId}")
public ResponseEntity<ApiResponse<Void>> createChatRoom(@AuthenticationPrincipal User user,
@PathVariable Long chatRoomUserId) {
@PathVariable Long chatRoomUserId) {
log.info("isNew Check Event !!");

chatRoomUserService.checkChatRoomUser(chatRoomUserId);
return ResponseEntity.ok(ApiResponse.success(null));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class MessageService {
private final UserService userService;
private final MessageRepository messageRepository;
private final ModelMapper mapper;
private DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy๋…„ MM์›” dd์ผ HH์‹œ mm๋ถ„");
private DateTimeFormatter formatter = DateTimeFormatter.ofPattern("MM์›” dd์ผ HH์‹œ mm๋ถ„");


// ํŠน์ • ์œ ์ €์˜ ํŠน์ • ์›Œํฌ์ŠคํŽ˜์ด์Šค์˜ ํŠน์ • ์ฑ„ํŒ…๋ฐฉ์˜ ๋ฉ”์‹œ์ง€ ์กฐํšŒ
Expand Down

0 comments on commit 8d144f4

Please sign in to comment.