接口描述:
接口版本:
| 版本号 |
制定人 |
制定日期 |
修订日期 |
| 1.0.0 |
庞晓宇 |
2021-07-16 |
2021-07-16 |
请求URL:
- 商户接口URL:/api/mchGoods/get
请求方式:
请求参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| goodsId |
否 |
string |
商品ID |
返回参数说明:
| 参数名 |
类型 |
说明 |
| code |
int |
0 |
| msg |
string |
success |
| data |
json |
查询成功返回json数据 |
返回数据说明:
| 参数名 |
类型 |
说明 |
| goodsId |
long |
商品ID |
| goodsName |
string |
商品名称 |
| goodsCode |
string |
商品代码 |
| categoryId |
string |
分类ID |
| categoryName |
string |
分类名称 |
| subGoodsId |
string |
子商品ID |
| industryType |
byte |
所属行业:1-餐饮商品 2-电商商品 |
| goodsType |
byte |
商品类型: 1-单一商品 2-电商商品 |
| goodsModule |
byte |
商品所属模块,0-普通商品 1-新品 2-热卖 3-促销 4-限时抢购 5-会员专享 |
| goodsDesc |
string |
商品描述 |
| graphicDesc |
string |
图文详情 |
| cellingPrice |
long |
商品原价 单位:分 |
| currentPrice |
long |
商品现价 单位:分 |
| buyingPrice |
long |
商品进价 单位:分 |
| memberPrice |
long |
会员价 单位:分 |
| unit |
string |
单位 |
| stockLimitType |
byte |
是否限制库存 1-不限库存 2-限制 |
| stockNum |
long |
库存数量 |
| actualSaleNum |
long |
实际销量 |
| virtualSaleNum |
long |
虚拟销量 |
| browseNumber |
long |
浏览量 |
| evaluationNumber |
long |
评价数 |
| producedBeginTime |
date |
生产日期 |
| expiration |
int |
保质期,单位:天 |
| supplier |
string |
供应商 |
| imgPathMain |
string |
主图图片路径 |
| imgPathMore |
string |
其他图片路径,最多四张 |
| status |
byte |
状态 0-下架 1-上架 2-售罄 |
| brand |
string |
品牌 |
| goodsTag |
string |
商品标签 |
| barCode |
string |
商品条码 |
| isRecommend |
byte |
是否为精品推荐商品,0-否 1-是 |
| recommendSort |
int |
精品推荐商品排序值 |
| goodsPropsType |
byte |
是否添加属性 0-未添加 1-已添加,详见属性关联表 |
| storeLimitType |
byte |
是否限制门店 0-不限门店 1-限制门店,详见门店关联表 |
| miniGoodsId |
long |
小程序商品库的商品ID |
| miniAuditId |
long |
小程序商品库的商品审核单ID |
| mchId |
long |
商户ID |
| isvId |
long |
服务商ID |
| remark |
否 |
string |
| createTime |
string |
创建时间 |
| updateTime |
string |
更新时间 |
返回示例:
{
"code" : 0,
"msg" : "success",
"data" : {
"isRecommend" : 0,
"ps" : null,
"goodsId" : 2,
"browseNumber" : 0,
"stockLimitType" : 1,
"virtualSaleNum" : null,
"categoryName" : "主食",
"actualSaleNum" : 0,
"buyingPrice" : 4000,
"industryType" : 1,
"recommendSort" : 1000000,
"supplier" : null,
"stockNum" : 999,
"cellingPrice" : 15900,
"evaluationNumber" : 0,
"brand" : null,
"goodsName" : "清江鱼",
"goodsDesc" : null,
"mchId" : 20000008,
"imgPathMain" : null,
"memberPrice" : null,
"miniGoodsId" : null,
"currentPrice" : 9900,
"goodsPropsType" : 0,
"goodsTag" : null,
"updateTime" : "2021-07-16 15:03:38",
"graphicDesc" : null,
"miniAuditId" : null,
"barCode" : "3613161311354531",
"goodsType" : 1,
"unit" : null,
"createTime" : "2021-07-16 15:03:38",
"subGoodsId" : null,
"storeLimitType" : 0,
"goodsModule" : "0",
"producedBeginTime" : null,
"expiration" : null,
"isvId" : 40000003,
"imgPathMore" : null,
"categoryId" : 3,
"status" : 1,
"remark" : "",
"imgList" : [ null ]
}
}
文档更新时间: 2021-10-25 17:41 作者:刘正阳