From acf418c6598ef68c7730a98008860ea821ba6335 Mon Sep 17 00:00:00 2001
From: 101captain <237651143@qq.com>
Date: 星期一, 14 三月 2022 15:57:28 +0800
Subject: [PATCH] Merge branch 'hemenkou_dev' into dev

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/IndexApi.java |   29 +++++++++++++++++++++++++++++
 1 files changed, 29 insertions(+), 0 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 8f9024e..4e3687b 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,7 +2,12 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.dtos.common.EvaluateEasyDto;
+import com.panzhihua.common.model.dtos.common.PageComActEasyPhotoHandlerDto;
+import com.panzhihua.common.model.vos.common.ComActEasyPhotoHandlerVo;
 import com.panzhihua.common.model.vos.community.easyPhoto.BannerVO;
+import com.panzhihua.common.service.community.ComActEasyPhotoEvaluateFeign;
+import com.panzhihua.common.service.community.ComActEasyPhotoHandlerFeign;
 import org.springframework.util.ObjectUtils;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
@@ -49,6 +54,8 @@
     private UserService userService;
     @Resource
     private CheckService checkService;
+    @Resource
+    private ComActEasyPhotoEvaluateFeign easyPhotoEvaluateFeign;
 
     @ApiOperation(value = "分页展示社区随手拍", response = ComActEasyPhotoVO.class)
     @PostMapping("pageeasyphoto")
@@ -79,6 +86,21 @@
         comActEasyPhotoVO.setSponsorId(userId);
         comActEasyPhotoVO.setStatus(1);
         return communityService.addEasyPhoto(comActEasyPhotoVO);
+    }
+
+    /**
+     * description  queryByPage  分页查询
+     *
+     * @param comActEasyPhotoHandler 请求参数
+     * @return 分页查询返回参数
+     * @author lyq
+     * @date 2022-03-01 13:45:10
+     */
+    @ApiOperation(value = "查询处理列表",response = ComActEasyPhotoHandlerVo.class)
+    @PostMapping("/handleList")
+    public R handleList(@RequestBody PageComActEasyPhotoHandlerDto comActEasyPhotoHandler) {
+        comActEasyPhotoHandler.setUserId(this.getUserId());
+        return this.communityService.queryEasyPhotoHandler(comActEasyPhotoHandler);
     }
 
     @ApiOperation(value = "查询随手拍是否有活动", response = ComActEasyPhotoActivityVO.class)
@@ -379,4 +401,11 @@
     public R easyPhotoClassifyList() {
         return communityService.listPhotoClassify(this.getAreaCode());
     }
+
+    @ApiOperation(value = "随手拍评价")
+    @PostMapping("easyphoto/whistle/evaluate")
+    public R evaluateEasyPhotoWhistle(@RequestBody EvaluateEasyDto whistleDto) {
+        whistleDto.setUserId(this.getUserId());
+        return easyPhotoEvaluateFeign.evaluateEasyApplets(whistleDto);
+    }
 }

--
Gitblit v1.7.1