/**
* @see AccountSoapService#getUser(Long)
*/
@Override
public GetUserResult getUser(Long id) {
GetUserResult result = new GetUserResult();
try {
Validate.notNull(id, "id参数为空");
User user = accountService.getUser(id);
Validate.notNull(user, "用户不存在(id:" + id + ")");
UserDTO dto = BeanMapper.map(user, UserDTO.class);
result.setUser(dto);
return result;
} catch (IllegalArgumentException e) {
return handleParameterError(result, e);