- koa-simple-template
- koa-project-template
- 1、用户接口
- 2、登录接口
- 3、动态接口
- 4、评论接口 —— 1 : n
- 5、标签接口 —— n : n
- 6、文件接口
动态-评论-标签详细列表
开发中
GET
/moment/details-1/list
请求参数
Query 参数
size
number
可选
示例值:
6
OFFSET
number
可选
示例值:
0
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://localhost:8000/moment/details-1/list'
返回响应
🟢200成功
application/json
Body
code
integer
必需
message
string
必需
data
array [object {7}]
必需
id
integer
必需
content
string
必需
creatAt
string
必需
updateAt
string
必需
user
object
必需
commentCount
integer
必需
labelCount
integer
必需
示例
{
"code": 0,
"message": "获取动态详细列表成功!!!",
"data": [
{
"id": 1,
"content": "~吾乃常山赵子龙~",
"creatAt": "2023-10-20T16:40:50.000Z",
"updateAt": "2023-10-20T16:40:50.000Z",
"user": {
"id": 5,
"name": "admin",
"creatAt": "2023-10-18 10:09:29.000000",
"updateAt": "2023-10-23 18:50:54.000000"
},
"commentCount": 1,
"labelCount": 5
},
{
"id": 2,
"content": "我以为吕布已经天下无敌了",
"creatAt": "2023-10-20T13:49:36.000Z",
"updateAt": "2023-10-20T14:53:10.000Z",
"user": {
"id": 6,
"name": "admin1",
"creatAt": "2023-10-19 17:10:44.000000",
"updateAt": "2023-10-23 18:40:52.000000"
},
"commentCount": 3,
"labelCount": 3
},
{
"id": 7,
"content": "纵然再苦守数百年 我的心意 始终如一",
"creatAt": "2023-10-20T13:58:23.000Z",
"updateAt": "2023-10-20T13:58:23.000Z",
"user": {
"id": 1,
"name": "zhangsan",
"creatAt": "2023-10-17 22:30:33.000000",
"updateAt": "2023-10-20 21:56:12.000000"
},
"commentCount": 0,
"labelCount": 0
},
{
"id": 8,
"content": "曾几何时,他也好,她也好,都是这家伙的被害者。所以我才憎恶着。这个强求着所谓“大家”的世界。必须建立在牺牲某人之上才能成立的低劣的和平。以温柔和正义粉饰,明明是恶毒之物却登大雅之堂,随着时间的流逝越发凶恶,除欺瞒外别无其二的空虚的概念。过去和世界都是无法改变的。发生过的事情和所谓的“大家”都是无法改变的。但是,并不是说自己只能隶属于他们",
"creatAt": "2023-10-20T13:58:24.000Z",
"updateAt": "2023-10-20T13:58:24.000Z",
"user": {
"id": 1,
"name": "zhangsan",
"creatAt": "2023-10-17 22:30:33.000000",
"updateAt": "2023-10-20 21:56:12.000000"
},
"commentCount": 0,
"labelCount": 0
},
{
"id": 9,
"content": "不要告诉我你不需要保护,不要告诉我你不寂寞,知微,我只希望你,在走过黑夜的那个时辰,不要倔强的选择一个人。",
"creatAt": "2023-10-20T13:58:25.000Z",
"updateAt": "2023-10-20T13:58:25.000Z",
"user": {
"id": 3,
"name": "root",
"creatAt": "2023-10-20 21:55:12.000000",
"updateAt": "2023-10-20 21:55:12.000000"
},
"commentCount": 0,
"labelCount": 0
},
{
"id": 10,
"content": "If you shed tears when you miss the sun, you also miss the stars.如果你因失去了太阳而流泪,那么你也将失去群星了。",
"creatAt": "2023-10-20T13:58:26.000Z",
"updateAt": "2023-10-20T13:58:26.000Z",
"user": {
"id": 1,
"name": "zhangsan",
"creatAt": "2023-10-17 22:30:33.000000",
"updateAt": "2023-10-20 21:56:12.000000"
},
"commentCount": 0,
"labelCount": 0
}
]
}
修改于 2023-12-01 01:05:27