Ejemplo n.º 1
0
  @RequestMapping(value = "/admin/kefu/activity/edit/{id}")
  public String editActivityDetailPage(@PathVariable Long id, Model model) {
    Activity activity = activityService.findOne(id);
    model.addAttribute("activity", activity);

    return "admin.kefu.activity.edit";
  }
Ejemplo n.º 2
0
  @RequestMapping(value = "/admin/kefu/activity/list")
  public String showAllActivitiesPage(
      HttpSession session,
      Model model,
      @RequestParam(value = "pageNumber", defaultValue = "0") int pageNumber,
      @RequestParam(value = "pageSize", defaultValue = "20") int pageSize) {

    Page<Activity> page = activityService.findAllPage(pageNumber, pageSize);
    model.addAttribute("page", page);
    return "admin.kefu.activity.list";
  }