💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 获取商品 **请求URL:** - `/shopapi/goods/detail` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id |是 |int |商品id | **返回示例** ``` { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 116, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级ss22578s", "code": "1222222s72s2s5ss8", "image": "http://www.likeshopb2cv3.localhost/123.png", "video": "http://www.likeshop.localhost/uploads/images/background/20201210/6768915899c1f445e43c886ad5e8668a.png", "video_cover": "http://www.likeshop.localhost/uploads/images/background/20201210/6768915899c1f445e43c886ad5e8668a.png", "total_stock": 4000, "click_num": 149, "sales_num": 0, "spec_type": 2, "content": "123", "update_time": "1970-01-01 08:33:41", "is_collect": 0, "sell_price": "2999.00", "member_price": 2399.2, "lineation_price": "3299.00", "goods_comment": { "id": 2, "spec_value_str": "黑巧风暴,4G", "comment": "nice!!!", "nickname": "昵***2", "avatar": "http://www.likeshopb2cv3.localhost/uploads/user/avatar/cdb1f772f7377f0abc54cd0da2ee8c3a.jpeg", "goods_rate": "100%", "comment_image": [ "http://www.likeshopb2cv3.localhost/123.png", "http://www.likeshopb2cv3.localhost/456.png", "http://www.likeshopb2cv3.localhost/789.png" ] }, "recommend_goods": [ { "id": 59, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级ss22582s", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 52, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级258", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 58, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级ss2582s", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 52, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级258", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 55, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级31234sa", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 53, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级258s", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 116, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级ss22578s", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "3299.00" }, { "id": 58, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级ss2582s", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "0.00" }, { "id": 117, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级测试1", "image": "http://www.likeshopb2cv3.localhost/123.png", "sell_price": "2999.00", "lineation_price": "3299.00" } ], "spec_value": [ { "id": 178, "goods_id": 116, "name": "选择颜色", "spec_list": [ { "id": 315, "goods_id": 116, "spec_id": 178, "value": "黑巧风暴" }, { "id": 316, "goods_id": 116, "spec_id": 178, "value": "白桃乌龙" } ] }, { "id": 179, "goods_id": 116, "name": "选择版本", "spec_list": [ { "id": 317, "goods_id": 116, "spec_id": 179, "value": "4G" }, { "id": 318, "goods_id": 116, "spec_id": 179, "value": "5G" } ] } ], "spec_value_list": [ { "id": 228, "image": "http://www.likeshopb2cv3.localhost/123.png", "goods_id": 116, "spec_value_ids": "315,317", "spec_value_str": "黑巧风暴,4G", "sell_price": "2999.00", "lineation_price": "3299.00", "cost_price": "2000.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607", "member_price": 2399.2 }, { "id": 229, "image": "http://www.likeshopb2cv3.localhost/123.png", "goods_id": 116, "spec_value_ids": "315,318", "spec_value_str": "黑巧风暴,5G", "sell_price": "2999.00", "lineation_price": "3299.00", "cost_price": "2000.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607", "member_price": 2399.2 }, { "id": 230, "image": "http://www.likeshopb2cv3.localhost/123.png", "goods_id": 116, "spec_value_ids": "316,317", "spec_value_str": "白桃乌龙,4G", "sell_price": "2999.00", "lineation_price": "3299.00", "cost_price": "2000.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607", "member_price": 2399.2 }, { "id": 231, "image": "http://www.likeshopb2cv3.localhost/123.png", "goods_id": 116, "spec_value_ids": "316,318", "spec_value_str": "白桃乌龙,5G", "sell_price": "2999.00", "lineation_price": "3299.00", "cost_price": "2000.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607", "member_price": 2399.2 } ], "goods_image": [ "123.png", "12223.png", "122223233.png" ] } } ``` **返回参数**:** |参数名 |类型 |说明 | | ------ | ------ | ------ |------ | |name |string |商品名称 | |code |string |商品编码| |video_cover |string |视频封面| |video |string |视频链接| |goods_image |array | 商品轮播图 |click_num |int | 点击量 |sales_num |int | 销量 |total_stock |int | 总库存 |sell_price |float | 售价 |recommend_goods |array | 推荐商品 |goods_comment |array | 商品评价 |--id |int |评价id |--sepc_value_str |string |规格名 |--nickname|string |用户昵称 |--goods_rate|string |好评率 |--comment_image|array |评价图片 |--comment|string |评价内容 |spec_type |int | 类型 1-单规格商品;2-多规格商品 |spec_value |array | 规格项 |--spec_name |sring | 规格名称 |--spec_list |array | 规格子项列表 |-----id |int | 规格子id |-----value |sring | 规格值 |spec_value_list |array | 规格项信息 |--spec_value_ids |int | 拼接规格名称 |--spec_value_str |int | 规格名称 |--image |float | 规格图片 |--sell_price |float | 价格 |--lineation_price |float | 划线价 |--cost_price |float | 成本价 |--stock |int | 库存 |--volume |float | 体积 |--weight |float | 重量 |--bar_code |string | 条形码 |--member_price |folat | 会员价