质保申请&修改

#### 简要描述: - 质保申请 #### 接口版本: |版本号|制定人|制定日期|修订日期| |:---- |:---|:----- |----- | |1.0.0 |张玉龙 |2020-11-30 |2020-11-30 | #### 请求URL: - http://ip:port/semi-api/warranty/addOrUpdateWarranty #### 请求方式: - POST/JSON #### 请求头: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |Content-Type |是 |string |请求类型: application/json | #### 请求示例: ```json { "carOwnerName": "测试客户2", "mobile": "18811110000", "licensePlateNumber": "京A676879", "vehicleIdentificationNumber": "1232323232131", "carType": "A6", "carBrand":"奥迪", "productCode": "PW1004", "productEnglishName": "dian guang xi lie", "productLine": "电光系列", "productName": "电光哈哈哈4", "productNo": "123323232323", "dealerCode": "JXS00022", "dealerName": "滴答滴答", "deliveryDate": "2020-11-30", "warrantyFile": { "constructionFlank": "/111222/2222/jpg", "constructionFlank45": "/111222/2223/jpg", "constructionFront": "/111222/2224/jpg", "constructionFthreeFourths": "/111222/2225/jpg", "constructionRear": "/111222/2226/jpg", "drivingLicense": "/111222/2227/jpg", "label": "/111222/2229/jpg", "preconstructionFront": "/111222/2228/jpg" } } ``` #### 请求参数: | 参数名称 | 参数类型 | 是否必传 | 备注 | | ------------ | ------------ | ------------ | ------------ | |carOwnerName|string|是| 车主姓名| |mobile|string|是| 车主电话| |licensePlateNumber|string|是|车牌号 | |vehicleIdentificationNumber|string|是|车架号 | |carType|string|是|车型名称 | |carBrand|string|是|品牌 | |productCode|string|是|产品编码 | |productEnglishName|string|是|产品英文名称 | |productLine|string|是| 产品系列| |productName|string|是|产品名称 | |productNo|string|是|产品唯一编号 | |dealerCode|string|是|经销商编码 | |dealerName|string|是|经销商名称 | |deliveryDate|string|是|交车时间 | |warrantyFile|object|是|质保文件 | #### 请求参数: warrantyFile 对象 | 参数名称 | 参数类型 | 是否必传 | 备注 | | ------------ | ------------ | ------------ | ------------ | |constructionFlank|string|是| 施工后(正面)| |constructionFlank45|string|是| 施工后(斜侧45度)| |constructionFront|string|是|施工后(正面) | |constructionFthreeFourths|string|是| 施工后(四分之三侧面)| |constructionRear|string|是|施工后(后面) | |drivingLicense|string|是| 行驶证| |label|string|是| 包装标签| |preconstructionFront|string|是|施工前(正面) | #### 返回示例: **正确时返回:** ```json { "msg": "操作成功", "code": 200, "data": { "id": 87 } } ``` **错误时返回:** ```json { "msg": "请求失败", "code": -200, "data": {} } ``` #### 返回参数(通用参数)说明: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |code|是 |string | 200 成功 其他失败 | |msg|是 |string |成功或失败消息内容 | |data|是 |string | 真实参数 | #### 返回参数(data)说明: |参数名|是否必须|类型|说明| |:---- |:---|:----- |----- | |id|是 |string | 唯一标识 |