文章详情
开发中GET
/article/{id}修改时间: 2 年前
根据文章 id 获取文章详情
请求参数
Path 参数
id
integer
文章 id
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
message
string
必需
data
object
必需
id
integer
必需
title
string
必需
desc
string
必需
content
string
必需
img
string
必需
category_name
string
必需
tag_names
array[string]
必需
type
integer
必需
original_url
string
必需
is_top
integer
必需
status
integer
必需
示例
{
"code": 0,
"message": "OK",
"data": {
"id": 2,
"title": "项目运行成功",
"desc": "",
"content": "6666\n\n恭喜你,项目已经成功运行起来了!\n\n```go\nfmt.Println(\"恭喜!\")\n```\n\n```js\nconsole.log(\"恭喜!\")\n```\n\n🆗😋",
"img": "https://static.talkxj.com/articles/1395642324821741569.png",
"category_name": "前端",
"tag_names": [
"Golang",
"Vue"
],
"type": 1,
"original_url": "",
"is_top": 0,
"status": 1
}
}
修改于 2 年前