-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#40 [FIx]: MessageController 삭제 이후 ResumeController 로 이동
- Loading branch information
Showing
7 changed files
with
54 additions
and
44 deletions.
There are no files selected for viewing
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
62 changes: 31 additions & 31 deletions
62
src/main/java/Aws6/Recruitment/api/controller/message/MessageController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
package Aws6.Recruitment.api.controller.message; | ||
|
||
import Aws6.Recruitment.api.dto.message.MessageDto; | ||
import Aws6.Recruitment.service.message.MessageService; | ||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestMethod; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@Slf4j | ||
@RequiredArgsConstructor | ||
@RestController | ||
public class MessageController { | ||
|
||
private final MessageService messageService; | ||
|
||
/** | ||
* Queue로 메시지를 발행 | ||
* | ||
* @param messageDto 발행할 메시지의 DTO 객체 | ||
* @return ResponseEntity 객체로 응답을 반환 | ||
*/ | ||
@RequestMapping(value = "/send/message", method = RequestMethod.POST) | ||
public ResponseEntity<?> sendMessage(@RequestBody MessageDto messageDto) { | ||
messageService.sendMessage(messageDto); | ||
return ResponseEntity.ok("Message sent to RabbitMQ!"); | ||
} | ||
} | ||
//package Aws6.Recruitment.api.controller.message; | ||
// | ||
//import Aws6.Recruitment.api.dto.message.MessageDto; | ||
//import Aws6.Recruitment.service.message.MessageService; | ||
//import lombok.RequiredArgsConstructor; | ||
//import lombok.extern.slf4j.Slf4j; | ||
//import org.springframework.http.ResponseEntity; | ||
//import org.springframework.web.bind.annotation.RequestBody; | ||
//import org.springframework.web.bind.annotation.RequestMapping; | ||
//import org.springframework.web.bind.annotation.RequestMethod; | ||
//import org.springframework.web.bind.annotation.RestController; | ||
// | ||
//@Slf4j | ||
//@RequiredArgsConstructor | ||
//@RestController | ||
//public class MessageController { | ||
// | ||
// private final MessageService messageService; | ||
// | ||
// /** | ||
// * Queue로 메시지를 발행 | ||
// * | ||
// * @param messageDto 발행할 메시지의 DTO 객체 | ||
// * @return ResponseEntity 객체로 응답을 반환 | ||
// */ | ||
// @RequestMapping(value = "/send/message", method = RequestMethod.POST) | ||
// public ResponseEntity<?> sendMessage(@RequestBody MessageDto messageDto) { | ||
// messageService.sendMessage(messageDto); | ||
// return ResponseEntity.ok("Message sent to RabbitMQ!"); | ||
// } | ||
//} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/java/Aws6/Recruitment/api/dto/resume/ResumeRequestDto.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters