27 lines
904 B
Java
27 lines
904 B
Java
package com.muyu.source.remote;
|
||
|
||
import com.muyu.common.core.constant.ServiceNameConstants;
|
||
import com.muyu.common.core.domain.Result;
|
||
import com.muyu.source.domain.DataSource;
|
||
import com.muyu.source.remote.factory.RemoteDataSourceFactory;
|
||
import org.springframework.cloud.openfeign.FeignClient;
|
||
import org.springframework.web.bind.annotation.GetMapping;
|
||
import org.springframework.web.bind.annotation.PathVariable;
|
||
|
||
/**
|
||
* @author Lenovo
|
||
* @ Tool:IntelliJ IDEA
|
||
* @ Author:CHX
|
||
* @ Date:2024-08-21-10:50
|
||
* @ Version:1.0
|
||
* @ Description:数据源远程调用
|
||
*/
|
||
@FeignClient(contextId = "RemoteDataSourceService", value = ServiceNameConstants.SOURCE_SERVICE
|
||
, fallbackFactory = RemoteDataSourceFactory.class, path = "/dataSource")
|
||
public interface RemoteDataSourceService {
|
||
|
||
|
||
@GetMapping("/getDataSourceById/{id}")
|
||
Result<DataSource> getDataSource(@PathVariable Long id);
|
||
}
|