抢购商品列表
GET
/api/seckill/lists
请求参数
Query 参数
category_id
integer
商品分类ID
Header 参数
token
string
必需
默认值:
{{'38a327e6732714e2a48e0b5d3038b2cc'}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/seckill/lists?category_id=' \
--header 'token;'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
lists
array [object {11}]
必需
count
integer
必需
page_no
integer
必需
page_size
integer
必需
extend
array[string]
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"lists": [
{
"id": 32,
"name": "保障商品",
"image": "http://www.sqtg.localhost/uploads/images/20230217/202302171516410610d3766.jpg",
"net_weight": "",
"sales_volume": 0,
"sell_price": "10.00",
"lineation_price": "21.00",
"stock": 10,
"quota": 1,
"unit_desc": "个",
"goods_coupon": {
"id": 3,
"sn": "DGBT27984653",
"name": "全场优惠10元券",
"money": "10.00",
"condition_type": 1,
"condition_money": "0.00",
"describe": "无门槛 ¥10.00"
}
}
],
"count": 1,
"page_no": 1,
"page_size": 25,
"extend": []
}
}
修改于 2023-02-23 09:32:50