package org.springblade.device.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.device.entity.IotDeviceHeartbeat;
import org.springblade.device.vo.IotDeviceHeartbeatVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
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;
import javax.validation.Valid;
import java.util.List;

/**
 * 设备告警 Feign
 *
 * @author lianghanqiang
 * @since 2021-05-27
 */
@FeignClient(value = "cyzh-smart-device",path = "/feign/iotdeviceheartbeat")
public interface IIotDeviceHeartbeatClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    IotDeviceHeartbeatVO detail(@SpringQueryMap IotDeviceHeartbeat iotDeviceHeartbeat);

	/**
	 * 查询 设备告警
	 */
	@GetMapping("/list")
    List<IotDeviceHeartbeatVO> list(@SpringQueryMap IotDeviceHeartbeat iotDeviceHeartbeat);



	/**
	 * 新增 设备告警
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody IotDeviceHeartbeat iotDeviceHeartbeat);

	/**
	 * 修改 设备告警
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody IotDeviceHeartbeat iotDeviceHeartbeat);

	/**
	 * 新增或修改 设备告警
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody IotDeviceHeartbeat iotDeviceHeartbeat);


	/**
	 * 删除 设备告警
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
