package com.inspect.patrol.service;

import com.inspect.base.core.web.domain.AjaxResult;

import javax.servlet.http.HttpServletRequest;

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 PatrolTaskService {
    @GetMapping({"/task/add"})
    AjaxResult add(@RequestBody String body);

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

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

    @PostMapping({"/exec/isManualControl"})
    boolean isManualControlPTZ(@RequestParam("devNo") String devNo, @RequestParam("request") HttpServletRequest request);
}
