18339543638 пре 2 година
родитељ
комит
356e766021

+ 5 - 0
tr-modules/tr-module-system/src/main/java/cn/tr/module/sys/oauth2/mapper/OAuth2Mapper.java

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