package com.yuchen.saas.mqtt.feign;

import com.yuchen.saas.park.api.entity.park.PmgBatParkPeople;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;


/**
 * @author 宋少挺
 * @create 2022/11/10
 */
@FeignClient(
		value = AppNameConstant.SAAS_MQTT_XZ,
		fallback = MqttXzClientFallback.class
)
public interface MqttXzClient {
	/**
	 * 推送人员信息至设备
	 * @param people
	 * @return
	 */
	@PostMapping("/mqtt/xz/push/addPerson")
	R addPerson(@RequestBody PmgBatParkPeople people);

	/**
	 * 从设备删除人员信息
	 * @param people
	 * @return
	 */
	@PostMapping("/mqtt/xz/push/delPerson")
	R delPerson(@RequestBody PmgBatParkPeople people);
}
