文档
测试

商品列表/详情

POST
Goods/getList

请求参数

参数名
类型
描述
必填
classId
int
*分类id
必填
goodsId
int
*商品id 传就是详情(传的时候要带上分类id) 不传就是列表
可选
keyword
string
模糊搜素 支持商品名
可选

说明 / 示例

"data": [ { "id": 1,//自增id "versionId": 1,//版本号 "online": 1,//上架 1-上架 0-下架 "nums": 10,允许售卖的数量 "soldNums": "32"售卖数量 "recommend": 1,//推荐 1-是 0-否 "created_at": "2020-07-18T17:02:20.000000Z",//创建日期 "updated_at": "2020-07-18T17:02:27.000000Z",//更新日期 "deleted_at": null, "remark": "测试1",//备注 "imgIds": "4,5",//图片字符串 "name": "商品1",//商品名 "introduce": "好东西",//介绍 "price": 200,//原价 "realPrice": 999,//现价 "goodsId": 1,//商品id "classId": 1,//分类id className:分类名 "labelId": null,//标签串 "imagelist": [//图片地址 用于banner滚动图 "https://img01.hua.com/uploadpic/newpic/9012461.jpg",//图片url地址 "https://img01.hua.com/uploadpic/newpic/9012047.jpg" ] "labelIdList": [ { "name": "秋季新品",//标签名 "color": "#cccccc"//标签颜色 }, ] coverImgIdurl:封面 bannerIds: "14,15,16,17"banner ids串 bannerImgs: ["http://huadian.test.upcdn.net//diypage/2020-09-11/banner1_1599806357.JPG!lite",…]banner列表 0: "http://huadian.test.upcdn.net//diypage/2020-09-11/banner1_1599806357.JPG!lite" 1: "http://huadian.test.upcdn.net//diypage/2020-09-11/banner2_1599806427.JPG!lite" 2: "http://huadian.test.upcdn.net//diypage/2020-09-11/banner3_1599806471.JPG!lite" 3: "http://huadian.test.upcdn.net//diypage/2020-09-11/banner4_1599806495.JPG!lite" }, "skus" => array:4 [商品sku 0 => array:10 [ "id" => 2 "name" => "【红色】+【9支】"名称 "pid" => 0 父id 暂时不用 "goodsId" => 1 商品id "price" => "0.00" 价格 "imgId" => null 图片id imgUrl=>[]图片地址 "created_at" => null "updated_at" => null "deleted_at" => null "remark" => null ]