From e4b5e39ea272874268fb6730d48f70cdc69ac3b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=A6=E8=8B=B1=E6=9D=B0?= <327782001@qq.com> Date: Wed, 25 Oct 2023 18:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=AF=84=E8=AE=BA=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E6=96=87=E7=AB=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../springbootkwan/service/CsdnCollectService.java | 2 +- .../springbootkwan/service/CsdnCommentService.java | 10 +++++++++- .../kwan/springbootkwan/service/CsdnLikeService.java | 3 +-- .../service/impl/CsdnCommentServiceImpl.java | 5 +++++ 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java b/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java index 7355ae8..beabbf3 100644 --- a/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java +++ b/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java @@ -21,7 +21,7 @@ public interface CsdnCollectService { Boolean isCollect(String articleId, CsdnUserInfo csdnUserInfo); /** - * 点赞和取消点赞接口,true,点过,false,没有点过 + * 收藏 * * @return */ diff --git a/src/main/java/com/kwan/springbootkwan/service/CsdnCommentService.java b/src/main/java/com/kwan/springbootkwan/service/CsdnCommentService.java index 440f3d4..5f0d109 100644 --- a/src/main/java/com/kwan/springbootkwan/service/CsdnCommentService.java +++ b/src/main/java/com/kwan/springbootkwan/service/CsdnCommentService.java @@ -20,9 +20,17 @@ public interface CsdnCommentService { Boolean isComment(BusinessInfoResponse.ArticleData.Article article, CsdnUserInfo csdnUserInfo); /** - * 点赞和取消点赞接口,true,点过,false,没有点过 + * 评论别人的文章 * * @return */ Boolean comment(String articleId, CsdnUserInfo csdnUserInfo); + + + /** + * 评论自己的文章 + * + * @return + */ + Boolean commentSelf(); } \ No newline at end of file diff --git a/src/main/java/com/kwan/springbootkwan/service/CsdnLikeService.java b/src/main/java/com/kwan/springbootkwan/service/CsdnLikeService.java index ba3c1ce..6c4cd35 100644 --- a/src/main/java/com/kwan/springbootkwan/service/CsdnLikeService.java +++ b/src/main/java/com/kwan/springbootkwan/service/CsdnLikeService.java @@ -14,7 +14,6 @@ public interface CsdnLikeService { /** * 查询是否点过赞 - * todo:还未找到接口,搁浅 * * @return */ @@ -25,5 +24,5 @@ public interface CsdnLikeService { * * @return */ - Boolean like(String articleId,CsdnUserInfo csdnUserInfo); + Boolean like(String articleId, CsdnUserInfo csdnUserInfo); } \ No newline at end of file diff --git a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java index 158b518..11a9ce4 100644 --- a/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java +++ b/src/main/java/com/kwan/springbootkwan/service/impl/CsdnCommentServiceImpl.java @@ -110,6 +110,11 @@ public class CsdnCommentServiceImpl implements CsdnCommentService { return true; } + @Override + public Boolean commentSelf() { + return null; + } + /** * 评论文章 * -- GitLab