From 23f8236c1ae1a1668bff373491beb37477865a2d Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期四, 27 五月 2021 14:02:26 +0800
Subject: [PATCH] 网格综治app随手拍

---
 springcloud_k8s_panzhihuazhihuishequ/service_grid/src/main/java/com/panzhihua/service_grid/api/EasyPhotoApi.java |   41 +++++++++++++++++++++++++++++++++++------
 1 files changed, 35 insertions(+), 6 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
index da70f08..932384a 100644
--- 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
@@ -2,11 +2,12 @@
 
 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.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
 
 /**
  *
@@ -20,9 +21,37 @@
 @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 R.ok();
+        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();
     }
 }

--
Gitblit v1.7.1