package com.kwan.springcloud.service; import com.kwan.springcloud.api.ComputeClient; import com.kwan.springcloud.response.Result; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Slf4j @Service public class FeignService { @Autowired private ComputeClient computeClient; public Result addService(String id) { return computeClient.selectOne(id); } }