简要描述:
- 商品类型
请求URL:
GET/route=goods.goods.get-goods-type
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
id | 是 | int | 商品ID |
返回示例:
正确时返回:
{
"result": 1,
"msg": "成功",
"data": {
"goods_type": 'goods',
"store_id" : 1,
}
}
错误时返回:
{
result: 0,
msg: "商品不存在.",
data: [ ]
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
goods_type | string | store_goods-门店 course-课程 supplierGoods-供应商 hotelGoods-酒店 goods-通用 |
store_id | int | 如果是门店商品则有id,如果不是则没有这个字段 |
备注:
- 更多返回错误代码请看首页的错误代码描述