文档
测试

产品详情

GET
/api/goods/detail

请求参数

参数名
类型
描述
必填
goods_id
int
产品id
必填

响应参数

参数名
类型
描述
必填
goods
object
产品信息
必填
id
int
产品id
必填
name
string
产品名称
必填
images_detail
array
轮播图地址数组
必填
price
float
预估价
必填
rel_price
float
定金
必填
deduction
float
抵扣金额
必填
final_payment
float
尾款
必填
process
string
流程
必填
on_sale
array
优惠信息
必填
key
string
名称
必填
value
string
描述
必填
service_detail
array
服务
必填
key
string
名称
必填
value
string
描述
必填
parameter
array
参数
必填
key
string
名称
必填
value
string
描述
必填
video_src_http
string
视频地址
必填
detail
string
产品详情
必填
is_collect
int
0,未收藏·,1,已收藏
必填
comment
array
产品评论
必填
id
int
评论id
必填
content
string
评论内容
必填
user
object
评论用户
必填
info
object
用户信息
必填
username
string
用户名
必填
img_http
string
用户头像
必填
size_count
int
总规格数
必填
sizes
object
处理后的多规格
必填
key
string
键(一个规格名称)
必填
value
array
必填
id
string
必填
name
string
规则名称
必填
all_size
array
产品规格
必填
id
int
规格id
必填
store
int
库存
必填
price
float
价格
必填
size_item_ids
string
规格id(":"分割)
必填
size_name
string
规格描述
必填

说明 / 示例

{ "goods": { "id": 2, "name": "ceshi", "thumbnail": "/images/1653010762583.jpg", "price": 2000, "rel_price": 1, "express_price": null, "store": 1000, "ord": 0, "cate_id": 1, "sales_num": 10, "parameter": [ { "key": "规格", "value": "100*100" } ], "detail": "<img src=\"http://127.0.0.77/editor/attached/image/20220520/20220520093251_13704.jpg\" style=\"max-width:100%;height:auto\" />", "home_page": 1, "status": 0, "comment_num": 0, "is_hot": 0, "created_at": "2022-05-20 09:39:22", "updated_at": "2022-07-18 16:18:13", "images": "<img src=\"/editor/attached/image/20220520/20220520093236_49892.jpg\" alt=\"\" />", "service":"[{\"key\":\"7\天\无\理\由\",\"value\":\"7\天\无\理\由\退\换\货\"}]", "deleted_at": null, "collect_num": 0, "customer_id": null, "deduction": "5.00", "final_payment": "1500.00", "process": "1,付定金-2,到店付尾款-3,发货", "video_src": null, "on_sale": [ { "key": "满减", "value": "满200减100" } ], "service_detail": [ { "key": "7天无理由", "value": "7天无理由退换货" } ], "images_detail": [ "http://127.0.0.77/editor/attached/image/20220520/20220520093236_49892.jpg" ], "video_src_http": "", "thumbnail_http": "http://127.0.0.77/images/1653010762583.jpg" }, "is_collect": 0, "comment": [], "size_count": 1, "sizes": { "尺寸": [ { "id": 2, "name": "s", "img": "" }, { "id": 3, "name": "m", "img": "" } ] }, "all_size": [ { "id": 1, "goods_id": "2", "store": 454, "price": 1222, "deleted_at": null, "size_item_ids": "2", "type": 0, "size_name": "s" }, { "id": 2, "goods_id": "2", "store": 565, "price": 1222, "deleted_at": null, "size_item_ids": "3", "type": 0, "size_name": "m" } ] }