class UserController {

    @Autowired
    private AccountManager accountManager;

    @RequestMapping("/currentUser.do")
    @ResponseBody
    public HttpResult currentUser() throws Exception {
        User user=accountManager.getCurUser();
        return HttpResult.SUCCESS(user);
    }

    @RequestMapping("/up-info.do")
    @ResponseBody
    public HttpResult save(HttpServletRequest request,String name,String avatar) throws Exception {<FILL_FUNCTION_BODY>}


    @RequestMapping("/up-pwd.do")
    @ResponseBody
    public HttpResult updatePwd(String curpwd,String pwd) throws Exception {
        System.out.println("curpwd:"+curpwd);
        boolean isOk = accountManager.updatePwd(curpwd,pwd);
        if(isOk){
            return HttpResult.SUCCESS();
        }
        return HttpResult.FAILURE();
    }

}

        User user=accountManager.getCurUser();
//		user.setEmail(email);
//		user.setCellphone(cellphone);
        user.setName(name);
        user.setAvatar(avatar);
        accountManager.saveUp(user);
        return HttpResult.SUCCESS();
    
<no_super_class>