package com.sptg.video.cloud.biz.controller;

import com.sptg.video.cloud.api.entity.SysParams;
import com.sptg.video.cloud.api.feigns.SysParamsFeign;
import com.sptg.video.cloud.biz.service.VCSysParamsServiceInterface;
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/16 18:24
 */
@RequiredArgsConstructor
@RestController
@Slf4j
public class SysParamsController implements SysParamsFeign {

    private final VCSysParamsServiceInterface sysParamsServiceInterface;

    @Override
    @GetMapping(value = "/vcSysParams/findSysParamsById/{id}")
    public SysParams findSysParamsById(@PathVariable(value = "id") Long id) {
        return this.sysParamsServiceInterface.findSysParamsById(id);
    }
}
