com.faasadmin.faas.business.member.convert.MemberBusinessConvert Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2021-Now http://faasadmin.com All rights reserved.
* No deletion without permission, or be held responsible to law.
*/
package com.faasadmin.faas.business.member.convert;
import com.faasadmin.faas.business.member.vo.auth.*;
import com.faasadmin.faas.business.member.vo.info.MemberInfoRespVO;
import com.faasadmin.faas.business.member.vo.social.MemberSocialUserBindReqVO;
import com.faasadmin.faas.business.member.vo.social.MemberSocialUserUnbindReqVO;
import com.faasadmin.faas.services.member.dal.dataobject.member.SupMemberInfoDO;
import com.faasadmin.faas.services.system.dal.dataobject.auth.SysOAuth2AccessTokenDO;
import com.faasadmin.faas.services.system.dto.code.SysSmsCodeSendReqDTO;
import com.faasadmin.faas.services.system.dto.code.SysSmsCodeUseReqDTO;
import com.faasadmin.faas.services.system.dto.social.SysSocialUserBindReqDTO;
import com.faasadmin.faas.services.system.dto.social.SysSocialUserUnbindReqDTO;
import com.faasadmin.faas.services.system.enums.sms.SysSmsSceneEnum;
import com.faasadmin.faas.services.system.vo.auth.login.SysAuthSmsLoginReqVO;
import com.faasadmin.framework.security.core.service.dto.OAuth2AccessTokenRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
/**
* @version: V1.0
* @author: fendo
* @description: 会员转换
* @data: 2022-04-21 21:18
**/
@Mapper
public interface MemberBusinessConvert {
MemberBusinessConvert INSTANCE = Mappers.getMapper(MemberBusinessConvert.class);
MemberInfoRespVO convert(SupMemberInfoDO bean);
SysSocialUserBindReqDTO convert(Long userId, Integer userType, MemberSocialUserBindReqVO reqVO);
SysSocialUserUnbindReqDTO convert(Long userId, Integer userType, MemberSocialUserUnbindReqVO reqVO);
SysSmsCodeUseReqDTO convert(SysAuthSmsLoginReqVO reqVO, Integer scene, String usedIp);
SysSmsCodeSendReqDTO convert(MemberAuthSmsSendReqVO reqVO);
SysSmsCodeUseReqDTO convert(MemberAuthResetPasswordReqVO reqVO, SysSmsSceneEnum scene, String usedIp);
SysSmsCodeUseReqDTO convert(MemberAuthSmsLoginReqVO reqVO, Integer scene, String usedIp);
SysSocialUserBindReqDTO convert(Long userId, Integer userType, MemberAuthSocialBindLoginReqVO reqVO);
SysSocialUserBindReqDTO convert(Long userId, Integer userType, MemberAuthSocialQuickLoginReqVO reqVO);
MemberAuthLoginRespVO convert(OAuth2AccessTokenRespDTO bean);
MemberAuthLoginRespVO convert(SysOAuth2AccessTokenDO tokenDO);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy