コード例 #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));
 }