From b919f4d1a998b670dac6ea61edb7aa52fc0068a0 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 29 七月 2024 18:51:09 +0800
Subject: [PATCH] 修改bug
---
ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java b/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java
index 2d55b88..39f89c1 100644
--- a/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java
+++ b/ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java
@@ -1,12 +1,11 @@
package com.ruoyi.article.controller.forepart;
-import com.ruoyi.article.dto.ArticleCommentsDTO;
+import com.ruoyi.article.controller.forepart.dto.ArticleCommentsDTO;
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.*;
import javax.annotation.Resource;
@@ -28,17 +27,15 @@
private IArticleCommentsService articleCommentsService;
@PostMapping("/saveMemberArticleComments")
- @ResponseBody
@ApiOperation(value = "用户端-添加或者修改用户评论/回复")
- public R<T> saveMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) {
+ public R saveMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) {
articleCommentsService.saveMemberArticleComments(articleCommentsDTO);
return R.ok();
}
@PostMapping("/delMemberArticleComments")
- @ResponseBody
@ApiOperation(value = "用户端-删除用户评论/回复")
- public R<T> delMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) {
+ public R delMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) {
articleCommentsService.delMemberArticleComments(articleCommentsDTO);
return R.ok();
}
--
Gitblit v1.7.1