文档
测试

评论我的

POST
/home/commentsToMe

请求参数

参数名
类型
描述
必填
openid
必填
page
int
页码
必填

响应参数

参数名
类型
描述
必填
code
int
示例:200
必填
msg
string
示例:成功
必填
data
object
数据字典
必填
current_page
int
示例:1
必填
data
array
数据列表
必填
username
string
示例:测试胡 帖子作者名
必填
article_id
int
示例:3 帖子id
必填
title
string
示例:宠物 帖子标题
必填
body
string
示例:小狗 帖子内容
必填
comments_id
int
示例:8 评论id
必填
content
string
示例:欢迎大家多多留言 评论内容
必填
comments_user_name
string
示例:测试胡 评论人
必填
comments_head_img
string
示例:/head_img/1616055250722.jpg 评论人头像
必填
time
string
示例:一天前
必填
addtime
string
示例:2021-03-18 12:16
必填
first_page_url
string
示例:http://192.168.31.243/home/commentsToMe?page=1
必填
from
int
示例:1
必填
last_page
int
示例:1
必填
last_page_url
string
示例:http://192.168.31.243/home/commentsToMe?page=1
必填
next_page_url
object
示例:null
必填
path
string
示例:http://192.168.31.243/home/commentsToMe
必填
per_page
int
示例:20
必填
prev_page_url
object
示例:null
必填
to
int
示例:2
必填
total
int
示例:2
必填

说明 / 示例

{ "code": 200, "msg": "成功", "data": { "current_page": 1, "data": [ { "username": "测试胡", "article_id": 3, "title": "宠物", "body": "小狗", "comments_id": 8, "content": "欢迎大家多多留言", "comments_user_name": "测试胡", "comments_head_img": "/head_img/1616055250722.jpg", "time": "一天前", "addtime": "2021-03-18 12:16" }, { "username": "测试胡", "article_id": 3, "title": "宠物", "body": "小狗", "comments_id": 6, "content": "好", "comments_user_name": "X52404", "comments_head_img": "/head_mo/X.jpeg", "time": "一天前", "addtime": "2021-03-18 11:41" } ], "first_page_url": "http://192.168.31.243/home/commentsToMe?page=1", "from": 1, "last_page": 1, "last_page_url": "http://192.168.31.243/home/commentsToMe?page=1", "next_page_url": null, "path": "http://192.168.31.243/home/commentsToMe", "per_page": 20, "prev_page_url": null, "to": 2, "total": 2 } }