Commit ece0b830 by wkliang

更新文档

parent ab5e7da1
......@@ -24,14 +24,14 @@
| -------- | -------- | ------ | -------------------- |
| page | number | 可选 | 页数 默认 1 |
| limit | number | 可选 | 每页条数 默认 10 |
| types | list | 可选 | 所选类别 默认 [0, 1] |
| types | list | 可选 | 所选类别 默认 [1, 2] |
| keywords | string | 可选 | 关键字 |
#### 参数示例
```javascript
{
"types": [0],
"types": [1],
"keywords": "s",
"page": 1,
"limit": 1
......@@ -51,7 +51,7 @@
"id":7,
"source_id":10001, // 产品来源 id
"product_name":"ssda", // 产品名称
"product_type":0, // 产品类型
"product_type":1, // 产品类型
"product_desc":"0", // 产品描述
"price":0, // 产品价格
"cost":0,
......@@ -79,7 +79,7 @@
| 参数名 | 参数类型 | 必选项 | 备注 |
| ------ | -------- | ------ | -------------------- |
| types | list | 可选 | 所选类别 默认 [0, 1] |
| types | list | 可选 | 所选类别 默认 [1, 2] |
#### 参数示例
......@@ -216,7 +216,7 @@
"id":6,
"source_id":10001,
"product_name":"asdf", // 产品名称
"product_type":1, // 产品类型
"product_type":2, // 产品类型
"product_desc":"0", // 产品描述
"price":0, // 产品价格
"cost":0,
......@@ -229,7 +229,7 @@
"id":7,
"source_id":10001,
"product_name":"ssda",
"product_type":0,
"product_type":1,
"product_desc":"0",
"price":0,
"cost":0,
......@@ -278,7 +278,7 @@
"id":1,
"source_id":10001,
"product_name":"ss", // 产品名称
"product_type":0, // 产品类型
"product_type":1, // 产品类型
"product_desc":"0", // 产品描述
"price":0, // 产品价格
"cost":0,
......@@ -291,7 +291,7 @@
"id":7,
"source_id":10001,
"product_name":"ssda",
"product_type":0,
"product_type":1,
"product_desc":"0",
"price":0,
"cost":0,
......@@ -322,11 +322,11 @@
| id | number | 可选 | 更新产品的主键 如果没有则为创建 |
| source_id | number | 可选 | 产品来源 id 默认 10001 |
| product_name | string | 必选 | 产品名称 |
| product_type | number | 必选 | 产品类型 0: 单产品 1: 组合产品 |
| product_type | number | 必选 | 产品类型 1: 单产品 2: 组合产品 |
| price | number | 可选 | 默认 0 |
| cost | number | 可选 | 默认 0 |
| api | string | 可选 | |
| items | list | 限定必选 | 子产品 id 列表 <br> 如果 product_type 为 1 则必有此项 <br> 如果为 0 则必没有此项 |
| items | list | 限定必选 | 子产品 id 列表 <br> 如果 product_type 为 2 则必有此项 <br> 如果为 1 则必没有此项 |
#### 参数示例
......@@ -334,7 +334,7 @@
{
"source_id": 10001,
"product_name": "testa",
"product_type": 1,
"product_type": 2,
"product_desc": "testa",
"price": 1,
"cost": 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment