id 优先级高于 slug,二者至少提供一个。GET /api/post/content 共用访问限制,在 1 分钟内最多可以请求 20 次。{
"id": 0,
"slug": "string",
"password": "string"
}curl --location 'http://localhost:8098/api/post/content' \
--header 'Content-Type: application/json' \
--data '{
"id": 0,
"slug": "string",
"password": "string"
}'{
"code": 200,
"errMsg": null,
"data": {
"post": {
"postId": 5,
"title": "Kotlin 介绍",
"excerpt": "大家好啊,这是一个Kotlin的介绍文章",
"slug": "kotlin introduce",
"cover": "https://loac.cc/logo",
"allowComment": true,
"pinned": true,
"encrypted": true,
"visit": 6,
"category": {
"categoryId": 29,
"displayName": "KotlinA",
"slug": "kotlin",
"cover": "",
"unifiedCover": true,
"postCount": 1
},
"tags": [
{
"tagId": 53,
"displayName": "Kotlin",
"slug": "kotlin",
"color": "#41E8A0",
"postCount": 1
},
{
"tagId": 73,
"displayName": "Kotlin 笔记",
"slug": "kotlin note",
"color": null,
"postCount": 1
}
],
"createTime": 1709547870061,
"lastModifyTime": null
},
"content": "大家好啊,这是一个 Kotlin 的介绍文章"
}
}