文档
测试

公共帖子列表

POST
/home/articleList

请求参数

参数名
类型
描述
必填
openid
openid
必填
type_id
int
分类id 全部为0
必填
match
string
模糊查询
必填
page
int
页码
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
current_page
int
示例:1
必填
data
array
数据列表
必填
head_img
string
示例:www.shudong.com/head_mo/L.jpeg 头像地址
必填
username
string
示例:L26724 用户名
必填
id
int
示例:4 帖子id
必填
title
string
示例:大自然 帖子标题
必填
body
string
示例:风景 帖子内容
必填
type_id
string
示例:5 所属分类id
必填
addtime
string
示例:2021-03-17 17:22 发帖时间
必填
zan_status
string
示例:fasle 本人是否点赞 false true
必填
report_status
string
示例:fasle 本人是否举报 false true
必填
type_name
array
数据列表 所属分类数组
必填
id
int
示例:5 分类id
必填
name
string
示例:风景 分类名
必填
time
string
示例:6小时前
必填
first_page_url
string
示例:http://192.168.31.243/home/articleList?page=1
必填
from
int
示例:1
必填
last_page
int
示例:1
必填
last_page_url
string
示例:http://192.168.31.243/home/articleList?page=1
必填
next_page_url
object
示例:null
必填
path
string
示例:http://192.168.31.243/home/articleList
必填
per_page
int
示例:20
必填
prev_page_url
object
示例:null
必填
to
int
示例:3
必填
total
int
示例:3
必填

说明 / 示例

{ "code": 200, "msg": "成功", "data": { "current_page": 1, "data": [ { "head_img": "www.shudong.com/head_mo/L.jpeg", "username": "L26724", "id": 4, "title": "大自然", "body": "风景", "type_id": "5", "addtime": "2021-03-17 17:22", "zan_status": "fasle", "report_status": "true", "type_name": [ { "id": 5, "name": "风景" } ], "time": "6小时前" }, { "head_img": "www.shudong.com/head_mo/L.jpeg", "username": "L26724", "id": 3, "title": "宠物", "body": "小狗", "type_id": "6", "addtime": "2021-03-17 11:28", "zan_status": "true", "report_status": "true", "type_name": [ { "id": 6, "name": "自然" } ], "time": "6小时前" }, { "head_img": "www.shudong.com/head_mo/L.jpeg", "username": "L26724", "id": 2, "title": "汽车", "body": "贵啊", "type_id": "2,6", "addtime": "2021-03-17 11:28", "zan_status": "fasle", "report_status": "true", "type_name": [ { "id": 2, "name": "友情" }, { "id": 6, "name": "自然" } ], "time": "6小时前" } ], "first_page_url": "http://192.168.31.243/home/articleList?page=1", "from": 1, "last_page": 1, "last_page_url": "http://192.168.31.243/home/articleList?page=1", "next_page_url": null, "path": "http://192.168.31.243/home/articleList", "per_page": 20, "prev_page_url": null, "to": 3, "total": 3 } }