文档
测试

文章获取

POST
/api/get_post

接口描述

获取文章

请求头

参数名
类型
描述
必填
Cookies
string
cookies
必填

请求参数

参数名
类型
描述
必填
num
int
显示在主页的文章数量
必填
post_id
int
指定某post_id的文章,存在此值时忽略num参数只返回一篇文章
必填

响应参数

参数名
类型
描述
必填
status
dict
响应状态
必填
code
str
是否成功,SUC成功,ERR失败
必填
msg
str
对响应状态的描述
必填
data
dict
响应内容
必填
post_list
list
多篇文章列表
必填
post_id
int
文章id
必填
title
str
文章标题
必填
date
date
发布时间
必填
post_img
str
文章封面
必填
up_num
int
点赞数
必填
comment_num
int
评论数
必填
view_num
int
阅读量
必填
summary
str
文章摘要
必填
content
str
文章正文 指定文章id时返回
必填