提交 | 用户 | 时间
|
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.convert.db.DataSourceConfigConvert; |
|
5 |
import com.iailab.module.infra.service.db.DataSourceConfigService; |
|
6 |
import org.springframework.stereotype.Service; |
1dce27
|
7 |
import org.springframework.validation.annotation.Validated; |
潘 |
8 |
import org.springframework.web.bind.annotation.RestController; |
0b0cb9
|
9 |
|
潘 |
10 |
import javax.annotation.Resource; |
|
11 |
|
|
12 |
/** |
|
13 |
* 数据源配置 API 实现类 |
|
14 |
* |
|
15 |
* @author 芋道源码 |
|
16 |
*/ |
1dce27
|
17 |
@RestController // 提供 RESTful API 接口,给 Feign 调用 |
潘 |
18 |
@Validated |
0b0cb9
|
19 |
public class DataSourceConfigServiceApiImpl implements DataSourceConfigServiceApi { |
潘 |
20 |
|
|
21 |
@Resource |
|
22 |
private DataSourceConfigService dataSourceConfigService; |
|
23 |
|
|
24 |
@Override |
|
25 |
public DataSourceConfigRespDTO getDataSourceConfig(Long id) { |
|
26 |
return DataSourceConfigConvert.INSTANCE.convert02(dataSourceConfigService.getDataSourceConfig(id)); |
|
27 |
} |
|
28 |
|
|
29 |
} |