admin 管理员组文章数量: 887021
2024年1月16日发(作者:串口通信)
setCookieUser(request,response); return s("登录成功", userInfo); } } @RequestMapping("/users/getUsersByWhere/{pageNo}/{pageSize}") public @ResponseBody Result getUsersByWhere(UserInfo userInfo, @PathVariable int pageNo, @PathVariable int pageSize, HttpSession session){ if ("".equals(seid())){ seid(null); } if (eid() == -1){ eid(sionUser(session).getRoleid()); } (ng()); PageModel model = new PageModel<>(pageNo,userInfo); eSize(pageSize); return rsByWhere(model); } @RequestMapping("/user/add") public @ResponseBody Result addUser(UserInfo userInfo){ n(userInfo); try { int num = (userInfo); if(num>0){ return s(); }else { return ess(); } }catch (Exception e){ return (e); } } @RequestMapping("/user/update") public @ResponseBody Result updateUser(UserInfo userInfo){ try { int num = (userInfo); if(num>0){ return s(); }else { return ess(); } }catch (Exception e){ return (e); } } @RequestMapping("/user/del/{id}") public @ResponseBody Result deleteUser(@PathVariable String id){ try { int num = (id); if(num>0){ return s(); }else { return ess(); } }catch (Exception e){ return (e); } } @RequestMapping("/getSessionUser") @ResponseBody public UserInfo getSessionUser(HttpSession session){ UserInfo sessionUser = (UserInfo) ribute(T_USERNAME);
UserInfo sessionUser = (UserInfo) ribute(T_USERNAME); sword(null); return sessionUser; } @RequestMapping("/logout") public String logout(HttpServletRequest request, HttpServletResponse response){ delCookieUser(request, response); sion().removeAttribute(T_USERNAME); return "login"; } @RequestMapping("/getAllRoles") public @ResponseBody Result
版权声明:本文标题:Java项目:家庭财务管理系统(java+Springboot+ssm+mysql+maven) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/free/1705368322h482879.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论