| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | @RestController |
| | | @RequestMapping("${url.summarize.prefix}${url.summarize.version}") |
| | | @RequestMapping("${url.summarize.prefix}${url.summarize.version}/Summarize") |
| | | public class SummarizeController { |
| | | @Autowired |
| | | private SummarizeService summarizeService; |
| | |
| | | return ResponseResult.success(summarize); |
| | | } |
| | | @PutMapping("/upSummarize") |
| | | public ResponseResult upSummarize(@RequestBody FlyInfo summarize){ |
| | | public ResponseResult upSummarize(@RequestParam String workspaceId, @RequestBody FlyInfo summarize){ |
| | | FlyInfo flyInfo= FlyInfo.builder() |
| | | .id(summarize.getId()) |
| | | .workspaceId(summarize.getWorkspaceId()) |
| | | .workspaceId(workspaceId) |
| | | .hour(summarize.getHour()) |
| | | .min(summarize.getMin()) |
| | | .flyCount(summarize.getFlyCount()) |