From 59f58344bbc48b8e43bff6c7b698c4c81cf830ed Mon Sep 17 00:00:00 2001
From: lidongdong <1459917685@qq.com>
Date: 星期五, 01 九月 2023 14:23:22 +0800
Subject: [PATCH] 新增商家评论模块

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java |   99 ++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 96 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
index aac355c..d65fe99 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/service/community/CommunityService.java
@@ -11416,7 +11416,7 @@
      * @param grantIntegral
      * @return
      */
-    @PostMapping("/grantIntegral")
+    @PostMapping("/VolunteerActivitiesPeople/grantIntegral")
     public R grantIntegral(@RequestBody GrantIntegral grantIntegral);
 
     /**************************************************************************************************************
@@ -11511,7 +11511,7 @@
     public R  VolunteerIntegralMerchantUpdateById(@RequestBody VolunteerIntegralMerchantVO vimVO);
 
 
-    @PostMapping("/unmount")
+    @PostMapping("/VolunteerIntegralMerchant/unmount")
     public R  VolunteerIntegralMerchantUnmount(@RequestBody VolunteerIntegralMerchantVO vimVO);
 
     @DeleteMapping("/VolunteerIntegralMerchant/deleteById")
@@ -11541,7 +11541,7 @@
                      @RequestParam(value = "userName", required = false) String userName,
                      @RequestParam(value = "communityId", required = false) String communityId,
                      @RequestParam(value = "userId", required = false) String userId,
-                     @RequestParam(value = "orderType", required = true) String orderType);
+                     @RequestParam(value = "orderType", required = false) String orderType);
 
     /**
      * 查询详情
@@ -11558,6 +11558,14 @@
      */
     @PostMapping("/VolunteerIntegralMerchant/order/insertData")
     public R insertData(@RequestBody VolunteerCreditsExchangeVO item);
+
+    /**
+     * 新增用户购买商家商品记录
+     * @param
+     * @return
+     */
+    @PostMapping("/VolunteerIntegralMerchant/order/insertMerchantData")
+    public R insertMerchantData(@RequestBody VolunteerCreditsExchangeVO item);
 
     /**
      * 更新
@@ -11628,4 +11636,89 @@
     @GetMapping("/VolunteerMerchant/getById")
     public R volunteerMerchantGetById(@RequestParam("id") String id);
 
+    /**
+     * 是否是商家
+     * @param userId
+     * @return
+     */
+    @GetMapping("/VolunteerMerchant/isMerchant")
+    public R isMerchant(@RequestParam("userId") String userId);
+
+
+    /**
+     * 社区取消订单
+     * @param id
+     * @return
+     */
+    @GetMapping("/VolunteerIntegralMerchant/order/communityCancellation")
+    public R communityCancellation(@RequestParam("id") String id);
+
+
+
+
+
+    /****************************************************************************************************************
+     *
+     *                      商家评论
+     *
+     ***************************************************************************************************************/
+
+    /**
+     * 商家评论分页查询
+     * @param
+     * @return
+     */
+    @GetMapping("/VolunteerMerchant/evaluate/getList")
+    public R volunteerMerchantGetList(@RequestParam("pageNum") int pageNum,
+                                     @RequestParam("pageSize") int pageSize,
+                                     @RequestParam("communityId") String communityId,
+                                     @RequestParam("merchantId") String merchantId);
+
+    /**
+     * 商家评论获取详情
+     * @param id
+     * @return
+     */
+    @GetMapping("/VolunteerMerchant/evaluate/getData")
+    public R volunteerMerchantGetData(@RequestParam("id") String id);
+
+    /**
+     * 商家评论新增评价
+     * @return
+     */
+    @PostMapping("/VolunteerMerchant/evaluate/insert")
+    public R volunteerMerchantInsert(@RequestBody VolunteerMerchantEvaluateVO item);
+
+    /**
+     * 商家评论更新评价
+     * @return
+     */
+    @PostMapping("/VolunteerMerchant/evaluate/update")
+    public R volunteerMerchantUpdate(@RequestBody VolunteerMerchantEvaluateVO item);
+
+
+    /**
+     * 商家评论删除评价
+     * @param id
+     * @return
+     */
+    @DeleteMapping("/VolunteerMerchant/evaluate/delete")
+    public R volunteerMerchantDelete(@RequestParam("id") String id);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 }

--
Gitblit v1.7.1