@Test public void testSetUserAvatar() throws Exception { }
public CommonResult setUserAvatar(Integer id, String avatarUrl){ User user = userMapper.get(id); if (user == null){ return CommonResult.fail(E_600); } userMapper.setAvatar(id, avatarUrl); return CommonResult.success(null); }
UserServiceImpl implements UserService { public CommonResult setUserAvatar(Integer id, String avatarUrl){ User user = userMapper.get(id); if (user == null){ return CommonResult.fail(E_600); } userMapper.setAvatar(id, avatarUrl); return CommonResult.success(null); } }
UserServiceImpl implements UserService { public CommonResult setUserAvatar(Integer id, String avatarUrl){ User user = userMapper.get(id); if (user == null){ return CommonResult.fail(E_600); } userMapper.setAvatar(id, avatarUrl); return CommonResult.success(null); }  }
UserServiceImpl implements UserService { public CommonResult setUserAvatar(Integer id, String avatarUrl){ User user = userMapper.get(id); if (user == null){ return CommonResult.fail(E_600); } userMapper.setAvatar(id, avatarUrl); return CommonResult.success(null); }  CommonResult setUserAvatar(Integer id, String avatarUrl); CommonResult setUserPassword(Integer userId, String oldPassword, String newPassword); CommonResult getUserInfo(String  token); }
UserServiceImpl implements UserService { public CommonResult setUserAvatar(Integer id, String avatarUrl){ User user = userMapper.get(id); if (user == null){ return CommonResult.fail(E_600); } userMapper.setAvatar(id, avatarUrl); return CommonResult.success(null); }  CommonResult setUserAvatar(Integer id, String avatarUrl); CommonResult setUserPassword(Integer userId, String oldPassword, String newPassword); CommonResult getUserInfo(String  token);  }