package com.yuchen.saas.integration.feign.api.feign;

import com.yuchen.saas.integration.feign.api.dto.ScanPreventionDTO;
import com.yuchen.saas.integration.feign.api.vo.HikCameraVo;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 宋少挺
 * @date 2022/10/25
 */
@FeignClient(
		value = AppNameConstant.SAAS_INTEGRATION_HIK_ISC,
		fallback = HikIscApiClientFallback.class
)
public interface HikIscApiClient {

	@PostMapping("/temp/HikIscApi/manualCapture")
	R manualCapture(@RequestBody HikCameraVo hikCameraVo);
	@PostMapping("/temp/HikIscApi/presets/searches")
	R presetsSearches(@RequestBody HikCameraVo hikCameraVo);
	@PostMapping("/temp/HikIscApi/ptzs/controlling")
	R ptzsControlling(@RequestBody HikCameraVo hikCameraVo);

	@PostMapping("/scan/prevention/add")
	R<Boolean> add(@RequestBody ScanPreventionDTO scanPreventionDTO);
}
