From 54ad966d0b142c97fc659263b51d1ea5d7b5c7c6 Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期五, 28 五月 2021 16:17:08 +0800
Subject: [PATCH] 修改bug

---
 springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DiscussApi.java |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DiscussApi.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DiscussApi.java
index e9153b3..5279264 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DiscussApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DiscussApi.java
@@ -145,11 +145,32 @@
     /**
      * 一起议-详情 小程序
      * @param id 主键
+     * @param userId 用户主键
      * @return ComActDiscussVO
      */
     @PostMapping("detaildiscussapplets")
-    public R detailDiscussApplets(@RequestParam("id") Long id){
-        return comActDiscussService.detailDiscussApplets(id);
+    public R detailDiscussApplets(@RequestParam("id") Long id,@RequestParam("userId")Long userId){
+        return comActDiscussService.detailDiscussApplets(id,userId);
+    }
+
+    /**
+     * 一起议-投票
+     * @param comActDiscussOptionUserDTO 投票信息
+     * @return 投票结果
+     */
+    @PostMapping("adddiscussoptionuser")
+    public R addDiscussOptionUser(@RequestBody ComActDiscussOptionUserDTO comActDiscussOptionUserDTO){
+        return comActDiscussService.addDiscussOptionUser(comActDiscussOptionUserDTO);
+    }
+
+    /**
+     * 一起议-评论-点赞、取消点赞
+     * @param comActDiscussUserDTO 评论点赞
+     * @return 点赞结果
+     */
+    @PostMapping("putdiscusscommentuser")
+    public R putDiscussCommentUser(@RequestBody ComActDiscussCommentUserDTO comActDiscussUserDTO){
+        return comActDiscussService.putDiscussCommentUser(comActDiscussUserDTO);
     }
 
 }

--
Gitblit v1.7.1