💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
**简要描述:** - 获取商品 **请求URL:** - `/adminapi/goods.goods/detail` **请求方式:** - GET **参数:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |id |是 |int |商品id | **返回示例** ``` { "code": 1, "show": 0, "msg": "获取成功", "data": { "id": 32, "name": "舒客儿童牙膏换牙儿童牙膏护齿防蛀护龈含氟可吞咽食品级", "code": "122222", "brand_id": 2, "supplier_id": 1, "status": 0, "image": "123.png", "video": "http://www.likeshop.localhost/uploads/images/background/20201210/6768915899c1f445e43c886ad5e8668a.png", "poster": "", "remark": null, "goods_image": [ { "id": 32, "goods_id": 32, "uri": "12223.png" }, { "id": 33, "goods_id": 32, "uri": "122223233.png" } ], "spec_value": [ { "id": 13, "goods_id": 32, "name": "选择颜色", "spec_list": [ { "id": 31, "goods_id": 32, "spec_id": 13, "value": "黑巧风暴" }, { "id": 32, "goods_id": 32, "spec_id": 13, "value": "白桃乌龙" } ] }, { "id": 14, "goods_id": 32, "name": "选择版本", "spec_list": [ { "id": 33, "goods_id": 32, "spec_id": 14, "value": "4G" }, { "id": 34, "goods_id": 32, "spec_id": 14, "value": "8G" }, { "id": 35, "goods_id": 32, "spec_id": 14, "value": "12G" } ] } ], "spes_vaue_list": [ { "id": 37, "image": "", "goods_id": 32, "spec_value_ids": "31,33", "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" }, { "id": 38, "image": "", "goods_id": 32, "spec_value_ids": "31,34", "spec_value_str": "黑巧风暴,8G", "sell_price": "3299.00", "lineation_price": "3599.00", "cost_price": "2200.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607" }, { "id": 39, "image": "", "goods_id": 32, "spec_value_ids": "31,35", "spec_value_str": "黑巧风暴,12G", "sell_price": "3599.00", "lineation_price": "3799.00", "cost_price": "2400.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607" }, { "id": 40, "image": "", "goods_id": 32, "spec_value_ids": "32,33", "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" }, { "id": 41, "image": "", "goods_id": 32, "spec_value_ids": "32,34", "spec_value_str": "白桃乌龙,8G", "sell_price": "3299.00", "lineation_price": "3599.00", "cost_price": "2200.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607" }, { "id": 42, "image": "", "goods_id": 32, "spec_value_ids": "32,35", "spec_value_str": "白桃乌龙,12G", "sell_price": "3599.00", "lineation_price": "3799.00", "cost_price": "2400.00", "stock": 1000, "volume": "10.00", "weight": "10.00", "bar_code": "202107131607" } ] } } ``` **返回参数**:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |name |是 |string |商品名称 | |code |是 |string |商品编码| |express_type |是 |int |运费类型:1-包邮;2-统一运费;3-运费模板| |express_money |是 |float |运费类型为:2(统一运费)时必传| |express_template_id |是 |int |运费类型为:3(运费模板)时必传| |video_source |是 |string |视频来源:1-视频素材库;2-商品链接| |video_cover |是 |string |视频封面| |video |是 |string |视频链接| |supplier_id |是 |int|供应商id| |brand_id |是 |int |品牌id| |goods_image |是 |array | 商品轮播图(数组第一个为商品主图) |spec_type |是 |int | 类型 1-单规格商品;2-多规格商品 |spec_value |是 |array | 规格项 |--spec_name |是 |sring | 规格名称 |--spec_list |是 |array | 规格子项列表 |spec_value_list |是 |array | 规格项信息 |--ids |是 |int | 规格ids |--spec_value |否 |int | 拼接规格名称 |--image |否 |float | 规格图片 |--sell_price |是 |float | 价格 |--lineation_price |是 |float | 划线价 |--cost_price |是 |float | 成本价 |--stock |是 |int | 库存 |--volume |否 |float | 体积 |--weight |否 |float | 重量 |--bar_code |否 |string | 条形码