package org.springblade.third.videodevice.gb28181.feign;

import com.alibaba.fastjson.JSONObject;
import org.springblade.core.tool.api.R;
import org.springblade.third.videodevice.gb28181.entity.GbDevice;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "cyzh-third",path = "/feign/third/gbdevice")
public interface IThirdGbDeviceClient {

	/**
	 * 同步云梯信息
	 */
	@PostMapping("/sync")
	R<GbDevice> sync(@RequestParam String deviceId);

	/**
	 * 视频播放
	 */
	@PostMapping("/play")
	R<JSONObject> play(@RequestParam(value = "deviceId", required = true) String deviceId, @RequestParam(value = "channelId", required = true) String channelId);

	/**
	 * 视频停止
	 */
	@PostMapping("/stop")
	R<String> stop(@RequestParam(value = "deviceId", required = true) String deviceId, @RequestParam(value = "channelId", required = true) String channelId);

}
