@ResponseBody @RequestMapping(value = "/saveContent", method = RequestMethod.POST) public JsonResultSimple savePage(@RequestBody CmsContentPageIn cmsContentPageIn) { cmsPageService.saveContentOfOnePage(cmsContentPageIn); return new JsonResultSimple(true); }
@ResponseBody @RequestMapping(value = "/updateStatus", method = RequestMethod.POST) public JsonResultSimple updateStatus(@RequestBody CmsPageSimpleDto cmsPageSimpleDto) { cmsPageService.updatePageStatus(cmsPageSimpleDto); return new JsonResultSimple(true); }
@ResponseBody @RequestMapping(value = "/getContent", method = RequestMethod.GET) public JsonResult getContent(Integer id, Integer langId) { return new JsonResult(true, cmsPageService.getContentByPageIdAndLangId(id, langId)); }
@ResponseBody @RequestMapping(value = "/parsePage", method = RequestMethod.GET) public JsonResult parsePage(Integer id, Integer langId) { return new JsonResult(true, cmsPageService.formatPage(id, langId)); }
@ResponseBody @RequestMapping(value = "/delete", method = RequestMethod.POST) public JsonResultSimple deletePage(@RequestBody CmsPageSimpleDto cmsPageSimpleDto) { cmsPageService.deletePage(cmsPageSimpleDto); return new JsonResultSimple(true); }
@ResponseBody @RequestMapping(value = "/single", method = RequestMethod.GET) public JsonResult getPage(int id) { return new JsonResult(true, cmsPageService.getPage(id)); }
@ResponseBody @RequestMapping(value = "", method = RequestMethod.GET) public JsonResult getPages(int websiteId) { return new JsonResult(true, cmsPageService.getPages(websiteId)); }