/** 列表 */
  @RequestMapping
  public String index(
      ModelMap model,
      PermissionGroupQuery query,
      HttpServletRequest request,
      HttpServletResponse response) {
    Page page = this.permissionGroupManager.findPage(query);

    model.addAllAttributes(toModelMap(page, query));
    return "/permissiongroup/index";
  }
Example #2
0
  /** 列表 */
  @RequestMapping
  @SuppressWarnings({"unchecked"})
  public String index(
      ModelMap model,
      CommentQuery query,
      HttpServletRequest request,
      HttpServletResponse response) {
    Page page = this.commentManager.findPage(query);

    model.addAllAttributes(toModelMap(page, query));
    return "/jtzs/comment/index";
  }
 @RequestMapping(value = "/dummy-user", method = RequestMethod.GET)
 public ModelMap list(ModelMap model) {
   model.addAllAttributes(dummyUserService.getAllDummyUsers());
   return model;
 }
 /** Copy all attributes in the supplied Map into the model */
 public void addAllAttributes(Map<String, ?> attributes) {
   model.addAllAttributes(attributes);
 }