From ce257931b9b536a6c530cf17dceb1e9fd9caa042 Mon Sep 17 00:00:00 2001
From: Null <281575458@qq.com>
Date: 星期二, 16 三月 2021 17:53:09 +0800
Subject: [PATCH] 车辆登记小程序端接口

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java
index d31ffea..f0bf94e 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/CommunityApi.java
@@ -174,9 +174,9 @@
     }
 
 
-    @ApiOperation(value = "车辆登记",response = ComMngVolunteerMngAppletsVO.class)
-    @PostMapping("car/add")
-    public R addComMngCarApplet(@RequestBody ComMngCarAppletDTO comMngCarAppletDTO) {
+    @ApiOperation(value = "车辆登记")
+    @PostMapping("car/register")
+    public R addComMngCar(@RequestBody ComMngCarAppletDTO comMngCarAppletDTO) {
         LoginUserInfoVO loginUserInfo = this.getLoginUserInfo();
         Long communityId = loginUserInfo.getCommunityId();
         if (null!=communityId && 0!=communityId) {
@@ -185,9 +185,15 @@
             comMngCarAppletDTO.setUserName(loginUserInfo.getName());
             comMngCarAppletDTO.setUserId(loginUserInfo.getUserId());
             comMngCarAppletDTO.setMobile(loginUserInfo.getPhone());
+            comMngCarAppletDTO.setSource(1);
         }
         return communityService.addComMngCarApplet(comMngCarAppletDTO);
     }
 
+    @ApiOperation(value = "登记车辆列表",response = ComMngCarVO.class)
+    @GetMapping("car/list")
+    public R comMngCarList() {
+        return communityService.userComMngCarList(this.getUserId());
+    }
 }
 

--
Gitblit v1.7.1