获取商品列表接口
~~~[api]
post:http://mlyz.data.cuci.cc/index.php/api/vone/depotapi/goodslist
*string:sessionid=e796e7721664378e120cc5239e70e18c6867818e#登录时返回的sessionid
<<<
获取成功
{
"code": "SUCCESS",
"msg": "获取商品列表成功!",
"data": [
{
"id": "10",
"title": "黄芪霜",
"spec": "default:default"
},
{
"id": "11",
"title": "商城商品",
"spec": "default:default"
}
]
}
<<<
获取失败
{
"code": "ERROR",
"msg": "暂无商品信息!",
"data": []
}
~~~
>[success] **获取商品列表成功返回字段说明**
|字段|描述|
|-|-|
|id|商品id|
|title|商品名|
|spec|商品规格(多个规格用","拼接,"default:default"为默认规格)|