登录注册接口拆分

This commit is contained in:
张松
2025-01-14 11:10:46 +08:00
parent cb1e4eed1f
commit d5023aa9b3
2 changed files with 7 additions and 2 deletions

View File

@@ -207,4 +207,9 @@ public class UserEntity implements Serializable {
@TableField(exist = false) @TableField(exist = false)
private Integer vipType; private Integer vipType;
public UserEntity getDesensitizationInfo() {
this.setPassword(null);
return this;
}
} }

View File

@@ -915,7 +915,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
} }
userInfo.setUpdateTime(DateUtil.date().toString()); userInfo.setUpdateTime(DateUtil.date().toString());
baseMapper.updateById(userInfo); baseMapper.updateById(userInfo);
return getResult(userInfo); return getResult(userInfo.getDesensitizationInfo());
} }
@Override @Override
@@ -972,7 +972,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements
if (userEntity != null) { if (userEntity != null) {
inviteService.saveBody(userInfo.getUserId(), userEntity); inviteService.saveBody(userInfo.getUserId(), userEntity);
} }
return getResult(userInfo); return getResult(userInfo.getDesensitizationInfo());
} }
@Override @Override