diff --git a/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java b/src/main/java/com/kwan/springbootkwan/service/CsdnCollectService.java index 7355ae88854dd77520dad6f28728b363623eab46..beabbf3d902d3cc5fa0c3704fd408b6e00db38c9 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 440f3d446d20af411c1a6f83e6ec40ab6b1d712c..5f0d10928ff727cc7981f6891d0cc74ff0a30e1e 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 ba3c1cedd3eaa1f8ba676f8f36bfa2f16ae4a2d3..6c4cd357171ca118aaaba4e94c51d00c25df51e2 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 158b518ab337c5d30163183f78bb429f51d48b0a..11a9ce42e9132c34818cad17f8cadca012c471f5 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; + } + /** * 评论文章 *