提交 | 用户 | 时间
|
516ef4
|
1 |
package com.iailab.module.shasteel.job.controller.admin; |
L |
2 |
|
|
3 |
import com.iailab.framework.common.page.PageData; |
|
4 |
import com.iailab.framework.common.pojo.CommonResult; |
|
5 |
import com.iailab.module.shasteel.job.dto.ScheduleJobLogDTO; |
|
6 |
import com.iailab.module.shasteel.job.service.ScheduleJobLogService; |
94c44e
|
7 |
import org.springframework.beans.factory.annotation.Autowired; |
516ef4
|
8 |
import org.springframework.security.access.prepost.PreAuthorize; |
L |
9 |
import org.springframework.web.bind.annotation.*; |
|
10 |
|
|
11 |
import java.util.Map; |
94c44e
|
12 |
|
D |
13 |
import static com.iailab.framework.common.pojo.CommonResult.success; |
516ef4
|
14 |
|
L |
15 |
/** |
|
16 |
* 定时任务日志 |
|
17 |
* |
|
18 |
* @author Mark sunlightcs@gmail.com |
|
19 |
*/ |
|
20 |
@RestController |
94c44e
|
21 |
@RequestMapping("/mcs/scheduleLog") |
516ef4
|
22 |
public class ScheduleJobLogController { |
94c44e
|
23 |
@Autowired |
516ef4
|
24 |
private ScheduleJobLogService scheduleJobLogService; |
L |
25 |
|
|
26 |
@GetMapping("page") |
|
27 |
public CommonResult<PageData<ScheduleJobLogDTO>> page(@RequestParam Map<String, Object> params){ |
|
28 |
PageData<ScheduleJobLogDTO> page = scheduleJobLogService.page(params); |
|
29 |
|
94c44e
|
30 |
return success(page); |
516ef4
|
31 |
} |
L |
32 |
|
|
33 |
@GetMapping("{id}") |
|
34 |
public CommonResult<ScheduleJobLogDTO> info(@PathVariable("id") Long id){ |
|
35 |
ScheduleJobLogDTO log = scheduleJobLogService.get(id); |
|
36 |
|
94c44e
|
37 |
return success(log); |
516ef4
|
38 |
} |
L |
39 |
} |