收藏回答
[TOC]
简要描述
- 用户端 我的问答 收藏回答
请求URL
http://localhost:9000/trip-wenda-server/questions/collect
请求方式
- GET
返回示例
{
"msg": "success",
"code": 200,
"data": [
{
"like": 1,
"userImg": "/images/default.jpg",
"msg": "请问请问",
"title": "10月份有哪些推荐一家人去的地方",
"username": "xiaoliu",
"address": "成都",
"time": "2023-01-12T16:27:47.000+00:00",
"thumbsupnum": 234
}
]
}
返回参数说明
参数名 | 类型 | 说明 |
---|---|---|
like | Integer | 收藏数 |
thumbsupnum | Integer | 点赞数 |
title | String | 问题的标题 |
msg | String | 回答的内容 |
userImg | String | 答主的头像 |
username | String | 答主的昵称 |
address | String | 问题的归属目的地 |
time | Date | 回答的时间 |
备注
- 用户未登录或登录失效, 返回错误代码情况示例
{
"timestamp": "2023-01-12T15:31:00.768+00:00",
"status": 500,
"error": "Internal Server Error",
"message": "",
"path": "/questions/collect"
}