houzhongyi
2024-07-11 e7c1260db32209a078a962aaa0ad5492c35774fb
提交 | 用户 | 时间
e7c126 1 package com.iailab.module.infra.controller.admin.job;
H 2
3 import com.iailab.framework.common.pojo.CommonResult;
4 import io.swagger.v3.oas.annotations.Operation;
5 import io.swagger.v3.oas.annotations.tags.Tag;
6 import org.springframework.security.access.prepost.PreAuthorize;
7 import org.springframework.validation.annotation.Validated;
8 import org.springframework.web.bind.annotation.GetMapping;
9 import org.springframework.web.bind.annotation.RequestMapping;
10 import org.springframework.web.bind.annotation.RestController;
11
12 import static com.iailab.framework.common.pojo.CommonResult.error;
13
14 @Tag(name = "管理后台 - 定时任务")
15 @RestController
16 @RequestMapping("/infra/job")
17 @Validated
18 public class JobController {
19
20     @GetMapping("/page")
21     @Operation(summary = "获得定时任务分页")
22     @PreAuthorize("@ss.hasPermission('infra:job:query')")
23     public CommonResult<String> getJobPage() {
24         return error(-1, "Cloud 版本使用 XXL-Job 作为定时任务!请参考 https://cloud.iocoder.cn/job/ 文档操作");
25     }
26
27 }