com.aizuda.snailjob.server.web.service.convert.GroupConfigResponseVOConverterImpl Maven / Gradle / Ivy
package com.aizuda.snailjob.server.web.service.convert;
import com.aizuda.snailjob.server.web.model.response.GroupConfigResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.po.GroupConfig;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.processing.Generated;
@Generated(
value = "org.mapstruct.ap.MappingProcessor",
date = "2024-05-29T12:27:56+0800",
comments = "version: 1.5.3.Final, compiler: javac, environment: Java 17.0.10 (Amazon.com Inc.)"
)
public class GroupConfigResponseVOConverterImpl implements GroupConfigResponseVOConverter {
@Override
public GroupConfigResponseVO convert(GroupConfig groupConfig) {
if ( groupConfig == null ) {
return null;
}
GroupConfigResponseVO groupConfigResponseVO = new GroupConfigResponseVO();
groupConfigResponseVO.setId( groupConfig.getId() );
groupConfigResponseVO.setGroupName( groupConfig.getGroupName() );
groupConfigResponseVO.setNamespaceId( groupConfig.getNamespaceId() );
groupConfigResponseVO.setGroupStatus( groupConfig.getGroupStatus() );
groupConfigResponseVO.setGroupPartition( groupConfig.getGroupPartition() );
groupConfigResponseVO.setVersion( groupConfig.getVersion() );
groupConfigResponseVO.setDescription( groupConfig.getDescription() );
groupConfigResponseVO.setIdGeneratorMode( groupConfig.getIdGeneratorMode() );
groupConfigResponseVO.setInitScene( groupConfig.getInitScene() );
groupConfigResponseVO.setToken( groupConfig.getToken() );
groupConfigResponseVO.setCreateDt( groupConfig.getCreateDt() );
groupConfigResponseVO.setUpdateDt( groupConfig.getUpdateDt() );
return groupConfigResponseVO;
}
@Override
public List convertList(List groupConfigs) {
if ( groupConfigs == null ) {
return null;
}
List list = new ArrayList( groupConfigs.size() );
for ( GroupConfig groupConfig : groupConfigs ) {
list.add( convert( groupConfig ) );
}
return list;
}
}