From 0dc0a47cf5f655cb0dbff082f7c36613c21e328b Mon Sep 17 00:00:00 2001
From: 罗元桥 <2376770955@qq.com>
Date: 星期一, 12 七月 2021 18:30:01 +0800
Subject: [PATCH] Merge branch 'test' into 'master'
---
springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/NeighborApi.java | 19 ++++++++++++++++++-
1 files changed, 18 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 59a0762..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;
@@ -37,6 +39,11 @@
return R.fail("请先绑定社区");
}
neighborCircleAppDTO.setCommunityId(communityId);
+
+ Long userId = this.getLoginUserInfo().getUserId();
+ if(userId != null){
+ neighborCircleAppDTO.setUserId(userId);
+ }
return communityService.pageNeighborByApp(neighborCircleAppDTO);
}
@@ -146,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();
@@ -156,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