package com.iailab.module.infra.convert.db;
|
|
import com.iailab.module.infra.api.db.dto.DataSourceConfigRespDTO;
|
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigCreateReqVO;
|
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigRespVO;
|
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigSimpleRespVO;
|
import com.iailab.module.infra.controller.admin.db.vo.DataSourceConfigUpdateReqVO;
|
import com.iailab.module.infra.dal.dataobject.db.DataSourceConfigDO;
|
import org.mapstruct.Mapper;
|
import org.mapstruct.factory.Mappers;
|
|
import java.util.List;
|
|
/**
|
* 数据源配置 Convert
|
*
|
* @author 芋道源码
|
*/
|
@Mapper
|
public interface DataSourceConfigConvert {
|
|
DataSourceConfigConvert INSTANCE = Mappers.getMapper(DataSourceConfigConvert.class);
|
|
DataSourceConfigDO convert(DataSourceConfigCreateReqVO bean);
|
|
DataSourceConfigDO convert(DataSourceConfigUpdateReqVO bean);
|
|
DataSourceConfigRespVO convert(DataSourceConfigDO bean);
|
|
List<DataSourceConfigRespVO> convertList(List<DataSourceConfigDO> list);
|
|
DataSourceConfigRespDTO convert02(DataSourceConfigDO bean);
|
|
List<DataSourceConfigSimpleRespVO> convertList02(List<DataSourceConfigDO> list);
|
|
}
|