From d2d6e44f8c8996586e8a2265f46e0f6f9446edaf Mon Sep 17 00:00:00 2001
From: luo <2855143437@qq.com>
Date: 星期三, 31 一月 2024 14:25:06 +0800
Subject: [PATCH] 1.31

---
 DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CarController.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CarController.java b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CarController.java
index ad111ec..d4fb3f3 100644
--- a/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CarController.java
+++ b/DriverIGOTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/api/CarController.java
@@ -101,8 +101,8 @@
     @PostMapping("/api/car/addCar")
     @ApiOperation(value = "添加车辆【1.0】", tags = {"司机端-个人中心"}, notes = "")
     @ApiImplicitParams({
-            @ApiImplicitParam(value = "车辆型号id", name = "modelId", required = true, dataType = "int"),
-            @ApiImplicitParam(value = "车辆id", name = "id", required = true, dataType = "int"),
+            @ApiImplicitParam(value = "车辆型号id", name = "modelId", required = false, dataType = "int"),
+            @ApiImplicitParam(value = "车辆id", name = "id", required = false, dataType = "int"),
             @ApiImplicitParam(value = "车辆颜色", name = "color", required = true, dataType = "string"),
             @ApiImplicitParam(value = "车牌号", name = "licensePlate", required = true, dataType = "string"),
             @ApiImplicitParam(value = "年审日期(需要格式化)", name = "time", required = false, dataType = "string"),
@@ -113,18 +113,21 @@
             @ApiImplicitParam(value = "保险照片", name = "insurancePhoto", required = false, dataType = "string"),
             @ApiImplicitParam(value = "保险到期时间(yyyy-MM-dd)", name = "commercialInsuranceTime", required = false, dataType = "string"),
             @ApiImplicitParam(value = "人车合影照片", name = "peopleAndCarsPhone", required = false, dataType = "string"),
+            @ApiImplicitParam(value = "其他品牌", name = "otherBrand", required = false, dataType = "string"),
+            @ApiImplicitParam(value = "其他型号", name = "otherModel", required = false, dataType = "string"),
+//            @ApiImplicitParam(value = "其他颜色", name = "otherColor", required = false, dataType = "string"),
             @ApiImplicitParam(name = "Authorization", value = "Bearer +token", required = false, dataType = "String", paramType = "header", defaultValue = "Bearer eyJhbGciOiJIUzUxMiJ9.....")
     })
     public ResultUtil addCar(Integer modelId, String color, String licensePlate, Date time, String drivingLicenseNumber, String drivingLicensePhoto,
                              String drivingLicenseEndTime, String carPhoto, String insurancePhoto, String commercialInsuranceTime,
-                             String peopleAndCarsPhone, HttpServletRequest request,Integer id, Integer language){
+                             String peopleAndCarsPhone, HttpServletRequest request,Integer id, Integer language,String otherBrand,String otherModel){
         try {
             Integer uid = driverService.getUserIdFormRedis(request);
             if(null == uid){
                 return ResultUtil.tokenErr();
             }
             return carService.addCar(modelId, color, licensePlate, time, drivingLicenseNumber, drivingLicensePhoto, drivingLicenseEndTime, carPhoto, insurancePhoto
-                    , commercialInsuranceTime, uid,id, peopleAndCarsPhone, language);
+                    , commercialInsuranceTime, uid,id, peopleAndCarsPhone, language,otherBrand,otherModel);
         }catch (Exception e){
             e.printStackTrace();
             return ResultUtil.runErr();

--
Gitblit v1.7.1