package org.springblade.device.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.device.entity.IotAlarmGroup;
import org.springblade.device.vo.IotAlarmGroupVO;
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-04-19
 */
@FeignClient(value = "cyzh-smart-device",path = "/feign/iotalarmgroup")
public interface IIotAlarmGroupClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    IotAlarmGroupVO detail(@SpringQueryMap IotAlarmGroup iotAlarmGroup);

	/**
	 * 查询 告警处理组
	 */
	@GetMapping("/list")
    List<IotAlarmGroupVO> list(@SpringQueryMap IotAlarmGroup iotAlarmGroup);



	/**
	 * 新增 告警处理组
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody IotAlarmGroup iotAlarmGroup);

	/**
	 * 修改 告警处理组
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody IotAlarmGroup iotAlarmGroup);

	/**
	 * 新增或修改 告警处理组
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody IotAlarmGroup iotAlarmGroup);


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


}
