package com.zd.bottle.feign.service;

import com.zd.bottle.feign.RemoteBottleFallbackFactory;
import com.zd.common.core.constant.ServiceNameConstants;
import com.zd.common.core.domain.R;
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 = "remoteBottleService", value = ServiceNameConstants.BOTTLE_SERVICE, fallbackFactory = RemoteBottleFallbackFactory.class)
public interface RemoteBottleService {

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

}
