From 34e50f2c23ff7cc7f0dbf2a40e3d038b30aec12f Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期六, 24 七月 2021 13:47:30 +0800
Subject: [PATCH] 测试社区动态

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java
index abef71d..cdd7d30 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java
@@ -6,6 +6,8 @@
 import com.panzhihua.common.model.vos.R;
 import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAppVO;
 import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleDetailAppVO;
+import com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleTopicAppVO;
+import com.panzhihua.common.model.vos.neighbor.ComActNeighborCommentReplyAppVO;
 import com.panzhihua.common.service.community.CommunityService;
 import com.panzhihua.common.utlis.StringUtils;
 import io.swagger.annotations.Api;
@@ -151,7 +153,7 @@
         return communityService.neighborAddBrowseByApp(addBrowseAppDTO);
     }
 
-    @ApiOperation(value = "分页查询评论下所有回复")
+    @ApiOperation(value = "分页查询评论下所有回复",response = ComActNeighborCommentReplyAppVO.class)
     @PostMapping("comment/reply")
     public R neighborCommentReplyByApp(@RequestBody ComActNeighborCommentReplyAppDTO commentReplyAppDTO) {
         Long userId = this.getLoginUserInfo().getUserId();
@@ -161,5 +163,15 @@
         commentReplyAppDTO.setUserId(userId);
         return communityService.neighborCommentReplyByApp(commentReplyAppDTO);
     }
+
+    @ApiOperation(value = "查询社区邻里圈话题列表" , response = ComActNeighborCircleTopicAppVO.class)
+    @GetMapping("topic/list")
+    public R getNeighborTopicByApp() {
+        Long communityId = this.getCommunityId();
+        if(communityId == null){
+            return R.fail("请先绑定社区");
+        }
+        return communityService.getNeighborTopicByApp(communityId);
+    }
 }
 

--
Gitblit v1.7.1