【add】商旅平台单点新增角色信息
This commit is contained in:
parent
773f2a9786
commit
845099b282
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue