diff --git a/src/main/java/com/chint/application/out/LoginController.java b/src/main/java/com/chint/application/out/LoginController.java index 97b3a203..fde481a4 100644 --- a/src/main/java/com/chint/application/out/LoginController.java +++ b/src/main/java/com/chint/application/out/LoginController.java @@ -126,7 +126,8 @@ public class LoginController { //异步执行更新用户信息到同程 User currentUser = BaseContext.getCurrentUser(); loginEventBoarder(currentUser); - + currentUser.loadRoleOrg(); + userLoginResult.setRoleList(currentUser.getRoleList()); return Result.Success(CommonMessageConstant.SUCCESS, userLoginResult); } diff --git a/src/main/java/com/chint/domain/value_object/UserLoginResult.java b/src/main/java/com/chint/domain/value_object/UserLoginResult.java index 414cf072..4ea7b1fe 100644 --- a/src/main/java/com/chint/domain/value_object/UserLoginResult.java +++ b/src/main/java/com/chint/domain/value_object/UserLoginResult.java @@ -1,13 +1,17 @@ package com.chint.domain.value_object; +import com.chint.domain.aggregates.user.Role; import com.chint.domain.aggregates.user.User; import com.chint.infrastructure.util.Token; import lombok.Data; +import java.util.List; + @Data public class UserLoginResult { private UserVO user; private Token token; + List roleList; // private String redirectUrl; public UserLoginResult(User user) {