package com.sptg.permissions.biz.controller;

import com.sptg.permissions.api.entity.JobLog;
import com.sptg.permissions.api.feigns.JobLogFeign;
import com.sptg.permissions.biz.service.JobLogServiceInterface;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * title: JobLogFeignController
 * package: com.sptg.permissions.biz.controller
 * description: 定时任务日志-控制器
 *
 *                  
 *                 
 */
@RestController
@RequiredArgsConstructor
public class JobLogFeignController implements JobLogFeign {

    private final JobLogServiceInterface jobLogServiceInterface;

    @Override
    @PostMapping(value = "/job/log/checkIsRunTask")
    public Boolean checkIsRunTask(@RequestBody JobLog jobLog) {
        return this.jobLogServiceInterface.insert(jobLog);
    }
}
