商品信息表

简要描述
  • 商品列表接口
请求URL
  • http://xx.com/api/goods或者http://xx.com/api/goods/index
请求方式
  • GET
返回成功示例
{
    "status": 0,
    "message": "请求商品列表成功",
    "results": [
        {
            "id": 1,
            "title": "海信 Vidda 43V1F-R 43英寸 全高清 超薄电视 全面屏电视 智慧屏 1G+8G 教育电视 游戏巨幕液晶电视以旧换新",
            "goods_image": null,
            "goods_cate_id": 16,
            "goods_info": "【价保11.11】【首年只换不修】下单立减200,不高于4599元 ULED全阵列动态背光,120Hz疾速屏+HDMI2.1顺滑流畅--130%高色域社交电视",
            "goods_price": null,
            "goods_sales": 86,
            "thumbnail": null,
            "price_market": "5249.00",
            "price_promotion": null,
            "price_cost": "899.00",
            "stock": 666,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 1
        },
        {
            "id": 2,
            "title": "夏普(SHARP)4T-C86E7CA 86英寸 4K超高清HDR智能BT蓝牙网络液晶大屏平板电视 二级能效 2GB+32G",
            "goods_image": null,
            "goods_cate_id": 16,
            "goods_info": "【价保11.11】【首年只换不修】下单立减200,不高于4599元 ULED全阵列动态背光,120Hz疾速屏+HDMI2.1顺滑流畅--130%高色域社交电视",
            "goods_price": null,
            "goods_sales": 88,
            "thumbnail": null,
            "price_market": "5699.00",
            "price_promotion": null,
            "price_cost": "2400.00",
            "stock": 66,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 1
        },
        {
            "id": 3,
            "title": "海信(Hisense)55E8D 55英寸 ULED超画质智慧屏量子点 AI声控4K超薄全面屏液晶游戏社交智能电视以旧换新",
            "goods_image": null,
            "goods_cate_id": 17,
            "goods_info": "【价保11.11】【首年只换不修】下单立减200,不高于4599元 ULED全阵列动态背光,120Hz疾速屏+HDMI2.1顺滑流畅--130%高色域社交电视",
            "goods_price": null,
            "goods_sales": 88,
            "thumbnail": null,
            "price_market": "4599.00",
            "price_promotion": null,
            "price_cost": "2400.00",
            "stock": 66,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 1
        },
        {
            "id": 4,
            "title": "小米全面屏电视 55英寸 E55X 4K超高清 HDR 内置小爱 2GB+8GB 教育电视 AI人工智能网络平板电视 L55M5-EX",
            "goods_image": null,
            "goods_cate_id": 18,
            "goods_info": "【10.12小米电视品牌钜惠】小米55英寸全面屏,内置小爱同学,限时特惠2399元,赶快抢购哟,小米电视EA55新品上市猛戳",
            "goods_price": null,
            "goods_sales": 88,
            "thumbnail": null,
            "price_market": "2999.00",
            "price_promotion": null,
            "price_cost": "2399.00",
            "stock": 66,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 2
        },
        {
            "id": 5,
            "title": "飞利浦(PHILIPS)65英寸 全面屏 4K超高清 家用教育大屏 低音腔AI语音8G网络智能液晶电视65PUF7294以旧换新",
            "goods_image": null,
            "goods_cate_id": 18,
            "goods_info": "【飞利浦钜惠】限时抢购!赠2年延保!12期分期免息! 【65英寸全面屏4K超高清!智能AI语音】 【独立音腔!魅力低音!178°大视角】《邀您赏新》",
            "goods_price": null,
            "goods_sales": 88,
            "thumbnail": null,
            "price_market": "8888.00",
            "price_promotion": null,
            "price_cost": "5555.00",
            "stock": 666,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 2
        },
        {
            "id": 6,
            "title": "长虹 55D5P 55英寸智慧屏教育电视 AI声控 远场语音 2+16GB 4K超高清 超薄全面屏 平板液晶电视机 以旧换新",
            "goods_image": null,
            "goods_cate_id": 17,
            "goods_info": "长虹 55D5P 55英寸智慧屏教育电视 AI声控 远场语音 2+16GB 4K超高清 超薄全面屏 平板液晶电视机 以旧换新",
            "goods_price": null,
            "goods_sales": 88,
            "thumbnail": null,
            "price_market": "4699.00",
            "price_promotion": null,
            "price_cost": "1999.00",
            "stock": 88,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 3
        },
        {
            "id": 7,
            "title": "海尔 (Haier)1.5匹 智净 变频壁挂式空调挂机3D除菌舱 一级能效 智能 KFR-35GW/81@U1-Cc",
            "goods_image": null,
            "goods_cate_id": 19,
            "goods_info": "【付尾款抢空调免单】尾款到手不高于2799元 【下单付尾款抢宏光Mini】3D除菌仓,健康好空气!三翼导风科技 【看直播抽新品空调】咨询客服有惊喜!新品上市",
            "goods_price": null,
            "goods_sales": 66,
            "thumbnail": null,
            "price_market": "3888.00",
            "price_promotion": null,
            "price_cost": "1999.00",
            "stock": 95,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 4
        },
        {
            "id": 8,
            "title": "格力(GREE)1.5匹 京淳 高效除甲醛 空调空气净化器一体机 壁挂式卧室空调挂机KFR-35GW/NhCf1BGj以旧换新",
            "goods_image": null,
            "goods_cate_id": 19,
            "goods_info": "【空调焕新家】今日到手价6099元!【24期免息】【下单再送格力加湿器】【晒单抽好礼】【以旧换新更优惠】旧机补贴至高减320元!【整机10年包修】",
            "goods_price": null,
            "goods_sales": 55,
            "thumbnail": "",
            "price_market": "1999.00",
            "price_promotion": null,
            "price_cost": "999.00",
            "stock": 88,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 3
        },
        {
            "id": 9,
            "title": "TCL 1.5匹 新一级能效 变频冷暖 净怡风 智能 以旧换新 壁挂式 挂式空调挂机KFRd-35GW/D-STA11Bp(B1)卧室",
            "goods_image": null,
            "goods_cate_id": 20,
            "goods_info": "【品质焕新家,舒适新生活】限量100台到手价2199元!新一级节能空调,省电看得见!30天质量问题可退!再送一年只换不修!看直播抢大额优惠券",
            "goods_price": null,
            "goods_sales": 66,
            "thumbnail": null,
            "price_market": "2999.00",
            "price_promotion": null,
            "price_cost": "1000.00",
            "stock": 999,
            "status": 1,
            "create_time": "2021-10-12 15:08:56",
            "update_time": null,
            "delete_time": null,
            "goods_tags_id": 4
        }
    ]
}
返回失败实例
{
    "status"=>1,
    "message"=>"请求商品列表为空或不存在",
}
返回参数说明
参数名 类型 说明
goods_cate_id int 商品分类ID,请参考商品分类表
status tinyint 商品状态,0下架,1上架,2待审核
goods_tags_id tinyint 商品标签,请参考商品标签表(推荐、促销、新品等)
备注
  • 更多返回错误代码请看首页的错误代码描述