product - 商品接口
- api/product/get GET 根据Id获取
- api/product/getlist GET 获取列表
- api/product/getproductlist GET 根据商品Id列表获取列表
- api/product/getuncheckedlist GET 获取审核列表
- api/product/getstockproductlist GET 获取库存商品列表
- api/product/getproductandstocklist GET 获取商品及库存商品列表
- api/product/getlistbyclass GET 根据分类获取列表
- api/product/getstatuslist GET 获取商品状态列表
- api/product/getpricingtypelist GET 获取商品计价方式列表
- api/product/getproductstockcontroltypelist GET 获取商品管理方式列表
- api/product/create POST 新增
- api/product/update POST 修改
- api/product/check POST 审核
- api/product/checkall POST 全部审核
- api/product/delete POST 删除
- api/product/import POST 批量导入
- api/product/importproducts POST 导入商品
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| id | integer | id |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
响应示例
application/json, text/json
{
"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
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| classId | integer | |
| keyword | string | |
| pageIndex | integer | |
| pageSize | integer | |
| status | integer | |
| type | integer | 1普通,2母级,3子级 |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- 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 | 单位名 |
| pageIndex | integer | |
| pageSize | integer | |
| sumData | {...} | |
| ┆- 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 | 单位名 |
| totalCount | integer |
响应示例
application/json, text/json
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| productIds | string |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
响应示例
application/json, text/json
[
{
"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
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| classId | integer | |
| keyword | string | |
| pageIndex | integer | |
| pageSize | integer | |
| type | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- 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 | 单位名 |
| pageIndex | integer | |
| pageSize | integer | |
| sumData | {...} | |
| ┆- 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 | 单位名 |
| totalCount | integer |
响应示例
application/json, text/json
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| keyword | string | |
| pageIndex | integer | |
| pageSize | integer | |
| productClassId | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| ┆- 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 | 单位名 |
| pageIndex | integer | |
| pageSize | integer | |
| sumData | {...} | |
| ┆- 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 | 单位名 |
| totalCount | integer |
响应示例
application/json, text/json
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| keyword | string | |
| pageIndex | integer | |
| pageSize | integer | |
| productClassId | integer |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| data | [...] | |
| images | [...] | 图片路径 |
| ┆- length | integer | 名称长度 |
| ┆- productClass | string | 商品分类 |
| ┆- productCode | string | 商品货号 |
| ┆- productId | integer | 商品Id |
| ┆- productName | string | 商品名称 |
| ┆- productUnit | string | 商品单位 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 状态名称 |
| ┆- stockProductCode | string | 库存商品货号 |
| ┆- stockProductId | integer | 库存商品Id |
| ┆- stockProductName | string | 库存商品名称 |
| ┆- stockProductUnit | string | 库存商品单位 |
| ┆- stockRelQty | decimal number | 关系数量 |
| pageIndex | integer | |
| pageSize | integer | |
| sumData | {...} | |
| images | [...] | 图片路径 |
| ┆- length | integer | 名称长度 |
| ┆- productClass | string | 商品分类 |
| ┆- productCode | string | 商品货号 |
| ┆- productId | integer | 商品Id |
| ┆- productName | string | 商品名称 |
| ┆- productUnit | string | 商品单位 |
| ┆- status | string | 1:在售; 2:停购; 4:停售; 8:停售 |
| ┆- statusName | string | 状态名称 |
| ┆- stockProductCode | string | 库存商品货号 |
| ┆- stockProductId | integer | 库存商品Id |
| ┆- stockProductName | string | 库存商品名称 |
| ┆- stockProductUnit | string | 库存商品单位 |
| ┆- stockRelQty | decimal number | 关系数量 |
| totalCount | integer |
响应示例
application/json, text/json
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| classId | string |
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
响应示例
application/json, text/json
[
{
"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
}
]
请求参数
无.
响应参数
响应示例
application/json, text/json
[
{
"key": 1,
"value": ""
},
{
"key": 1,
"value": ""
}
]
请求参数
无.
响应参数
响应示例
application/json, text/json
[
{
"key": 1,
"value": ""
},
{
"key": 1,
"value": ""
}
]
请求参数
无.
响应参数
响应示例
application/json, text/json
[
{
"key": 1,
"value": ""
},
{
"key": 1,
"value": ""
}
]
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
请求示例
application/json, text/json
{
"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
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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": ""
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
请求示例
application/json, text/json
{
"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
}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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": ""
}
请求参数
无.
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
{}
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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": ""
}
请求参数
无.
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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": ""
}
请求参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 | 单位名 |
请求示例
application/json, text/json
[
{
"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
}
]
响应参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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": ""
}