|
Last change
on this file was 09e02d7, checked in by Nikola Sarafimov <sarafimov.nikola12345@…>, 4 days ago |
|
Final room reservation system implementation
|
-
Property mode
set to
100644
|
|
File size:
927 bytes
|
| Line | |
|---|
| 1 | package mk.finki.roomreservation.controller;
|
|---|
| 2 |
|
|---|
| 3 | import mk.finki.roomreservation.model.EquipmentDemandReport;
|
|---|
| 4 | import mk.finki.roomreservation.model.RoomUtilizationReport;
|
|---|
| 5 | import mk.finki.roomreservation.service.ReportService;
|
|---|
| 6 | import org.springframework.web.bind.annotation.GetMapping;
|
|---|
| 7 | import org.springframework.web.bind.annotation.RestController;
|
|---|
| 8 |
|
|---|
| 9 | import java.util.List;
|
|---|
| 10 |
|
|---|
| 11 | @RestController
|
|---|
| 12 | public class ReportController {
|
|---|
| 13 |
|
|---|
| 14 | private final ReportService reportService;
|
|---|
| 15 |
|
|---|
| 16 | public ReportController(ReportService reportService) {
|
|---|
| 17 | this.reportService = reportService;
|
|---|
| 18 | }
|
|---|
| 19 |
|
|---|
| 20 | @GetMapping("/api/reports/room-utilization")
|
|---|
| 21 | public List<RoomUtilizationReport> roomUtilizationReport() {
|
|---|
| 22 | return reportService.roomUtilizationReport();
|
|---|
| 23 | }
|
|---|
| 24 |
|
|---|
| 25 | @GetMapping("/api/reports/equipment-demand")
|
|---|
| 26 | public List<EquipmentDemandReport> equipmentDemandReport() {
|
|---|
| 27 | return reportService.equipmentDemandReport();
|
|---|
| 28 | }
|
|---|
| 29 | } |
|---|
Note:
See
TracBrowser
for help on using the repository browser.