类 ContentController

java.lang.Object
com.publiccms.controller.web.cms.ContentController

@Controller @RequestMapping("content") public class ContentController extends Object
ContentController 内容
  • 字段详细资料

  • 构造器详细资料

    • ContentController

      public ContentController()
  • 方法详细资料

    • save

      @PostMapping("save") public String save(@RequestAttribute SysSite site, CmsContent entity, @SessionAttribute SysUser user, Boolean draft, String captcha, CmsContentAttribute attribute, @ModelAttribute CmsContentParameters contentParameters, String returnUrl, jakarta.servlet.http.HttpServletRequest request, org.springframework.web.servlet.mvc.support.RedirectAttributes model)
      保存内容
      参数:
      site -
      entity -
      user -
      draft -
      captcha -
      attribute -
      contentParameters -
      returnUrl -
      request -
      model -
      返回:
      view name
    • contentRedirect

      @RequestMapping("redirect") public String contentRedirect(@RequestAttribute SysSite site, Long id)
      内容链接重定向并计数
      参数:
      site -
      id -
      返回:
      view name
    • contentFileRedirect

      @RequestMapping("fileRedirect") public String contentFileRedirect(@RequestAttribute SysSite site, Long contentId, Long id)
      内容附件链接重定向并计数
      参数:
      site -
      contentId -
      id -
      返回:
      view name