package com.sptg.permissions.api.feigns;

import com.sptg.permissions.api.entity.JobLog;
import com.sptg.permissions.api.feigns.fallback.JobLogFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: JobLogFeign
 * package: com.sptg.permissions.api.feigns
 * description:定时任务日志-服务接口
 *
 *                  
 *                 
 */
@FeignClient(value = "smart-house-permissions",fallbackFactory = JobLogFeignFallbackFactory.class)
public interface JobLogFeign {

    /**
     * 功能描述: 判断是否可运行定时任务
     * @param log 定时任务日志 { id:必填,name:必填 }
     * @return Boolean
     *                  
     *                       
     */
    @PostMapping(value = "/job/log/checkIsRunTask")
    Boolean checkIsRunTask(@RequestBody JobLog log);

}
