提交 | 用户 | 时间
|
0b0cb9
|
1 |
package com.iailab.module.infra.convert.db; |
潘 |
2 |
|
|
3 |
import com.iailab.module.infra.api.db.dto.DataSourceConfigRespDTO; |
|
4 |
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigCreateReqVO; |
|
5 |
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigRespVO; |
|
6 |
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigSimpleRespVO; |
|
7 |
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigUpdateReqVO; |
|
8 |
import com.iailab.module.infra.dal.dataobject.db.DataSourceConfigDO; |
|
9 |
import org.mapstruct.Mapper; |
|
10 |
import org.mapstruct.factory.Mappers; |
|
11 |
|
|
12 |
import java.util.List; |
|
13 |
|
|
14 |
/** |
|
15 |
* 数据源配置 Convert |
|
16 |
* |
|
17 |
* @author 芋道源码 |
|
18 |
*/ |
|
19 |
@Mapper |
|
20 |
public interface DataSourceConfigConvert { |
|
21 |
|
|
22 |
DataSourceConfigConvert INSTANCE = Mappers.getMapper(DataSourceConfigConvert.class); |
|
23 |
|
|
24 |
DataSourceConfigDO convert(DataSourceConfigCreateReqVO bean); |
|
25 |
|
|
26 |
DataSourceConfigDO convert(DataSourceConfigUpdateReqVO bean); |
|
27 |
|
|
28 |
DataSourceConfigRespVO convert(DataSourceConfigDO bean); |
|
29 |
|
|
30 |
List<DataSourceConfigRespVO> convertList(List<DataSourceConfigDO> list); |
|
31 |
|
|
32 |
DataSourceConfigRespDTO convert02(DataSourceConfigDO bean); |
|
33 |
|
|
34 |
List<DataSourceConfigSimpleRespVO> convertList02(List<DataSourceConfigDO> list); |
|
35 |
|
|
36 |
} |