Exemplo n.º 1
0
 @ResponseBody
 @RequestMapping(value = "/pageQuery", method = RequestMethod.POST)
 public void pageQuery(HttpServletRequest request, HttpServletResponse response) {
   NewsRealReceiverBo bo = GsonUtils.wrapDataToEntity(request, NewsRealReceiverBo.class);
   PageVo pageVo = newsRealReceiverService.pageQuery(bo);
   GsonUtils.printData(response, pageVo);
 }
Exemplo n.º 2
0
 @RequestMapping(value = "/update", method = RequestMethod.POST)
 @ResponseBody
 public void update(HttpServletRequest request, HttpServletResponse response) {
   NewsRealReceiver newsRealReceiver = GsonUtils.wrapDataToEntity(request, NewsRealReceiver.class);
   newsRealReceiverService.update(newsRealReceiver);
   GsonUtils.printSuccess(response);
 }