package org.springblade.device.feign;

import io.swagger.annotations.ApiParam;
import org.springblade.device.entity.ElevatorAlarmDirector;
import org.springblade.device.vo.ElevatorAlarmDirectorVO;
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/elevatoralarmdirector")
public interface IElevatorAlarmDirectorClient  {

	/**
	 * 详情
	 */
	@GetMapping("/detail")
    ElevatorAlarmDirectorVO detail(@SpringQueryMap ElevatorAlarmDirector elevatorAlarmDirector);

	/**
	 * 查询 电梯告警负责人
	 */
	@GetMapping("/list")
    List<ElevatorAlarmDirectorVO> list(@SpringQueryMap ElevatorAlarmDirector elevatorAlarmDirector);



	/**
	 * 新增 电梯告警负责人
	 */
	@PostMapping("/save")
	boolean save(@Valid @RequestBody ElevatorAlarmDirector elevatorAlarmDirector);

	/**
	 * 修改 电梯告警负责人
	 */
	@PostMapping("/update")
    boolean update(@Valid @RequestBody ElevatorAlarmDirector elevatorAlarmDirector);

	/**
	 * 新增或修改 电梯告警负责人
	 */
	@PostMapping("/submit")
    boolean submit(@Valid @RequestBody ElevatorAlarmDirector elevatorAlarmDirector);


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


}
