团队项目

这是一个流弊的项目


回答分页查询

[toc]

GET 查询对应问题下的回答

GET /localhost:9000/answer/answer/query

请求参数

名称 位置 类型 必选 说明
id query string 问题id
currentPage query string 分页参数 当前页
pageSize query string 分页参数 每页展示条数
keyword query string 关键字查询

> 返回示例

> 成功

{
  "msg": "success",
  "code": 200,
  "data": {
    "records": [
      {
        "id": 1,
        "questionId": "2",
        "userId": 1,
        "content": "666666666666",
        "state": 0,
        "thumbsupnum": 1,
        "starnum": 1,
        "createTime": "2023-01-03",
        "updateTime": "2023-01-13",
        "url": "https://p3-q.mafengwo.net/s13/M00/AB/00/wKgEaVy2nheAN9y5AAorszCM1vQ56.jpeg?imageMogr2%2Fthumbnail%2F%21120x120r%2Fgravity%2FCenter%2Fcrop%2F%21120x120%2Fquality%2F90",
        "userName": "xiaoliu"
      },
      {
        "id": 18,
        "questionId": "2",
        "userId": 1,
        "content": "666666666666",
        "state": 0,
        "thumbsupnum": 1,
        "starnum": 1,
        "createTime": "2023-01-03",
        "updateTime": "2023-01-13",
        "url": "https://p3-q.mafengwo.net/s13/M00/AB/00/wKgEaVy2nheAN9y5AAorszCM1vQ56.jpeg?imageMogr2%2Fthumbnail%2F%21120x120r%2Fgravity%2FCenter%2Fcrop%2F%21120x120%2Fquality%2F90",
        "userName": "xiaoliu"
      },
      {
        "id": 19,
        "questionId": "2",
        "userId": 1,
        "content": "666666666666",
        "state": 0,
        "thumbsupnum": 1,
        "starnum": 1,
        "createTime": "2023-01-03",
        "updateTime": "2023-01-13",
        "url": "https://p3-q.mafengwo.net/s13/M00/AB/00/wKgEaVy2nheAN9y5AAorszCM1vQ56.jpeg?imageMogr2%2Fthumbnail%2F%21120x120r%2Fgravity%2FCenter%2Fcrop%2F%21120x120%2Fquality%2F90",
        "userName": "xiaoliu"
      }
    ],
    "total": 3,
    "size": 5,
    "current": 1,
    "orders": [],
    "optimizeCountSql": true,
    "searchCount": true,
    "countId": null,
    "maxLimit": null,
    "pages": 1
  }
}

返回结果

参数名 类型 说明
id long 回答id
questionId 回答的问题
userId long 回答的用户
userName string 用户名称
url string用户头像
content string 回复的内容
state int 状态 -1 删除 0 正常
thumbsupnum int 点赞量
starnum int 收藏量
createTime string 创建时间
updateTime string 修改时间
状态码 状态码含义 说明 数据模型
200 OK 成功 Inline

页面列表

ITEM_HTML