From fc13d832e58e42e241aa827e930651a28ca357e1 Mon Sep 17 00:00:00 2001 From: mitao <2763622819@qq.com> Date: 星期五, 31 五月 2024 11:48:43 +0800 Subject: [PATCH] Merge branch 'mitao-dev' --- ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java | 16 +++++++--------- 1 files changed, 7 insertions(+), 9 deletions(-) diff --git a/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java b/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java index 34a7a85..0eeec5a 100644 --- a/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java +++ b/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/ArticleCommentsController.java @@ -5,13 +5,10 @@ import com.ruoyi.article.dto.ArticleDTO; import com.ruoyi.article.service.IArticleCommentsService; import com.ruoyi.common.core.domain.R; +import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.apache.poi.ss.formula.functions.T; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.RequestMapping; - -import org.springframework.web.bind.annotation.ResponseBody; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; @@ -25,6 +22,7 @@ */ @RestController @RequestMapping("/article-comments") +@Api(value = "用户端-评论回复表相关接口", tags = "用户端-评论回复表址相关接口", description = "用户端-评论回复表相关接口") public class ArticleCommentsController { @Resource @@ -32,16 +30,16 @@ @PostMapping("/saveMemberArticleComments") @ResponseBody - @ApiOperation(value = "添加或者修改用户评论/回复") - public R<T> saveMemberArticleComments(ArticleCommentsDTO articleCommentsDTO) { + @ApiOperation(value = "用户端-添加或者修改用户评论/回复") + public R<T> saveMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) { articleCommentsService.saveMemberArticleComments(articleCommentsDTO); return R.ok(); } @PostMapping("/delMemberArticleComments") @ResponseBody - @ApiOperation(value = "删除用户评论/回复") - public R<T> delMemberArticleComments(ArticleCommentsDTO articleCommentsDTO) { + @ApiOperation(value = "用户端-删除用户评论/回复") + public R<T> delMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) { articleCommentsService.delMemberArticleComments(articleCommentsDTO); return R.ok(); } -- Gitblit v1.7.1