/** 列表 */ @RequestMapping(value = "/list", method = RequestMethod.GET) public String list(Pageable pageable, ModelMap model) { model.addAttribute("page", shippingService.findPage(pageable)); return "/admin/shipping/list"; }
/** 删除 */ @RequestMapping(value = "/delete", method = RequestMethod.POST) public @ResponseBody Message delete(Long[] ids) { shippingService.delete(ids); return SUCCESS_MESSAGE; }
/** 查看 */ @RequestMapping(value = "/view", method = RequestMethod.GET) public String view(Long id, ModelMap model) { model.addAttribute("shipping", shippingService.find(id)); return "/admin/shipping/view"; }