From 42f795894094c4d9541381da31357d4bbf93fea0 Mon Sep 17 00:00:00 2001 From: rentaiming <806181062@qq.com> Date: 星期一, 03 六月 2024 09:36:44 +0800 Subject: [PATCH] 修改循环注入 --- ruoyi-modules/ruoyi-article/src/main/java/com/ruoyi/article/controller/forepart/ForepartArticleCommentsController.java | 7 +++---- 1 files changed, 3 insertions(+), 4 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..5a22869 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; @@ -30,7 +29,7 @@ @PostMapping("/saveMemberArticleComments") @ResponseBody @ApiOperation(value = "用户端-添加或者修改用户评论/回复") - public R<T> saveMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) { + public R saveMemberArticleComments(@RequestBody ArticleCommentsDTO articleCommentsDTO) { articleCommentsService.saveMemberArticleComments(articleCommentsDTO); return R.ok(); } @@ -38,7 +37,7 @@ @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