package com.iailab.module.infra.api.db;
|
|
import com.iailab.module.infra.api.db.dto.DataSourceConfigRespDTO;
|
import com.iailab.module.infra.enums.ApiConstants;
|
import io.swagger.v3.oas.annotations.Operation;
|
import io.swagger.v3.oas.annotations.Parameter;
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
/**
|
* 数据源配置 API 接口
|
*
|
* @author 芋道源码
|
*/
|
@FeignClient(name = ApiConstants.NAME)
|
@Tag(name = "RPC 服务 - 数据源配置")
|
public interface DataSourceConfigServiceApi {
|
|
String PREFIX = ApiConstants.PREFIX + "/data-source";
|
|
@GetMapping(PREFIX + "/get-data-source-config")
|
@Operation(summary = "获得数据源配置")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
DataSourceConfigRespDTO getDataSourceConfig(@RequestParam("id") Long id);
|
|
}
|