com.aizuda.snailjob.server.web.service.convert.JobNotifyConfigResponseVOConverterImpl Maven / Gradle / Ivy
package com.aizuda.snailjob.server.web.service.convert;
import com.aizuda.snailjob.server.web.model.response.JobNotifyConfigResponseVO;
import com.aizuda.snailjob.template.datasource.persistence.dataobject.JobNotifyConfigResponseDO;
import com.aizuda.snailjob.template.datasource.persistence.po.JobNotifyConfig;
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 JobNotifyConfigResponseVOConverterImpl implements JobNotifyConfigResponseVOConverter {
@Override
public JobNotifyConfigResponseVO convert(JobNotifyConfig jobNotifyConfig) {
if ( jobNotifyConfig == null ) {
return null;
}
JobNotifyConfigResponseVO jobNotifyConfigResponseVO = new JobNotifyConfigResponseVO();
jobNotifyConfigResponseVO.setId( jobNotifyConfig.getId() );
jobNotifyConfigResponseVO.setNamespaceId( jobNotifyConfig.getNamespaceId() );
jobNotifyConfigResponseVO.setGroupName( jobNotifyConfig.getGroupName() );
jobNotifyConfigResponseVO.setJobId( jobNotifyConfig.getJobId() );
jobNotifyConfigResponseVO.setNotifyStatus( jobNotifyConfig.getNotifyStatus() );
jobNotifyConfigResponseVO.setNotifyType( jobNotifyConfig.getNotifyType() );
jobNotifyConfigResponseVO.setNotifyAttribute( jobNotifyConfig.getNotifyAttribute() );
jobNotifyConfigResponseVO.setNotifyThreshold( jobNotifyConfig.getNotifyThreshold() );
jobNotifyConfigResponseVO.setNotifyScene( jobNotifyConfig.getNotifyScene() );
jobNotifyConfigResponseVO.setRateLimiterStatus( jobNotifyConfig.getRateLimiterStatus() );
jobNotifyConfigResponseVO.setRateLimiterThreshold( jobNotifyConfig.getRateLimiterThreshold() );
jobNotifyConfigResponseVO.setDescription( jobNotifyConfig.getDescription() );
jobNotifyConfigResponseVO.setCreateDt( jobNotifyConfig.getCreateDt() );
jobNotifyConfigResponseVO.setUpdateDt( jobNotifyConfig.getUpdateDt() );
return jobNotifyConfigResponseVO;
}
@Override
public List convertList(List jobNotifyConfigs) {
if ( jobNotifyConfigs == null ) {
return null;
}
List list = new ArrayList( jobNotifyConfigs.size() );
for ( JobNotifyConfigResponseDO jobNotifyConfigResponseDO : jobNotifyConfigs ) {
list.add( jobNotifyConfigResponseDOToJobNotifyConfigResponseVO( jobNotifyConfigResponseDO ) );
}
return list;
}
protected JobNotifyConfigResponseVO jobNotifyConfigResponseDOToJobNotifyConfigResponseVO(JobNotifyConfigResponseDO jobNotifyConfigResponseDO) {
if ( jobNotifyConfigResponseDO == null ) {
return null;
}
JobNotifyConfigResponseVO jobNotifyConfigResponseVO = new JobNotifyConfigResponseVO();
jobNotifyConfigResponseVO.setId( jobNotifyConfigResponseDO.getId() );
jobNotifyConfigResponseVO.setNamespaceId( jobNotifyConfigResponseDO.getNamespaceId() );
jobNotifyConfigResponseVO.setGroupName( jobNotifyConfigResponseDO.getGroupName() );
jobNotifyConfigResponseVO.setJobId( jobNotifyConfigResponseDO.getJobId() );
jobNotifyConfigResponseVO.setJobName( jobNotifyConfigResponseDO.getJobName() );
jobNotifyConfigResponseVO.setNotifyStatus( jobNotifyConfigResponseDO.getNotifyStatus() );
jobNotifyConfigResponseVO.setNotifyType( jobNotifyConfigResponseDO.getNotifyType() );
jobNotifyConfigResponseVO.setNotifyAttribute( jobNotifyConfigResponseDO.getNotifyAttribute() );
jobNotifyConfigResponseVO.setNotifyThreshold( jobNotifyConfigResponseDO.getNotifyThreshold() );
jobNotifyConfigResponseVO.setNotifyScene( jobNotifyConfigResponseDO.getNotifyScene() );
jobNotifyConfigResponseVO.setRateLimiterStatus( jobNotifyConfigResponseDO.getRateLimiterStatus() );
jobNotifyConfigResponseVO.setRateLimiterThreshold( jobNotifyConfigResponseDO.getRateLimiterThreshold() );
jobNotifyConfigResponseVO.setDescription( jobNotifyConfigResponseDO.getDescription() );
jobNotifyConfigResponseVO.setCreateDt( jobNotifyConfigResponseDO.getCreateDt() );
jobNotifyConfigResponseVO.setUpdateDt( jobNotifyConfigResponseDO.getUpdateDt() );
return jobNotifyConfigResponseVO;
}
}