- 用户
- 分类
- ChatGPT
- 文章
- 点赞
- 评论
- 聊天
- 通知
- 问题
- 购买token
问题分页查询
GET
/problem/page
请求参数
Query 参数
page
integer
必需
示例值:
1
pageSize
integer
必需
示例值:
10
categoryId
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/problem/page?page=1&pageSize=10&categoryId='
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object
必需
records
array [object {5}]
问题列表
total
integer
总问题数
size
integer
页面大小
current
integer
当前页面
orders
array[string]
必需
optimizeCountSql
boolean
必需
hitCount
boolean
必需
countId
null
必需
maxLimit
null
必需
searchCount
boolean
必需
pages
integer
必需
示例
{
"code": 200,
"msg": "success",
"data": {
"records": [
{
"problemId": "1703378122199830529",
"problemTitle": "TCP为什么需要三次握手建立连接",
"problemAnswer": "略",
"categoryId": "1688873517996216322",
"createTime": "2023-09-17 20:03:03"
},
{
"problemId": "1703382421101383682",
"problemTitle": "TCP为什么需要四次挥手断开连接?",
"problemAnswer": "略",
"categoryId": "1688873517996216322",
"createTime": "2023-09-17 20:03:03"
}
],
"total": 2,
"size": 10,
"current": 1,
"orders": [],
"optimizeCountSql": true,
"hitCount": false,
"countId": null,
"maxLimit": null,
"searchCount": true,
"pages": 1
}
}
修改于 2023-10-05 13:03:33