【add】商旅平台单点新增角色信息
This commit is contained in:
parent
773f2a9786
commit
845099b282
|
@ -126,7 +126,8 @@ public class LoginController {
|
||||||
//异步执行更新用户信息到同程
|
//异步执行更新用户信息到同程
|
||||||
User currentUser = BaseContext.getCurrentUser();
|
User currentUser = BaseContext.getCurrentUser();
|
||||||
loginEventBoarder(currentUser);
|
loginEventBoarder(currentUser);
|
||||||
|
currentUser.loadRoleOrg();
|
||||||
|
userLoginResult.setRoleList(currentUser.getRoleList());
|
||||||
return Result.Success(CommonMessageConstant.SUCCESS, userLoginResult);
|
return Result.Success(CommonMessageConstant.SUCCESS, userLoginResult);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
package com.chint.domain.value_object;
|
package com.chint.domain.value_object;
|
||||||
|
|
||||||
|
import com.chint.domain.aggregates.user.Role;
|
||||||
import com.chint.domain.aggregates.user.User;
|
import com.chint.domain.aggregates.user.User;
|
||||||
import com.chint.infrastructure.util.Token;
|
import com.chint.infrastructure.util.Token;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class UserLoginResult {
|
public class UserLoginResult {
|
||||||
private UserVO user;
|
private UserVO user;
|
||||||
private Token token;
|
private Token token;
|
||||||
|
List<Role> roleList;
|
||||||
// private String redirectUrl;
|
// private String redirectUrl;
|
||||||
|
|
||||||
public UserLoginResult(User user) {
|
public UserLoginResult(User user) {
|
||||||
|
|
Loading…
Reference in New Issue