获取活动内发布的文章列表
POST
https://www.micecube.com/api/article/getList获取活动内发布的文章列表,根据发布时间排序
请求参数
Header 参数
Mice-Auth
string
必需
授权验证参数,生成方式请见 授权验证 章节
Body 参数multipart/form-data
category_ids
string
分类id 逗号隔开
page
integer
页码
pagesize
integer
每页页数
search
string
可选
根据标题或内容搜索的关键字
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
1-成功
msg
string
返回说明
data
object
必需
data
array [object {30}]
必需
itemsCount
integer
共多少篇文章
total
integer
共多少页
currentPage
integer
当前页
url
string
忽略
time
integer
忽略
示例
{
"code": 1,
"msg": "成功",
"data": {
"data": [
{
"id": 4639,
"form_id": "203672",
"parent_id": 0,
"user_id": 0,
"category_id": "a:4:{i:0;a:1:{i:0;s:3:\"591\";}i:1;a:2:{i:0;s:3:\"591\";i:1;s:3:\"804\";}i:2;a:1:{i:0;s:3:\"803\";}i:3;a:2:{i:0;s:3:\"803\";i:1;s:3:\"805\";}}",
"post_title": "123",
"post_keywords": "",
"post_excerpt": "",
"post_source": "",
"post_author": "",
"post_content": "<p>随便写点东西</p>",
"thumbnail": "",
"attach": "",
"video": "",
"fileId": "",
"read_count": 25,
"like_count": 0,
"create_time": 1666852084,
"published_time": 1666852111,
"delete_time": 0,
"editor_type": 0,
"post_status": 1,
"list_order": 10000,
"media_id": "",
"url": "",
"top_time": "0",
"is_top": 0,
"location": 2,
"video_status": 0,
"ca_category_id": 591
}
],
"itemsCount": 1,
"total": 1,
"currentPage": 1
},
"url": "",
"time": 1694153559
}
修改于 1 年前