FeignService.java 473 字节
Newer Older
1 2
package com.kwan.springcloud.service;

Q
qinyingjie 已提交
3
import com.kwan.springcloud.api.ComputeClient;
4 5 6 7 8 9 10 11 12 13
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
Q
qinyingjie 已提交
14
    private ComputeClient computeClient;
15 16


Q
qinyingjie 已提交
17 18
    public Result addService(String id) {
        return computeClient.selectOne(id);
19 20
    }
}