package com.zd.system.api.airbottle;

import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.domain.R;
import com.zd.system.api.airbottle.factory.RemoteAirBottleFallbackFactory;
import com.zd.system.api.domain.InventoryTag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author Administrator
 */
@FeignClient(contextId = "remoteAirBottleService", value = ServiceNameConstants.AIR_BOTTLE_SERVICE, fallbackFactory = RemoteAirBottleFallbackFactory.class)
public interface RemoteAirBottleService {

    /**
     * 识别器新增报警记录
     * @param tag 标签数据
     * @return R<Boolean>
     */
    @PostMapping("alarm/record/remote/add")
    R<Boolean> remoteAdd(@RequestBody InventoryTag tag);

}
