package org.springblade.device.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.device.entity.IotAlarmGroupUser;
import org.springblade.device.vo.IotAlarmGroupUserVO;
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/iotalarmgroupuser")
public interface IIotAlarmGroupUserClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    IotAlarmGroupUserVO detail(@SpringQueryMap IotAlarmGroupUser iotAlarmGroupUser);

	/**
	 * 查询 告警分组和用户关联表
	 */
	@GetMapping("/list")
    List<IotAlarmGroupUserVO> list(@SpringQueryMap IotAlarmGroupUser iotAlarmGroupUser);



	/**
	 * 新增 告警分组和用户关联表
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody IotAlarmGroupUser iotAlarmGroupUser);

	/**
	 * 修改 告警分组和用户关联表
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody IotAlarmGroupUser iotAlarmGroupUser);

	/**
	 * 新增或修改 告警分组和用户关联表
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody IotAlarmGroupUser iotAlarmGroupUser);


	/**
	 * 删除 告警分组和用户关联表
	 */
	@PostMapping("/remove")
    boolean remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids);


}
