类 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
文章内容管理
-
字段概要
从类继承的字段 com.hengyi.xbaseweb.system.controller.base.XBaseController
request, userSessionService -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明articlePage(ArticlePageDto articlePageDto, PageQuery pageQuery) 查询文章列表batchDeleteArticle(List<Long> ids) 批量删除文章createArticle(ArticleDto articleDto) 创建文章deleteArticle(ArticleDto articleDto) 删除文章findArticle(Long articleId) 文章查询updateArticle(ArticleDto articleDto) 更新文章从类继承的方法 com.hengyi.xbaseweb.system.controller.base.XBaseController
error, error, getAppId, getCurrentUser, getCurrentUserId, getCurrentUsername, getCurrentUserRoles, getMessage, getMessage, status, success, success, toResult, toResult
-
构造器详细资料
-
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
删除文章- 参数:
articleDto-- 返回:
-
batchDeleteArticle
批量删除文章- 参数:
ids-- 返回:
-
findArticle
文章查询- 参数:
articleId-- 返回:
-