package org.springblade.device.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.device.entity.ElevatorAlarmSetting;
import org.springblade.device.vo.ElevatorAlarmSettingVO;
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-20
 */
@FeignClient(value = "cyzh-smart-device",path = "/feign/elevatoralarmsetting")
public interface IElevatorAlarmSettingClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    ElevatorAlarmSettingVO detail(@SpringQueryMap ElevatorAlarmSetting elevatorAlarmSetting);

	/**
	 * 查询 电梯告警设置
	 */
	@GetMapping("/list")
    List<ElevatorAlarmSettingVO> list(@SpringQueryMap ElevatorAlarmSetting elevatorAlarmSetting);



	/**
	 * 新增 电梯告警设置
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody ElevatorAlarmSetting elevatorAlarmSetting);

	/**
	 * 修改 电梯告警设置
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody ElevatorAlarmSetting elevatorAlarmSetting);

	/**
	 * 新增或修改 电梯告警设置
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody ElevatorAlarmSetting elevatorAlarmSetting);


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


}
