From 32d3e175d20afe7e98825eec99b5a9e3fa4f0a34 Mon Sep 17 00:00:00 2001
From: huanghongfa <18228131219@163.com>
Date: 星期四, 21 一月 2021 18:46:01 +0800
Subject: [PATCH] 新需求

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java |   32 +++++++++++++++++++++++++++++---
 1 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
index 44b5ffa..7325f31 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java
@@ -2,10 +2,14 @@
 
 import com.panzhihua.common.controller.BaseController;
 import com.panzhihua.common.model.dtos.PageDTO;
+import com.panzhihua.common.model.dtos.community.ComActEasyPhotoCommentDTO;
+import com.panzhihua.common.model.dtos.community.PageComActEasyPhotoCommentDTO;
+import com.panzhihua.common.model.dtos.community.ComActEasyPhotoCommentUserDTO;
 import com.panzhihua.common.model.dtos.community.NoticeReadDTO;
 import com.panzhihua.common.model.vos.LoginUserInfoVO;
 import com.panzhihua.common.model.vos.R;
 import com.panzhihua.common.model.vos.advertisement.ComOpsAdvVO;
+import com.panzhihua.common.model.vos.community.ComActEasyPhotoCommentVO;
 import com.panzhihua.common.model.vos.community.ComActEasyPhotoVO;
 import com.panzhihua.common.model.vos.community.ComActMicroWishVO;
 import com.panzhihua.common.model.vos.user.NoticeUnReadVO;
@@ -47,11 +51,12 @@
         if (null==communityId||0==communityId) {
             return R.fail("用户未绑定社区");
         }
-        Long userId = loginUserInfo.getUserId();
+//        Long userId = loginUserInfo.getUserId();
         comActEasyPhotoVO.setCommunityId(communityId);
         comActEasyPhotoVO.setStatus(4);
-        comActEasyPhotoVO.setLogInUserId(userId);
-        return communityService.pageEasyPhoto(comActEasyPhotoVO);
+//        comActEasyPhotoVO.setSponsorId(userId);
+//        return communityService.pageEasyPhoto(comActEasyPhotoVO);
+        return communityService.pageEasyPhotoApplets(comActEasyPhotoVO);
     }
 
     @ApiOperation("上传随手拍")
@@ -77,6 +82,27 @@
         return communityService.detailEasyPhoto(id,userId);
     }
 
+    @ApiOperation(value = "随手拍--评论--分页查询",response = ComActEasyPhotoCommentVO.class )
+    @PostMapping("pagecomacteasyphotocomment")
+    public R pageComActEasyPhotoComment (@RequestBody PageComActEasyPhotoCommentDTO pageComActEasyPhotoCommentDTO){
+        pageComActEasyPhotoCommentDTO.setUserId(this.getUserId());
+        return communityService.pageComActEasyPhotoComment(pageComActEasyPhotoCommentDTO);
+    }
+
+    @ApiOperation(value = "随手拍--评论--新增评论")
+    @PostMapping("comacteasyphotocomment")
+    public R addComActEasyPhotoComment (@RequestBody ComActEasyPhotoCommentDTO comActEasyPhotoCommentDTO){
+        comActEasyPhotoCommentDTO.setUserId(this.getUserId());
+        return communityService.addComActEasyPhotoComment(comActEasyPhotoCommentDTO);
+    }
+
+    @ApiOperation(value = "随手拍--评论--点赞/取消点赞" )
+    @PostMapping("commentsign")
+    public R commentSign (@RequestBody ComActEasyPhotoCommentUserDTO comActEasyPhotoCommentUserDTO){
+        comActEasyPhotoCommentUserDTO.setUserId(this.getUserId());
+        return communityService.commentSign(comActEasyPhotoCommentUserDTO);
+    }
+
     @ApiOperation("点赞/取消点赞随手拍")
     @PutMapping("easyphoto")
     public R putEasyPhoto (@RequestBody ComActEasyPhotoVO comActEasyPhotoVO){

--
Gitblit v1.7.1