From ebea64fcbd2b7881863755ec38e5cf37cdb60658 Mon Sep 17 00:00:00 2001
From: CeDo <cedoogle@gmail.com>
Date: 星期一, 31 五月 2021 14:49:18 +0800
Subject: [PATCH] Merge branch 'test_future_wangge' into test

---
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java |   88 ++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 88 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java
new file mode 100644
index 0000000..e7e51e0
--- /dev/null
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java
@@ -0,0 +1,88 @@
+package com.panzhihua.service_grid.api;
+
+import com.panzhihua.common.model.dtos.grid.ComActEasyPhotoHandleDTO;
+import com.panzhihua.common.model.dtos.grid.PageEasyAppDTO;
+import com.panzhihua.common.model.vos.R;
+import com.panzhihua.service_grid.service.ComActEasyPhotoService;
+import com.panzhihua.service_grid.service.ComActEasyPhotoTypeService;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+
+/**
+ *
+ * @author lyq
+ * @version 1.0
+ * @since 1.0
+ * @date 2021-05-26
+ * */
+@Slf4j
+@RestController
+@RequestMapping("/easy")
+public class EasyPhotoApi {
+
+    @Resource
+    private ComActEasyPhotoService comActEasyPhotoService;
+    @Resource
+    private ComActEasyPhotoTypeService comActEasyPhotoTypeService;
+
+    /**
+     * 分页查询随手拍
+     * @param easyAppDTO    请求参数
+     * @return 随手拍列表
+     */
+    @PostMapping("list")
+    public R list(@RequestBody PageEasyAppDTO easyAppDTO){
+        return comActEasyPhotoService.query(easyAppDTO);
+    }
+
+    /**
+     * 根据随手拍id查询随手拍详情
+     * @param easyId    随手拍id
+     * @return  随手拍详情
+     */
+    @PostMapping("detail")
+    public R detail(@RequestParam("easyId") Long easyId){
+        return comActEasyPhotoService.detail(easyId);
+    }
+
+    /**
+     * 查询随手拍类型列表
+     * @return  类型列表
+     */
+    @PostMapping("type/list")
+    public R typeList(){
+        return comActEasyPhotoTypeService.typeList();
+    }
+
+    /**
+     * 随手拍处理
+     * @param photoHandleDTO    请求参数
+     * @return  处理结果
+     */
+    @PostMapping("handle")
+    public R easyHandle(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+        return comActEasyPhotoService.easyHandle(photoHandleDTO);
+    }
+
+    /**
+     * 随手拍公示状态切换
+     * @param photoHandleDTO    请求参数
+     * @return  切换结果
+     */
+    @PostMapping("publicity")
+    public R easyPublicity(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+        return comActEasyPhotoService.easyPublicity(photoHandleDTO);
+    }
+
+    /**
+     * 随手拍上报社区
+     * @param photoHandleDTO    请求参数
+     * @return  上报结果
+     */
+    @PostMapping("report")
+    public R easyReport(@RequestBody ComActEasyPhotoHandleDTO photoHandleDTO){
+        return comActEasyPhotoService.easyReport(photoHandleDTO);
+    }
+}

--
Gitblit v1.7.1