文档
测试

获取商品规格

GET
http://{{url}}/api/goods/goods_spec?goods_id=1

请求头

参数名
类型
描述
必填
token
string
示例:6effc71a-aafd-435a-87c1-751e28b63481
必填

请求参数

参数名
类型
描述
必填
goods_id
int
示例:1
必填

响应参数

参数名
类型
描述
必填
code
int
示例:1
必填
msg
string
示例:请求成功
必填
time
string
示例:1697186589
必填
data
object
数据字典
必填
spec_list
array
数据列表
必填
id
int
示例:3
必填
goods_id
int
示例:1
必填
price
string
示例:12.00
必填
cost_prcie
string
示例:10.00
必填
stock
int
示例:10
必填
goods_weight
int
示例:150
必填
goods_no
string
示例:10002
必填
image
string
示例:
必填
spec_group
string
示例:1_2
必填
spec_item
string
示例:1_5
必填
createtime
int
示例:1697185718
必填
spec_data
array
数据列表
必填
name
string
示例:颜色
必填
id
int
示例:1
必填
spec_item
array
数据列表
必填
id
int
示例:1
必填
name
string
示例:黑色
必填
group_id
int
示例:1
必填
createtime
int
示例:1697179483
必填