| | |
| | | package com.pollex.pam.web.rest; |
| | | |
| | | import com.pollex.pam.service.AppointmentService; |
| | | import com.pollex.pam.service.ConsultantService; |
| | | import com.pollex.pam.service.dto.*; |
| | | import org.apache.commons.compress.utils.IOUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.core.io.ClassPathResource; |
| | | import org.springframework.core.io.Resource; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | @RequestMapping("/api/consultant") |
| | | public class ConsultantResource { |
| | | |
| | | private final ConsultantService consultantService; |
| | | |
| | | public ConsultantResource(ConsultantService consultantService) { |
| | | this.consultantService = consultantService; |
| | | } |
| | | @Autowired |
| | | ConsultantService consultantService; |
| | | |
| | | @GetMapping("/favorite") |
| | | public ResponseEntity<List<ConsultantDTO>> getMyConsultantList() { |
| | |
| | | return new ResponseEntity<>(HttpStatus.NOT_FOUND); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/record/allAppointmentsView") |
| | | public ResponseEntity<Void> recordAllAppointmentsView() { |
| | | consultantService.recordAllAppointmentsView(); |
| | | return ResponseEntity.noContent().build(); |
| | | } |
| | | } |