@RequestMapping(value = "/del", method = RequestMethod.POST) @ResponseBody public Response del(@RequestBody List<String> userItemIds) { try { itemFollowService.remove(userItemIds); return new Response(true, "Xóa thành công danh sách được lựa chọn"); } catch (Exception ex) { return new Response(false, ex.getMessage()); } }
@RequestMapping(value = "/savenote", method = RequestMethod.GET) @ResponseBody public Response saveNote( @RequestParam(value = "id", defaultValue = "") String id, @RequestParam(value = "note", defaultValue = "") String note) { try { return new Response(true, "OK", itemFollowService.note(id, note)); } catch (Exception ex) { return new Response(false, ex.getMessage()); } }