package com.sptg.device.api.feigns;

import com.sptg.common.core.beans.ResultBean;
import com.sptg.device.api.entity.DeviceLog;
import com.sptg.device.api.feigns.fallback.DeviceLogFeignFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * title: DeviceLogFeign
 * package: com.sptg.device.api.feigns
 * description: 设备日志-服务接口
 */
@FeignClient(value = "smart-house-device",fallbackFactory = DeviceLogFeignFallbackFactory.class)
public interface DeviceLogFeign {

    /**
     * 功能描述: 添加设备日志
     * @param log 设备日志信息
     * @return ResultBean<Boolean>
     */
    @PostMapping(value = "/device/log/add")
    ResultBean<Boolean> add(@RequestBody DeviceLog log);

}
