| | |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.time.LocalDate; |
| | | import java.time.LocalDateTime; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | |
| | | public Result testProductByDay(){ |
| | | return Result.success(reportService.testProductByDay()); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页-->日历任务图") |
| | | @GetMapping("/calendarWorkByWeek") |
| | | public Result calendarWorkByWeek(){ |
| | | return Result.success(reportService.calendarWorkByWeek()); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页-->添加日程") |
| | | @PostMapping("/addSchedule") |
| | | public Result addSchedule(String time, String text){ |
| | | return Result.success(reportService.addSchedule(time,text)); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页-->我的日程") |
| | | @PostMapping("/ScheduleByMe") |
| | | public Result ScheduleByMe(String date){ |
| | | return Result.success(reportService.ScheduleByMe(date)); |
| | | } |
| | | } |