package com.inspect.taskstatus.client;


import com.inspect.task.domain.PatrolTask;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("inspect-job")
public interface FeignJobTaskClient {
   @PostMapping({"/jobtask/immediatelyExecTask"})
   String immediatelyExecTask(@RequestBody PatrolTask patrolTask);

   @PostMapping({"/jobtask/resumeExecTask"})
   void resumeExecTask(@RequestParam("taskId") String taskId);
}
