From 55b84864019585f77a303715e02d564bce55159b Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期三, 18 十月 2023 14:15:13 +0800
Subject: [PATCH] 金汇商城商品模块

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java |  123 ++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 120 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
index e2c3961..7a01209 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/JinHuiCommnuityApi.java
@@ -19,6 +19,7 @@
 import io.swagger.annotations.Api;
 import io.swagger.annotations.ApiOperation;
 import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.lang3.StringUtils;
 import org.springframework.validation.annotation.Validated;
 import org.springframework.web.bind.annotation.*;
 
@@ -318,6 +319,20 @@
     }
 
 
+    /**
+     * 空间预约分类分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "空间预约分类分页查询", response = JinhuiInterspaceTypeVO.class)
+    @GetMapping("/interspaceTypeGetList")
+    public R interspaceTypeGetList(@RequestParam("pageNum") int pageNum,
+                                   @RequestParam("pageSize") int pageSize)
+    {
+        return jinhuiCommunityService.interspaceTypeGetList(pageNum,pageSize);
+    }
+
+
     /***************************************************************************************************************
      *
      *
@@ -332,12 +347,16 @@
      * @return
      */
     @ApiOperation(value = "空间预约申请分页", response = JinhuiInterspaceApplyForVO.class)
-    @GetMapping("//applyFor/getList")
+    @GetMapping("/applyFor/getList")
     public R applyForGetList(@RequestParam("pageNum") int pageNum,
                              @RequestParam("pageSize") int pageSize,
                              @RequestParam(value = "intendantType", required = false) String intendantType,
-                             @RequestParam(value = "state", required = false) String state) {
-        return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType, state);
+                             @RequestParam(value = "state", required = false) String state,
+                             @RequestParam(value = "interspaceTime",required = false) String interspaceTime,
+                             @RequestParam(value = "subscribeTimeFrame",required = false) String subscribeTimeFrame,
+                             @RequestParam(value = "interspaceId",required = false) String  interspaceId) {
+        return jinhuiCommunityService.applyForGetList(pageNum, pageSize, intendantType,
+                state,interspaceTime,subscribeTimeFrame,interspaceId);
     }
 
     /**
@@ -390,9 +409,107 @@
     }
 
 
+/******************************************************************************************************************
+ *
+ *
+ *                             金汇微心愿
+ *
+ *
+ ******************************************************************************************************************/
+    /**
+     * 分页查询
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿列表", response = JinhuiMicroVolunteeringVO.class)
+    @GetMapping("/volunteering/getList")
+    public R volunteeringGetList(@RequestParam("pageNum") int pageNum,
+                                 @RequestParam("pageSize") int pageSize,
+                                 @RequestParam(value = "state", required = false)String state)
+    {
+        return jinhuiCommunityService.volunteeringGetList(pageNum,pageSize,getUserId()+"",state);
+    }
+
+    /**
+     * 详情
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿详情", response = JinhuiMicroVolunteeringVO.class)
+    @GetMapping("/volunteering/getDetails")
+    public R volunteeringGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.volunteeringGetDetails(id);
+    }
+    /**
+     * 新增
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿新增")
+    @PostMapping("/volunteering/addData")
+    public R volunteeringAddData(@RequestBody JinhuiMicroVolunteeringVO item)
+    {
+        item.setUserId(getUserId()+"");
+        return jinhuiCommunityService.volunteeringAddData(item);
+    }
+
+    /**
+     * 编辑
+     * @param item
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿编辑")
+    @PostMapping("/volunteering/editData")
+    public R volunteeringEditData(@RequestBody JinhuiMicroVolunteeringVO item)
+    {
+        return jinhuiCommunityService.volunteeringEditData(item);
+    }
+
+    /**
+     * 删除
+     * @param id
+     * @return
+     */
+    @ApiOperation(value = "金汇微心愿删除")
+    @DeleteMapping("/volunteering/expurgateData")
+    public R volunteeringExpurgateData(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.volunteeringExpurgateData(id);
+    }
 
 
+    /*********************************************************************************************************
+     *
+     *
+     *            金汇商城商品
+     *
+     *
+     *********************************************************************************************************/
+    /**
+     * 分页查询
+     *
+     * @param
+     * @return
+     */
+    @ApiOperation(value = "金汇商城商品列表表", response = JinhuiShoppingVO.class)
+    @GetMapping("/shoppingGetList")
+    public R shoppingGetList(@RequestParam("pageNum") int pageNum,
+                             @RequestParam("pageSize") int pageSize,
+                             @RequestParam(value = "goodName", required = false) String goodName,
+                             @RequestParam(value = "goodType", required = false) String goodType,
+                             @RequestParam(value = "id", required = false) String id)
+    {
+        return jinhuiCommunityService.shoppingGetList(pageNum,pageSize,goodName,goodType,id);
+    }
 
 
+    @ApiOperation(value = "金汇商城商品详情", response = JinhuiShoppingVO.class)
+    @GetMapping("/shoppingGetDetails")
+    public R shoppingGetDetails(@RequestParam("id") String id)
+    {
+        return jinhuiCommunityService.shoppingGetDetails(id);
+    }
+
 
 }

--
Gitblit v1.7.1