productclass - 商品分类管理接口
- api/product/productclass/get GET 根据id查询
- api/product/productclass/getlist GET 查询所有
- api/product/productclass/getlistbyparent GET 查询子分类
- api/product/productclass/create POST 新增
- api/product/productclass/update POST 修改
- api/product/productclass/delete POST 根据id列表删除
- api/product/productclass/getbygradelist GET 根据商品等级查询
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | integer | id |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
响应示例
application/json, text/json
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
请求参数
无.
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
响应示例
application/json, text/json
[
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
},
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| parentId | integer | 父分类Id |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
响应示例
application/json, text/json
[
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
},
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
请求示例
application/json, text/json
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
请求示例
application/json, text/json
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
请求参数
请求示例
application/json, text/json
[ 1, 2 ]
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| message | string | 附加信息 |
| status | string | 200:成功; 500:内部错误; 601:卡不可用; 602:卡不存在; 603:卡挂失; 604:卡作废; 605:卡余额不足; 606:卡付款码超时; 607:积分不足; 608:礼品不可用; 701:支付成功; 702:支付确认失败; 703:支付状态未知; 704:付款码超时; 801:流水号重复; 901:未日结; 902:日结进行中; 903:日结中断; 904:日结完成; 905:日结金额发生变化; 1001:无法购买; 1002:已售罄; 1003:支付超时 |
响应示例
application/json, text/json
{
"status": 200,
"message": ""
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| grade | integer | 等级 |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| commissionRate | decimal number | 提点 |
| id | integer | id |
| imagePath | string | 图片路径 |
| name | string | 名称 |
| order | integer | 排序 |
| parentId | integer | 上级分类Id,共三级 |
| path | string | 父级路径 |
| products | [...] | 分类下商品 |
| ┆- barCode | string | 主条码 |
| barCodes | [...] | 条码集合 |
| ┆- canBargain | boolean | 是否可以前台议价 |
| ┆- canDiscount | boolean | 是否可以打折 |
| ┆- canStockControl | boolean | 是否管理库存 |
| ┆- classId | integer | 分类Id |
| ┆- className | string | 分类名 |
| ┆- code | string | 货号 |
| ┆- costPrice | decimal number | 成本价 |
| ┆- id | integer | id |
| images | [...] | 图片路径 |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 拼音缩写 |
| ┆- isChecked | boolean | 是否审核 |
| ┆- length | integer | 品名长度 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- pricingType | string | 0:计数; 1:计重; 2:计数取重 |
| ┆- pricingTypeName | string | 计价方式显示名称 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 商品状态显示名称 |
| ┆- stock | decimal number | 库存 |
| stockControlProducts | [...] | 对应管理库存的商品集合及对应数量 |
| ┆- className | string | 分类名称 |
| ┆- code | string | 货号 |
| ┆- id | integer | id |
| ┆- index | integer | 导入位置 |
| ┆- initial | string | 缩写 |
| ┆- memberPrice | decimal number | 会员价 |
| ┆- name | string | 名称 |
| ┆- price | decimal number | 售价 |
| ┆- qty | decimal number | 数量 |
| ┆- sort | integer | 排序 |
| ┆- unitName | string | 单位名称 |
| ┆- stockControlType | string | 0:普通; 1:分级; 2:分解; 3:组合 |
| ┆- stockControlTypeName | string | 库存类型名称 |
| ┆- supplierId | integer | 供应商Id |
| ┆- supplierName | string | 供应商名称 |
| tagIds | [...] | 商品标签Id集合 |
| tags | [...] | 商品标签集合 |
| ┆- id | integer | id |
| ┆- name | string | 名称 |
| ┆- unitId | integer | 单位Id |
| ┆- unitName | string | 单位名 |
| saleInvisible | boolean | 销售是否显示 |
响应示例
application/json, text/json
[
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
},
{
"parentId": 1,
"path": "",
"name": "",
"saleInvisible": true,
"imagePath": "",
"order": 6,
"commissionRate": 7.0,
"products": [
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
},
{
"initial": "",
"stock": 2.0,
"tagIds": [
1,
2
],
"tags": [
{
"name": "",
"id": 2
},
{
"name": "",
"id": 2
}
],
"supplierId": 3,
"supplierName": "",
"canStockControl": true,
"stockControlType": 0,
"stockControlTypeName": "",
"canDiscount": true,
"canBargain": true,
"stockControlProducts": [
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
},
{
"name": "",
"initial": "",
"code": "",
"price": 4.0,
"memberPrice": 5.0,
"qty": 6.0,
"sort": 7,
"className": "",
"unitName": "",
"index": 10,
"id": 11
}
],
"length": 9,
"images": [
"",
""
],
"isChecked": true,
"index": 11,
"name": "",
"code": "",
"barCode": "",
"barCodes": [
"",
""
],
"pricingType": 0,
"pricingTypeName": "",
"price": 16.0,
"memberPrice": 17.0,
"costPrice": 18.0,
"status": 1,
"statusName": "",
"classId": 20,
"className": "",
"unitId": 22,
"unitName": "",
"id": 24
}
],
"id": 8
}
]