添加产品基础信息
#### 简要描述:
- 添加或修改车型基础数据
#### 接口版本:
|版本号|制定人|制定日期|修订日期|
|:---- |:---|:----- |----- |
|1.0.0 |张玉龙 |2020-11-26 |2020-11-26 |
#### 请求URL:
- http://ip:port/semi-api/offer/addOrUpdateOfferProduct
#### 请求方式:
- POST/JSON
#### 请求头:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|Content-Type |是 |string |请求类型: application/json |
#### 请求示例:
```json
{
"id": 3,
"afterTaxPrice": 6700,
"agencyPrice": 6500,
"authorizationPrice": 6500,
"beforeTaxPrice": 6500,
"commercePrice": 6700,
"productCode": "PW1002",
"productEnglishName": "dian guang xi lie",
"productLine": "电光系列",
"productName": "电光哈哈哈2",
"productSpecification": "100*200",
"retailPrice": 6800,
"insuranceDeadline": 3,
"productNo": "123456",
"taxRate": 17
}
```
#### 请求参数:
| 参数名称 | 参数类型 | 备注 | 是否必传 |
| ------------ | ------------ | ------------ | ------------ |
|id|number|主键id(更新必传)| 否|
|afterTaxPrice|number|6700|税后价格 |
|agencyPrice|number|6500| 代理价格|
|authorizationPrice|number|6500|授权价 |
|beforeTaxPrice|number|6500| 税前价格|
|commercePrice|number|6700|电商价格 |
|productCode|string|PW1002|产品编号 |
|productEnglishName|string|dian guang xi lie|英文名 |
|productLine|string|电光系列|产品锡类 |
|productName|string|电光哈哈哈2| 产品名称|
|productSpecification|string|100*200|产品规格 |
|retailPrice|number|6800| 零售价格|
|insuranceDeadline|number|3| 质保期限|
|productNo|number|3| 产品唯一编码|
|taxRate|number|17|税率 |
#### 返回示例:
**正确时返回:**
```json
{
"msg": "操作成功",
"code": 200,
"data": {
"id": 4
}
}
```
**错误时返回:**
```json
{
"msg": "操作失败",
"code": -200,
"data": {}
}
```
#### 返回参数(通用参数)说明:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|code|是 |string | 200 成功 其他失败 |
|msg|是 |string |成功或失败消息内容 |
|data|是 |string | 真实参数 |
#### 返回参数(data)说明:
|参数名|是否必须|类型|说明|
|:---- |:---|:----- |----- |
|id|是 |string |唯一标识 |