|
@@ -3,6 +3,8 @@ package cn.tr.module.sys.oauth2.mapper;
|
|
|
import cn.tr.module.sys.oauth2.dto.OAuth2PswLoginInfoDTO;
|
|
import cn.tr.module.sys.oauth2.dto.OAuth2PswLoginInfoDTO;
|
|
|
import cn.tr.module.sys.user.dto.SysUserDTO;
|
|
import cn.tr.module.sys.user.dto.SysUserDTO;
|
|
|
import org.mapstruct.Mapper;
|
|
import org.mapstruct.Mapper;
|
|
|
|
|
+import org.mapstruct.Mapping;
|
|
|
|
|
+import org.mapstruct.Mappings;
|
|
|
import org.mapstruct.factory.Mappers;
|
|
import org.mapstruct.factory.Mappers;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -15,5 +17,8 @@ import org.mapstruct.factory.Mappers;
|
|
|
public interface OAuth2Mapper {
|
|
public interface OAuth2Mapper {
|
|
|
OAuth2Mapper INSTANCE = Mappers.getMapper(OAuth2Mapper.class);
|
|
OAuth2Mapper INSTANCE = Mappers.getMapper(OAuth2Mapper.class);
|
|
|
|
|
|
|
|
|
|
+ @Mappings(
|
|
|
|
|
+ @Mapping(source = "id",target = "userId")
|
|
|
|
|
+ )
|
|
|
OAuth2PswLoginInfoDTO toPswLoginInfo(SysUserDTO source);
|
|
OAuth2PswLoginInfoDTO toPswLoginInfo(SysUserDTO source);
|
|
|
}
|
|
}
|