package com.inspect.taskstatus.client;

import com.inspect.base.core.web.domain.AjaxResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("inspect-main")
public interface FeignTaskClient {
   @PostMapping({"/client/send"})
   AjaxResult send(@RequestBody String msg);

   @PostMapping({"/client/sendCommand"})
   AjaxResult sendCommand(@RequestBody String cmd);

   @GetMapping({"/notify"})
   AjaxResult notify(@RequestParam("result") String result) throws Exception;

   @PostMapping({"/client/upData"})
   AjaxResult senMessageToZk(@RequestParam("type") String type, @RequestParam("msg") String msg);

   @PostMapping({"/exec/updateCameraPatrolTaskExecRecordState"})
   void updateCameraPatrolTaskExecRecordState(@RequestParam("taskCode") String taskCode, @RequestParam("devNo") String devNo, @RequestParam("state") String state);
}
