简介
商城商品详情接口
接口地址
/api/v1/store/goods/info
请求参数
名称 | 必须 | 描述 |
---|---|---|
id | 是 | 文章ID |
timestamp | 是 | 当前时间戳 |
sign | 是 | 签名结果,签名算法介绍请点击这里 |
返回结果
名称 | 描述 |
---|---|
goods | 商品信息 |
|--id | 商品ID |
|--goods_name | 商品名称 |
|--category_id | 商品分类ID |
|--description | 商品描述 |
|--goods_image | 商品封面图 |
|--shop_price | 商品售价 |
|--market_price | 商品市场价 |
|--view | 商品浏览量 |
|--category | 商品分类信息 |
|--content | 商品介绍详情 |
|--created_at | 商品创建时间 |
|--updated_at | 商品更新时间 |
返回示例
{
"result": {
"id": 51,
"goods_name": "苹果手机",
"category_id": 2,
"goods_image": "/uploads/202109/09/7f9IS5UvRr21nTfKtW0fVvQsTmW4ariMjGKc75pu.jpg",
"shop_price": "1.00",
"market_price": "3.00",
"description": "苹果手机一般指iPhone。 iPhone是苹果公司(Apple Inc. )发布搭载iOS操作系统的系列手机。",
"content": "<p>Template Features</p>\n\n<ul>\n\t<li>3 Unique Home page</li>\n\t<li>2+ Awesome Home Pages</li>\n\t<li>10+ Inner Pages</li>\n\t<li>Fully Layered Adobe XD files</li>\n\t<li>Well Organized Layers</li>\n\t<li>Well OrgaCreative and unique designnized Layers</li>\n\t<li>Based on Bootstrap 1170px Grid</li>\n\t<li>Easy & customizable xd files</li>\n\t<li>24/7 Support</li>\n</ul>\n\n<p>Font Used</p>\n\n<ul>\n\t<li>Poppins</li>\n\t<li>Roboto</li>\n</ul>",
"view": 40,
"created_at": "2021-09-09 14:33:50",
"updated_at": "2021-11-27 17:45:51",
"category": {
"id": 2,
"name": "生活百货"
}
},
"msg": "返回成功",
"code": 200
}