提交 | 用户 | 时间
|
0b0cb9
|
1 |
package com.iailab.module.infra.api.db; |
潘 |
2 |
|
|
3 |
import com.iailab.module.infra.api.db.dto.DataSourceConfigRespDTO; |
|
4 |
import com.iailab.module.infra.enums.ApiConstants; |
|
5 |
import io.swagger.v3.oas.annotations.Operation; |
|
6 |
import io.swagger.v3.oas.annotations.Parameter; |
|
7 |
import io.swagger.v3.oas.annotations.tags.Tag; |
|
8 |
import org.springframework.cloud.openfeign.FeignClient; |
7b3edf
|
9 |
import org.springframework.web.bind.annotation.GetMapping; |
0b0cb9
|
10 |
import org.springframework.web.bind.annotation.PostMapping; |
潘 |
11 |
import org.springframework.web.bind.annotation.RequestParam; |
|
12 |
|
|
13 |
/** |
|
14 |
* 数据源配置 API 接口 |
|
15 |
* |
|
16 |
* @author 芋道源码 |
|
17 |
*/ |
|
18 |
@FeignClient(name = ApiConstants.NAME) |
|
19 |
@Tag(name = "RPC 服务 - 数据源配置") |
|
20 |
public interface DataSourceConfigServiceApi { |
|
21 |
|
|
22 |
String PREFIX = ApiConstants.PREFIX + "/data-source"; |
|
23 |
|
7b3edf
|
24 |
@GetMapping(PREFIX + "/get-data-source-config") |
0b0cb9
|
25 |
@Operation(summary = "获得数据源配置") |
潘 |
26 |
@Parameter(name = "id", description = "编号", required = true, example = "1024") |
|
27 |
DataSourceConfigRespDTO getDataSourceConfig(@RequestParam("id") Long id); |
|
28 |
|
|
29 |
} |