ChatViewer
  1. 问题
ChatViewer
  • 用户
    • 用户接口
    • 发送验证码
      GET
    • 用户登录
      POST
    • 用户注册
      POST
    • 用户修改信息
      PUT
    • 用户信息
      GET
  • 分类
    • 分类目录接口
    • 查询分类目录
      GET
    • 删除分类
      DELETE
    • 插入分类路径
      POST
    • 插入子分类
      POST
  • ChatGPT
    • GPT会话列表
      GET
    • 新建会话
      POST
    • 删除会话
      DELETE
    • 消息记录
      GET
    • 发送消息
      POST
  • 文章
    • 文章详情查询
      GET
    • 文章分页查询
      GET
    • 上传文件
      POST
    • 上传文章
      POST
  • 点赞
    • 点赞/取消点赞
    • 点赞状态查询
  • 评论
    • 评论查询
    • 添加评论
  • 聊天
    • 会话查询
    • 聊天记录
    • 发送消息
    • 设置已读
  • 通知
    • 通知
    • 通知摘要
    • 通知查询
    • 设为已读
  • 问题
    • 问题分页查询
      GET
    • 添加问题
      POST
    • 问题查询
      GET
    • 回答查询
      GET
    • 保存回答
      POST
    • 求助GPT
      POST
  • 购买token
    • 添加商品
    • 秒杀免费商品
  1. 问题

问题分页查询

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
上一页
设为已读
下一页
添加问题
Built with