接口描述:
接口版本:
| 版本号 |
制定人 |
制定日期 |
修订日期 |
备注 |
| 1.0.0 |
朱小 |
2020-03-23 |
2020-03-23 |
新增 |
| 1.0.0 |
朱小 |
2020-03-23 |
2020-07-02 |
修改 |
请求URL:
- 商户接口URL:/api/mchGoods/list
请求方式:
请求参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| page |
是 |
string |
页号 |
| limit |
是 |
string |
页码 |
| mchId |
是 |
string |
商户ID |
| industryType |
是 |
string |
所属行业 1-餐饮商品 2-电商商品 |
| goodsId |
否 |
string |
商品ID |
| goodsName |
否 |
string |
商品名称 |
| categoryId |
否 |
string |
商品分类ID |
| goodsModule |
否 |
string |
商品所属模块,0-普通商品 1-新品 2-热卖 3-促销 4-限时抢购 5-会员专享 |
| sortColumn |
否 |
string |
排序字段,1-价格,2-销量 |
| sortType |
否 |
string |
排序顺序,1-降序,2-升序 |
| floorPrice |
否 |
string |
价格区间,低价设置 |
| ceilPrice |
否 |
string |
价格区间,高价设置 |
| createTimeStart |
否 |
string |
时间区间,开始时间 |
| createTimeEnd |
否 |
string |
时间区间,结束时间 |
返回参数说明:
| 参数名 |
类型 |
说明 |
| code |
int |
0 |
| msg |
string |
success |
| data |
json |
查询成功返回list数据 |
| count |
int |
list总数 |
返回数据说明:
| 参数名 |
类型 |
说明 |
| goodsId |
Long |
商品ID |
| goodsName |
String |
商品名称 |
| categoryId |
Long |
商品分类ID |
| categoryName |
String |
商品分类名称 |
| subGoodsId |
String |
子商品ID |
| industryType |
int |
所属行业 1-餐饮商品 2-电商商品 |
| goodsType |
int |
商品类型 1-单一商品 2-组合商品 |
| goodsModule |
int |
商品所属模块,0-普通商品 1-新品 2-热卖 3-促销 4-限时抢购 5-会员专享 |
| goodsDesc |
String |
商品描述 |
| cellingPrice |
Long |
商品售价,单位:分 |
| buyingPrice |
Long |
商品进价,单位:分 |
| memberPrice |
Long |
商品会员价,单位:分 |
| unit |
String |
单位 |
| stockLimitType |
int |
是否限制库存 1-不限库存 2-限制 |
| stockNum |
Long |
库存数量 |
| actualSaleNum |
Long |
实际销量 |
| virtualSaleNum |
Long |
虚拟数量 |
| browseNumber |
Long |
浏览量 |
| evaluationNumber |
Long |
评价数 |
| producedBeginTime |
String |
生产日期 |
| expiration |
int |
保质期,单位:天 |
| supplier |
String |
供应商 |
| imgPathMain |
String |
主图图片路径 |
| imgPathMore |
String |
其他图片路径,最多四张 |
| status |
int |
状态 0-下架 1-上架 2-售罄 |
| brand |
String |
品牌 |
| goodsPropsType |
int |
是否添加属性 0-未添加 1-已添加,详见属性关联表 |
| storeLimitType |
int |
是否限制门店 0-不限门店 1-限制门店,详见门店关联表 |
| mchId |
Long |
所属商户ID |
| isvId |
Long |
服务商ID |
| createTime |
string |
创建时间 |
| updateTime |
string |
更新时间 |
返回示例:
{
"code": 0,
"msg": "success",
"data": [
{
"goodsId": 1001,
"goodsName": "锅包肉",
"categoryId": 1000,
"categoryName": "东北菜",
"subGoodsId": null,
"industryType": 1,
"goodsType": 1,
"goodsModule": 0,
"goodsDesc": null,
"cellingPrice": 58,
"buyingPrice": 30,
"memberPrice": 52,
"unit": "份",
"stockLimitType": 1,
"stockNum": null,
"actualSaleNum": 500,
"virtualSaleNum": 800,
"browseNumber": 1687,
"evaluationNumber": 425,
"producedBeginTime": null,
"expiration": null,
"supplier": null,
"imgPathMain": null,
"imgPathMore": null,
"status": 1,
"brand": null,
"goodsProps": null,
"storeLimitType": 0,
"mchId": 20000000,
"isvId": 40000000,
"createTime": "2020-03-24 15:43:54",
"updateTime": "2020-03-24 15:44:17"
},
{
"goodsId": 1000,
"goodsName": "火锅鸡",
"categoryId": 1001,
"categoryName": "沧州菜",
"subGoodsId": null,
"industryType": 1,
"goodsType": 1,
"goodsModule": 0,
"goodsDesc": null,
"cellingPrice": 108,
"buyingPrice": 50,
"memberPrice": 98,
"unit": "份",
"stockLimitType": 1,
"stockNum": null,
"actualSaleNum": 300,
"virtualSaleNum": 500,
"browseNumber": 1254,
"evaluationNumber": 223,
"producedBeginTime": null,
"expiration": null,
"supplier": null,
"imgPathMain": null,
"imgPathMore": null,
"status": 1,
"brand": null,
"goodsProps": null,
"storeLimitType": 0,
"mchId": 20000000,
"isvId": 40000000,
"createTime": "2020-03-24 15:40:56",
"updateTime": "2020-03-24 15:44:23"
}
],
"count": 2
}
文档更新时间: 2021-10-26 09:11 作者:刘正阳