查询产品列表
POST
/v1/product/page
请求参数
Body 参数application/json
页码,默认1
pageNumber
integer
必需
pageSize
integer
必需
categoryId
integer
分类ID
status
integer
可选
keyword
string
名称(模糊查询)
示例
{
"pageNumber": 1,
"pageSize": 20,
"categoryId": null,
"status": null,
"name": null
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/product/page' \
--header 'Content-Type: application/json' \
--data-raw '{
"pageNumber":1,
"pageSize": 20,
"categoryId": null,
"status": null,
"name": null
}'
返回响应
🟢200成功
application/json
Body
code
integer
状态码
msg
string
信息
data
object
数据
records
array [object {18}]
数据列表
pageNumber
integer
当前页码,默认1
pageSize
integer
必需
totalPage
integer
总页数
totalRow
integer
总数据数量
示例
{
"code": 200,
"msg": "操作成功",
"data": {
"records": [
{
"id": 110056,
"name": "【官方直充】腾讯视频会员7天",
"icon": "https://cdn.gamesup.cn/dev/20250223/18b0c189112a878fc2c79c2a3f365672.png",
"type": 1,
"maxBuyNum": 1,
"faceValue": null,
"enableSalesChannels": [
"私域",
"拼多多",
"闲鱼",
"淘宝",
"京东",
"小红书"
],
"disableSalesChannels": [
"抖音",
"快手"
],
"limitPrice": null,
"limitBalance": null,
"limitGuarantee": null,
"description": "<p><img src=\"https://cdn.gamesup.cn/dev/20250223/43c17396fd2ac2053ca9398a458fbcb4.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/12f31b20c42f410405acb94e7f5db3ed.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/4db36f18912d9666149d91e9643ce554.png\" alt=\"\"/><br/></p>",
"categoryId": 100025,
"categoryName": "腾讯视频",
"salesPrice": "7.95",
"status": 1,
"stockNum": 99999,
"template": [
{
"key": "account",
"name": "手机号",
"pattern": [
"phone"
],
"type": "text",
"maxlength": 11,
"placeholder": "请输入手机号",
"required": null
}
]
},
{
"id": 110060,
"name": "【官方直充】腾讯视频会员1个月---仅淘宝/闲鱼",
"icon": "https://cdn.gamesup.cn/dev/20250223/49f06f2e6360f7e54b8a0a0ef18a5f1f.png",
"type": 1,
"maxBuyNum": 1,
"faceValue": null,
"enableSalesChannels": [
"闲鱼",
"淘宝"
],
"disableSalesChannels": [
"拼多多",
"京东",
"小红书",
"抖音",
"快手",
"私域"
],
"limitPrice": null,
"limitBalance": 50000,
"limitGuarantee": null,
"description": "<p><img src=\"https://cdn.gamesup.cn/dev/20250223/bc0a0045a030c7e163f3e528a3071fd6.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/7cd4af7432b9b9a4d9e39992e5b52c2b.png\" alt=\"\"/><img src=\"https://cdn.gamesup.cn/dev/20250223/3a6714ac155dc80c75af0268b8dbc86b.png\" alt=\"\"/><br/></p>",
"categoryId": 100025,
"categoryName": "腾讯视频",
"salesPrice": "15.44",
"status": 1,
"stockNum": 99999,
"template": [
{
"key": "account",
"name": "手机号",
"pattern": [
"phone"
],
"type": "text",
"maxlength": 11,
"placeholder": "请输入手机号",
"required": null
}
]
}
],
"pageNumber": 1,
"pageSize": 10,
"totalPage": 10,
"totalRow": 93
}
}
修改于 2025-03-30 10:04:00