All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aizuda.snailjob.server.web.service.convert.NotifyConfigConverterImpl Maven / Gradle / Ivy

package com.aizuda.snailjob.server.web.service.convert;

import com.aizuda.snailjob.server.web.model.request.NotifyConfigRequestVO;
import com.aizuda.snailjob.template.datasource.persistence.po.NotifyConfig;
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 NotifyConfigConverterImpl implements NotifyConfigConverter {

    @Override
    public NotifyConfig convert(NotifyConfigRequestVO notifyConfigVO) {
        if ( notifyConfigVO == null ) {
            return null;
        }

        NotifyConfig notifyConfig = new NotifyConfig();

        notifyConfig.setId( notifyConfigVO.getId() );
        notifyConfig.setGroupName( notifyConfigVO.getGroupName() );
        notifyConfig.setBusinessId( notifyConfigVO.getBusinessId() );
        notifyConfig.setSystemTaskType( notifyConfigVO.getSystemTaskType() );
        notifyConfig.setNotifyStatus( notifyConfigVO.getNotifyStatus() );
        notifyConfig.setNotifyThreshold( notifyConfigVO.getNotifyThreshold() );
        notifyConfig.setNotifyScene( notifyConfigVO.getNotifyScene() );
        notifyConfig.setRateLimiterStatus( notifyConfigVO.getRateLimiterStatus() );
        notifyConfig.setRateLimiterThreshold( notifyConfigVO.getRateLimiterThreshold() );
        notifyConfig.setDescription( notifyConfigVO.getDescription() );

        notifyConfig.setRecipientIds( NotifyConfigConverter.toNotifyRecipientIdsStr(notifyConfigVO.getRecipientIds()) );

        return notifyConfig;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy