~~~[api]
get:/interflow/get_lists
int:limit=10#每页显示数量
string:type= #帖子类型
int:category_id=无#帖子分类ID
int:uid=无#用户ID
<<<
success
{
"current_page": 1,
"data": [
{
"id": 4,
"type": "text",
"category_id": 10,
"uid": null,
"uinfo":[],
"content": null,
"pictures": null,
"video": null,
"view": 0,
"comment_count": 0,
"zan_count": 0,
"created_at": "2021-03-30 22:28:44",
"updated_at": "2021-03-30 22:28:44",
"deleted_at": null
},
{
"id": 3,
"type": "text",
"category_id": 10,
"uid": null,
"content": null,
"pictures": null,
"video": null,
"view": 0,
"comment_count": 0,
"zan_count": 0,
"created_at": "2021-03-30 22:28:39",
"updated_at": "2021-03-30 22:28:39",
"deleted_at": null
},
{
"id": 2,
"type": "text",
"category_id": 10,
"uid": null,
"content": null,
"pictures": null,
"video": null,
"view": 0,
"comment_count": 0,
"zan_count": 0,
"created_at": "2021-03-30 22:26:24",
"updated_at": "2021-03-30 22:26:24",
"deleted_at": null
},
{
"id": 1,
"type": "text",
"category_id": 10,
"uid": null,
"content": null,
"pictures": null,
"video": null,
"view": 0,
"comment_count": 0,
"zan_count": 0,
"created_at": "2021-03-30 22:25:21",
"updated_at": "2021-03-30 22:25:21",
"deleted_at": null
}
],
"first_page_url": "http://laraveldebug.test/interflow/get_lists?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://laraveldebug.test/interflow/get_lists?page=1",
"next_page_url": null,
"path": "http://laraveldebug.test/interflow/get_lists",
"per_page": 10,
"prev_page_url": null,
"to": 4,
"total": 4
}
<<<
error
{
"current_page": 1,
"data": [
],
"first_page_url": "http://laraveldebug.test/interflow/get_lists?page=1",
"from": null,
"last_page": 1,
"last_page_url": "http://laraveldebug.test/interflow/get_lists?page=1",
"next_page_url": null,
"path": "http://laraveldebug.test/interflow/get_lists",
"per_page": 10,
"prev_page_url": null,
"to": null,
"total": 0
}
~~~