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

org.openea.eap.module.system.convert.social.SocialUserConvertImpl Maven / Gradle / Ivy

Go to download

system 模块下,我们放通用业务,支撑上层的核心业务。 例如说:用户、部门、权限、数据字典等等

The newest version!
package org.openea.eap.module.system.convert.social;

import javax.annotation.Generated;
import org.openea.eap.module.system.api.social.dto.SocialUserBindReqDTO;
import org.openea.eap.module.system.controller.admin.socail.vo.user.SocialUserBindReqVO;

@Generated(
    value = "org.mapstruct.ap.MappingProcessor",
    date = "2024-12-06T18:10:28+0800",
    comments = "version: 1.5.5.Final, compiler: javac, environment: Java 11.0.25 (Azul Systems, Inc.)"
)
public class SocialUserConvertImpl implements SocialUserConvert {

    @Override
    public SocialUserBindReqDTO convert(Long userId, Integer userType, SocialUserBindReqVO reqVO) {
        if ( userId == null && userType == null && reqVO == null ) {
            return null;
        }

        SocialUserBindReqDTO socialUserBindReqDTO = new SocialUserBindReqDTO();

        if ( reqVO != null ) {
            socialUserBindReqDTO.setSocialType( reqVO.getType() );
            socialUserBindReqDTO.setCode( reqVO.getCode() );
            socialUserBindReqDTO.setState( reqVO.getState() );
        }
        socialUserBindReqDTO.setUserId( userId );
        socialUserBindReqDTO.setUserType( userType );

        return socialUserBindReqDTO;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy