result.setUser(dto);
return result;
} catch (ObjectNotFoundException e) {
String message = "用户不存在(id:" + id + ")";
logger.error(message, e);
return result.buildResult(WSResult.PARAMETER_ERROR, message);
} catch (RuntimeException e) {
logger.error(e.getMessage(), e);
return result.buildDefaultErrorResult();
}
}