类 ContentController

java.lang.Object
com.hengyi.xbaseweb.system.controller.base.XBaseController
com.hengyi.xbaseweb.article.controller.ContentController
所有已实现的接口:
IXBaseController

@RestController @RequestMapping("/article/content") public class ContentController extends XBaseController
文章内容管理
  • 构造器详细资料

    • ContentController

      public ContentController()
  • 方法详细资料

    • createArticle

      @PostMapping("/create") public ApiResult createArticle(@RequestBody @Validated ArticleDto articleDto)
      创建文章
      参数:
      articleDto -
      返回:
    • updateArticle

      @PutMapping("/update") public ApiResult updateArticle(@RequestBody @Validated ArticleDto articleDto)
      更新文章
      参数:
      articleDto -
      返回:
    • articlePage

      @GetMapping("/page") public ApiResult articlePage(@Validated ArticlePageDto articlePageDto, PageQuery pageQuery)
      查询文章列表
      参数:
      articlePageDto -
      返回:
    • deleteArticle

      @DeleteMapping("/delete") public ApiResult deleteArticle(@RequestBody ArticleDto articleDto)
      删除文章
      参数:
      articleDto -
      返回:
    • batchDeleteArticle

      @DeleteMapping("/deleteBatch") public ApiResult batchDeleteArticle(@RequestBody List<Long> ids)
      批量删除文章
      参数:
      ids -
      返回:
    • findArticle

      @GetMapping("/{articleId}") public ApiResult findArticle(@PathVariable Long articleId)
      文章查询
      参数:
      articleId -
      返回: