Пример #1
0
 @ResponseBody
 @RequestMapping(value = "/saveContent", method = RequestMethod.POST)
 public JsonResultSimple savePage(@RequestBody CmsContentPageIn cmsContentPageIn) {
   cmsPageService.saveContentOfOnePage(cmsContentPageIn);
   return new JsonResultSimple(true);
 }
Пример #2
0
 @ResponseBody
 @RequestMapping(value = "/updateStatus", method = RequestMethod.POST)
 public JsonResultSimple updateStatus(@RequestBody CmsPageSimpleDto cmsPageSimpleDto) {
   cmsPageService.updatePageStatus(cmsPageSimpleDto);
   return new JsonResultSimple(true);
 }
Пример #3
0
 @ResponseBody
 @RequestMapping(value = "/getContent", method = RequestMethod.GET)
 public JsonResult getContent(Integer id, Integer langId) {
   return new JsonResult(true, cmsPageService.getContentByPageIdAndLangId(id, langId));
 }
Пример #4
0
 @ResponseBody
 @RequestMapping(value = "/parsePage", method = RequestMethod.GET)
 public JsonResult parsePage(Integer id, Integer langId) {
   return new JsonResult(true, cmsPageService.formatPage(id, langId));
 }
Пример #5
0
 @ResponseBody
 @RequestMapping(value = "/delete", method = RequestMethod.POST)
 public JsonResultSimple deletePage(@RequestBody CmsPageSimpleDto cmsPageSimpleDto) {
   cmsPageService.deletePage(cmsPageSimpleDto);
   return new JsonResultSimple(true);
 }
Пример #6
0
 @ResponseBody
 @RequestMapping(value = "/single", method = RequestMethod.GET)
 public JsonResult getPage(int id) {
   return new JsonResult(true, cmsPageService.getPage(id));
 }
Пример #7
0
 @ResponseBody
 @RequestMapping(value = "", method = RequestMethod.GET)
 public JsonResult getPages(int websiteId) {
   return new JsonResult(true, cmsPageService.getPages(websiteId));
 }