## 保存
#### 接口URL
> {{baseUrl}}/cms/goods/save
#### 请求方式
> POST
#### Content-Type
> json
#### 请求Header参数
| 参数 | 示例值 | 是否必填 | 参数描述 |
| :-------- | :----- | :----- | :---- |
| Content-Type | application/json | 选填 | - |
#### 请求Body参数
```javascript
{
"id": 0,
"bn": "1001-001",
"name": "T恤 欧飞鸿 飞 白色",
"brief": "离开地球表面得靠买醉",
"price": 0,
"costPrice": 0,
"mktPrice": 0,
"attachmentId": 142,
"attachment": {
"id": 142,
"path": "attachment/image/156716667383442.jpg"
},
"goodsAttachments": [
{
"id": 143,
"path": "attachment/image/156716667819081.jpg"
},
{
"id": 144,
"path": "attachment/image/156716668380022.jpg"
}
],
"goodsCatId": [
4,
11
],
"goodsTypeId": 3,
"goodsType": {
"specs": [
{
"id": 12,
"name": "颜色",
"sort": 1,
"goodsSpecValues": [
{
"id": 28,
"value": "银",
"sort": 0,
"checked": false
},
{
"id": 29,
"value": "白",
"sort": 0,
"checked": true
},
{
"id": 30,
"value": "玫瑰金",
"sort": 0
}
],
"values": [
{
"id": 28,
"value": "银",
"sort": 0,
"checked": false
},
{
"id": 29,
"value": "白",
"sort": 0,
"checked": true
},
{
"id": 30,
"value": "玫瑰金",
"sort": 0
}
]
},
{
"id": 14,
"name": "产地",
"sort": 3,
"goodsSpecValues": [
{
"id": 34,
"value": "中国大陆",
"sort": 0,
"checked": true
},
{
"id": 35,
"value": "越南",
"sort": 0,
"checked": true
},
{
"id": 36,
"value": "新加坡",
"sort": 0
}
],
"values": [
{
"id": 34,
"value": "中国大陆",
"sort": 0,
"checked": true
},
{
"id": 35,
"value": "越南",
"sort": 0,
"checked": true
},
{
"id": 36,
"value": "新加坡",
"sort": 0
}
]
}
],
"params": [
{
"id": 5,
"name": "尺寸",
"type": "radio",
"values": "S"
}
]
},
"openSpec": true,
"products": [
{
"id": 1,
"isDefault": true,
"attachment": {
"id": 0,
"path": ""
},
"sn": "1001-001",
"specsJson": "产地:中国大陆,颜色:白",
"stock": "10",
"price": "49",
"costPrice": "20",
"mktPrice": "149"
},
{
"id": 2,
"isDefault": false,
"attachment": {
"id": 0,
"path": ""
},
"sn": "1001-002",
"specsJson": "产地:越南,颜色:白",
"stock": "10",
"price": "49",
"costPrice": "20",
"mktPrice": "149"
}
],
"defaultProduct": 1,
"brandId": 17,
"isNomalVirtual": 1,
"marketable": true,
"stock": 0,
"freezeStock": 0,
"weight": 100,
"unit": "g",
"intro": "<p>好衣服</p>",
"specsJson": "",
"paramsJson": "",
"commentCount": 0,
"viewCount": 0,
"buyCount": 0,
"upTime": 0,
"downTime": 0,
"sort": 0,
"isRecommend": true,
"isHot": true,
"labelIds": "",
"newSpec": "",
"gradePrice": {
"1": 39,
"2": 29
}
}
```
## 删除
#### 接口URL
> {{baseUrl}}/cms/goods/delete
#### 请求方式
> POST
#### Content-Type
> json
#### 请求Header参数
| 参数 | 示例值 | 是否必填 | 参数描述 |
| :-------- | :----- | :----- | :---- |
| Content-Type | application/json | 选填 | - |
#### 请求Body参数
```javascript
{
"ids":[3]
}
```
## 明细
#### 接口URL
> {{baseUrl}}/cms/goods/get
#### 请求方式
> POST
#### Content-Type
> json
#### 请求Header参数
| 参数 | 示例值 | 是否必填 | 参数描述 |
| :-------- | :----- | :----- | :---- |
| Content-Type | application/json | 选填 | - |
#### 请求Body参数
```javascript
{
"id": 2
}
```
## 列表
#### 接口URL
> {{baseUrl}}/cms/goods/list
#### 请求方式
> POST
#### Content-Type
> json
#### 请求Header参数
| 参数 | 示例值 | 是否必填 | 参数描述 |
| :-------- | :----- | :----- | :---- |
| Content-Type | application/json | 选填 | - |
#### 请求Body参数
```javascript
{
"searchKey": {},
"offset": 0,
"limit": 10
}
```