package com.iailab.module.shasteel.job.controller.admin;
|
|
import com.iailab.framework.common.page.PageData;
|
import com.iailab.framework.common.pojo.CommonResult;
|
import com.iailab.module.shasteel.job.dto.ScheduleJobLogDTO;
|
import com.iailab.module.shasteel.job.service.ScheduleJobLogService;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.security.access.prepost.PreAuthorize;
|
import org.springframework.web.bind.annotation.*;
|
|
import java.util.Map;
|
|
import static com.iailab.framework.common.pojo.CommonResult.success;
|
|
/**
|
* 定时任务日志
|
*
|
* @author Mark sunlightcs@gmail.com
|
*/
|
@RestController
|
@RequestMapping("/mcs/scheduleLog")
|
public class ScheduleJobLogController {
|
@Autowired
|
private ScheduleJobLogService scheduleJobLogService;
|
|
@GetMapping("page")
|
public CommonResult<PageData<ScheduleJobLogDTO>> page(@RequestParam Map<String, Object> params){
|
PageData<ScheduleJobLogDTO> page = scheduleJobLogService.page(params);
|
|
return success(page);
|
}
|
|
@GetMapping("{id}")
|
public CommonResult<ScheduleJobLogDTO> info(@PathVariable("id") Long id){
|
ScheduleJobLogDTO log = scheduleJobLogService.get(id);
|
|
return success(log);
|
}
|
}
|