文档
测试

根据商品类别id查询商品列表

GET
/api/mp/goods/queryGoodsByCateId

请求参数

参数名
类型
描述
必填
categoryId
类别id
必填

响应参数

参数名
类型
描述
必填
msg
string
示例:success
必填
code
int
示例:0
必填
data
array
数据列表
必填
id
int
商品 id 示例:1
必填
name
string
商品名称 示例:卤鸡
必填
subtitle
object
商品副标题 示例:这是一支卤鸡
必填
price
int
商品价格(普通用户)示例:56
必填
costPrice
int
成本价(代理)示例:35
必填
originalPrice
int
原价 示例:69
必填
image
string
商品轮播图 示例:http://luji.jpg,http://luji2.jpg(用逗号分隔的字符串)
必填

说明 / 示例

{ "msg": "success", "code": 0, "data": [ { "id": 1, "shopId": 1, "sort": 2, "name": "卤鸡", "subtitle": null, "keyword": null, "categoryId": 1, "attribute": null, "price": 56.00, "costPrice": 69.00, "originalPrice": 35.00, "image": "http://luji.jpg", "video": null, "fullPiece": null, "fullAmount": null, "freight": null, "state": 0, "startTime": null, "endTime": null } ], "encrypt": false }