接口:商品详情
接口:商品详情
接口详情
商品详情
zodram api
GET
接口地址
| 正式环境(prod) | https://zodream.cn/open/shop/goods |
|
| 本地环境(dev) | http://zodream.localhost/open/shop/goods |
Header参数
| 字段键 | 字段值 | 备注说明 |
|---|
请求参数
| 字段别名 | 字段含义 | 字段类型 | 是否必填 | 默认值 | 备注说明 |
|---|---|---|---|---|---|
| id | 商品id | 数字(number) | 是 |
响应参数
| 字段别名 | 字段含义 | 字段类型 | MOCK规则 | 备注说明 |
|---|---|---|---|---|
| id | id | 数字(number) | ||
| category | 分类 | 对象(object) | ||
| ᅡ id | 分类id | 数字(number) | number | |
| ᅡ name | 分类名 | 字符串(string) | app_name | |
| brand | 品牌 | 对象(object) | ||
| ᅡ id | 品牌id | 数字(number) | number | |
| ᅡ name | 品牌名 | 字符串(string) | app_name | |
| name | name | 字符串(string) | ||
| series_number | series_number | 数字(number) | ||
| keywords | keywords | 字符串(string) | ||
| thumb | thumb | 字符串(string) | ||
| description | description | 字符串(string) | ||
| brief | brief | 字符串(string) | ||
| content | content | 字符串(string) | ||
| price | price | 数字(number) | ||
| market_price | market_price | 数字(number) | ||
| stock | stock | 数字(number) | ||
| weight | weight | 数字(number) | ||
| sales | sales | 数字(number) | ||
| is_best | is_best | 数字(number) | ||
| is_hot | is_hot | 数字(number) | ||
| is_new | is_new | 数字(number) | ||
| status | status | 数字(number) | ||
| created_at | created_at | 字符串(string) | ||
| updated_at | updated_at | 字符串(string) | ||
| picture | picture | 字符串(string) | ||
| shop | shop | 字符串(string) | ||
| properties | properties | 数组(array) | ||
| ᅡ id | id | 数字(number) | ||
| ᅡ name | name | 字符串(string) | ||
| ᅡ type | type | 数字(number) | ||
| ᅡ attr_items | attr_items | 数组(array) | ||
| ᅡー id | id | 数字(number) | ||
| ᅡー goods_id | goods_id | 数字(number) | ||
| ᅡー attribute_id | attribute_id | 数字(number) | ||
| ᅡー value | value | 字符串(string) | ||
| ᅡー price | price | 数字(number) | ||
| static_properties | static_properties | 数组(array) | ||
| ᅡ id | id | 数字(number) | ||
| ᅡ name | name | 字符串(string) | ||
| ᅡ attr_item | attr_item | 对象(object) | ||
| ᅡー id | id | 数字(number) | ||
| ᅡー goods_id | goods_id | 数字(number) | ||
| ᅡー attribute_id | attribute_id | 数字(number) | ||
| ᅡー value | value | 数字(number) | ||
| ᅡー price | price | 数字(number) | ||
| is_collect | is_collect | 布尔型(boolean) | ||
| gallery | gallery | 数组(array) | ||
| ᅡ id | id | 数字(number) | ||
| ᅡ goods_id | goods_id | 数字(number) | ||
| ᅡ image | image | 字符串(string) |
返回示例