package com.sptg.iot.biz.controller;

import com.sptg.iot.api.entity.IotSysConf;
import com.sptg.iot.api.feigns.IotSysConfFeign;
import com.sptg.iot.biz.service.IotSysConfServiceInterface;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zwx
 * @create 2020/10/20 9:53
 */
@RequiredArgsConstructor
@RestController
@Slf4j
public class IotSysConfController implements IotSysConfFeign {

    private final IotSysConfServiceInterface iotSysConfServiceInterface;

    @Override
    @GetMapping(value = "/iot/sysConf/findSysConfById/{id}")
    public IotSysConf findSysConfById(@PathVariable(value = "id") Long id) {
        return this.iotSysConfServiceInterface.findSysConfById(id);
    }
}
