| | |
| | | this.consultantService = consultantService; |
| | | } |
| | | |
| | | @GetMapping("") |
| | | @GetMapping("/favorite") |
| | | public ResponseEntity<List<ConsultantDTO>> getMyConsultantList() { |
| | | List<ConsultantDTO> myConsultants = consultantService.getMyConsultantList(); |
| | | return new ResponseEntity<>(myConsultants, HttpStatus.OK); |
| | |
| | | return new ResponseEntity<>(recommendConsultantList, HttpStatus.OK); |
| | | } |
| | | |
| | | @PostMapping("") |
| | | public ResponseEntity<Void> addConsultantToOwnList(@RequestBody AddConsultantParam param) { |
| | | consultantService.addConsultantToOwnList(param); |
| | | @PostMapping("/favorite") |
| | | public ResponseEntity<Void> addConsultantToCustomList(@RequestBody AddConsultantParam param) { |
| | | consultantService.addConsultantToCustomList(param); |
| | | return new ResponseEntity<>(HttpStatus.ACCEPTED); |
| | | } |
| | | |