Exemplo n.º 1
0
  /**
   * 使用DataTables显示数据
   *
   * @return
   */
  @RequestMapping(value = "/log/load", method = RequestMethod.GET)
  @ResponseBody
  public DataTablesResult userLogLoad(HttpServletRequest request) {

    String draw = request.getParameter("draw");
    String start = request.getParameter("start");
    String length = request.getParameter("length");

    List<UserLog> userLogList = userService.findCurrentUserLog(start, length);
    Long count = userService.findCurrentUserLogCount();

    return new DataTablesResult<>(draw, userLogList, count, count);
  }
Exemplo n.º 2
0
 /** 修改密码 */
 @RequestMapping(value = "/password", method = RequestMethod.POST)
 @ResponseBody
 public String editPassword(String password) {
   userService.changePassword(password);
   return "success";
 }