| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得定时任务") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<JobRespVO> getJob(@RequestParam("id") Long id) { |
| | | JobDO job = jobService.getJob(id); |
| | | return success(BeanUtils.toBean(job, JobRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得定时任务分页") |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<PageResult<JobRespVO>> getJobPage(@Valid JobPageReqVO pageVO) { |
| | | PageResult<JobDO> pageResult = jobService.getJobPage(pageVO); |
| | | return success(BeanUtils.toBean(pageResult, JobRespVO.class)); |
| | |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024"), |
| | | @Parameter(name = "count", description = "数量", example = "5") |
| | | }) |
| | | @PreAuthorize("@ss.hasPermission('infra:job:query')") |
| | | public CommonResult<List<LocalDateTime>> getJobNextTimes( |
| | | @RequestParam("id") Long id, |
| | | @RequestParam(value = "count", required = false, defaultValue = "5") Integer count) { |