From 3ddd851edd88d5e7fa012b6c1b7fa6fd53ef1cb5 Mon Sep 17 00:00:00 2001
From: 张天森 <1292933220@qq.com>
Date: 星期二, 08 十一月 2022 14:26:50 +0800
Subject: [PATCH] 报事报修信息脱敏处理

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComPropertyApi.java |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComPropertyApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComPropertyApi.java
index 336557f..5a2b2a9 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComPropertyApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/ComPropertyApi.java
@@ -2,7 +2,10 @@
 
 import javax.annotation.Resource;
 
+import com.panzhihua.common.model.dtos.user.SysUserFeedbackDTO;
+import com.panzhihua.common.service.user.UserService;
 import io.swagger.annotations.ApiImplicitParam;
+import io.swagger.annotations.ApiParam;
 import org.springframework.web.bind.annotation.GetMapping;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -30,6 +33,8 @@
 public class ComPropertyApi extends BaseController {
     @Resource
     private CommunityService communityService;
+    @Resource
+    private UserService userService;
 
     /**
      * 分页查询所有数据
@@ -50,4 +55,17 @@
     public R detailProperty(@RequestParam("id") Long id) {
         return this.communityService.detailProperty(id);
     }
+
+    @ApiOperation("新增投诉建议或问题留言")
+    @PostMapping("addFeedBack")
+    public R addFeedBack(@RequestBody SysUserFeedbackDTO sysUserFeedbackDTO){
+        return userService.addFeedback(sysUserFeedbackDTO);
+    }
+
+    @ApiOperation("查看自己的投诉建议或问题留言记录")
+    @GetMapping("myFeedBack")
+    public R myFeedBack(@ApiParam("类型:1问题留言2投诉建议") @RequestParam(value = "type",required = false)Integer type){
+        return userService.myFeedBack(this.getLoginUserInfo().getUserId(),type);
+    }
+
 }

--
Gitblit v1.7.1