【add】商旅平台单点新增角色信息

This commit is contained in:
nixj 2024-07-11 14:16:43 +08:00
parent 773f2a9786
commit 845099b282
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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<Role> roleList;
// private String redirectUrl;
public UserLoginResult(User user) {