|
@@ -40,7 +40,7 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
* @param userAuthenticationVO
|
|
|
* @return
|
|
|
*/
|
|
|
- public Map<Integer, Object> userAuthentication(UserAuthenticationVO userAuthenticationVO) {
|
|
|
+ public AuthStatusDTO userAuthentication(UserAuthenticationVO userAuthenticationVO) {
|
|
|
Long userId = Long.parseLong(UserUtils.getCurrentPrincipleID());
|
|
|
User user_old = userFacade.getById(userId);
|
|
|
User user = userFacade.findByName(userAuthenticationVO.getUserName());
|
|
@@ -101,9 +101,10 @@ public class UserAuthenticationFacade extends UserAuthenticationServiceImpl {
|
|
|
userAuthentication.setStatus(AuthStatusEnum.Authorizing.getKey()); //状态设为认证中
|
|
|
this.saveOrUpdate(userAuthentication);
|
|
|
|
|
|
- Map<Integer, Object> map = new HashMap<>();
|
|
|
- map.put(userAuthentication.getStatus(), AuthStatusEnum.Authorizing.getName());
|
|
|
- return map;
|
|
|
+ AuthStatusDTO authStatusDTO = new AuthStatusDTO();
|
|
|
+ authStatusDTO.setAuthStatus(userAuthentication.getStatus());
|
|
|
+ authStatusDTO.setAuthStatusName(AuthStatusEnum.Authorizing.getName());
|
|
|
+ return authStatusDTO;
|
|
|
}
|
|
|
|
|
|
/**
|