简要描述:

  • 商城会员等级列表

请求接口路由:

POST/goods/goods/index

参数:

参数名 是否必须 类型 说明
created_at array 创建时间段,示例[1681451507,1681537906]
title string 商品标题
goods_id int 商品ID

返回示例:

{
    "result": 1,
    "msg": "list",
    "data": {
        "current_page": 1,
        "data": [
            {
                "id": 775,
                "title": "测试商品5",
                "thumb": "https://dev7.yunzmall.com/static/upload/image/jpegs/10/2022/02/857d982c5119a5dda46c992c6a92a49d.jpg",
                "sku": "个",
                "goods_sn": "GN775",
                "price": "80.00",
                "stock": 29975,
                "created_at": "2022-02-23 15:39:33"
            },
            {
                "id": 544,
                "title": "商城商品5",
                "thumb": "images/10/2018/12/aA1155eye14UZ138FN1ZV1v1z33V3W.jpg",
                "sku": "件",
                "goods_sn": "",
                "price": "100.00",
                "stock": 121,
                "created_at": "2018-12-14 09:45:42"
            }
        ],
        "first_page_url": "https://dev7.yunzmall.com/outside/10/goods/goods/index?page=1",
        "from": 1,
        "last_page": 1,
        "last_page_url": "https://dev7.yunzmall.com/outside/10/goods/goods/index?page=1",
        "next_page_url": null,
        "path": "https://dev7.yunzmall.com/outside/10/goods/goods/index",
        "per_page": 15,
        "prev_page_url": null,
        "to": 2,
        "total": 2
    }
}


data 返回参数说明:

参数名 类型 说明
id int 商品ID
title string 商品标题
thumb string 图片地址
sku string 单位
goods_sn string 商品编码
price float 价格
stock int 库存
created_at string 创建时间