~~~[api]
post:/api/cms/archivelist
*string:version=api_1.0.0#api版本信息
*string:is_token=0#不进行token验证
*string:account=cms#权限账号
*string:auth_sign=cms#接口签名
string:search= #搜索文章名称
int:pageNumber=1#要请求的列表数据页码
int:pageSize=10#列表数据每页展示的数量
string:filter='{"channel_id":"1"}'#文章栏目id
string:op='{"channel_id":"="}'#对应上述id的查询逻辑,非业务特殊需求,参数默认“=”即可
string:sort="weigh desc,createtime desc"#1、排序参数:weigh(权重)、createtime(创建时间)2、参数排序决定实际搜索时的排序主次
channel_id= 29, #模型id,用于查询副表。若不需要副表筛选,则无需此参数。
addonfilter="archive_id=23" #设置副表查询条件。若不需要副表筛选,则无需此参数。
<<<
success
此处仅显示接口实际测试结果,具体返回值说明请对照下方代码示例
<<<
error
此处仅显示接口实际测试结果,具体返回值说明请对照下方代码示例
~~~
~~~
{
"code": 1, //请求成功码
"msg": "", //请求结果说明
"time": "1573110703", //响应时间戳
"data": {
"total": 2, //查询到的数据总条数
"rows": [
{
"id": 25, //文章id
"user_id": 0,
"channel_id": 30, //栏目id
"model_id": 6, //模型id
"special_id": 0,
"title": "极地生物", //文章标题
"style": "",
"flag": "",
//文章缩略图
"image": "http://www.rizhaohaiyangguan.club/uploads/20191030/6db0edc234ecd61b089349090c58b8f6.png",
"keywords": "", //文章关键词
//文章简介
"description": "南极和北极大部分地区的温度很少会升到0℃以上。那里的冰冻美景则是由不同类型的冰构成的。雪落到陆地上后堆叠起来,雪粒在挤压下形成冰川冰。巨大的冰川冰形成冰盖,覆盖在南极洲和格陵兰岛的大部分地区。这些冰盖的厚度通常超过2.5千米,蓄积了地球上的大部分淡水资源。在极区极端寒冷的地带,海洋表面会结冰,这被称为海冰。大部分水域以及南极洲的海岸周围都覆盖着海冰。然而,北冰洋和南极洲并没有完全被冰雪覆盖。到了夏",
"tags": "", //文章标签
"weigh": 0, //显示权重,数值越大越靠前
"views": 0,
"comments": 0,
"likes": 0,
"dislikes": 0,
"diyname": "",
"createtime": 1572404871,
"updatetime": 1572597391,
"publishtime": 1572404730, //文章发布时间
"deletetime": null,
"memo": "",
"status": "normal", //文章状态
"archive_id": "23", //所属的父文章id
"channel": { //所属栏目信息
"id": 30, //栏目id
"type": "list",
"model_id": 6,
"parent_id": 0,
"name": "展品", //栏目名称
"image": "",
"flag": "",
"keywords": "",
"description": "",
"diyname": "zhanpin",
"outlink": "",
"items": 7,
"weigh": 30,
"theme": "default",
"channeltpl": "channel_news.html",
"listtpl": "list_news.html",
"showtpl": "show_news_base.html",
"pagesize": 10,
"iscontribute": 0,
"isnav": 0,
"createtime": 1572404319,
"updatetime": 1573022308,
"status": "normal",
"type_text": "List",
"status_text": "正常",
"url": "/cms/c/zhanpin.html"
},
"flag_text": "",
"status_text": "正常",
"publishtime_text": "2019-10-30 11:05:30",
"url": "/cms/a/25.html",
"style_bold": false,
"style_color": ""
},
{
"id": 24,
"user_id": 0,
"channel_id": 30,
"model_id": 6,
"special_id": 0,
"title": "埃及鲸鱼谷考古发现",
"style": "",
"flag": "",
"image": "http://www.rizhaohaiyangguan.club/uploads/20191030/28e55ae0d65a92c5b2d881d043d9c53f.png",
"keywords": "",
"description": "",
"tags": "",
"weigh": 0,
"views": 0,
"comments": 0,
"likes": 0,
"dislikes": 0,
"diyname": "",
"createtime": 1572404724,
"updatetime": 1572404909,
"publishtime": 1572404647,
"deletetime": null,
"memo": "",
"status": "normal",
"archive_id": "23",
"channel": {
"id": 30,
"type": "list",
"model_id": 6,
"parent_id": 0,
"name": "展品",
"image": "",
"flag": "",
"keywords": "",
"description": "",
"diyname": "zhanpin",
"outlink": "",
"items": 7,
"weigh": 30,
"theme": "default",
"channeltpl": "channel_news.html",
"listtpl": "list_news.html",
"showtpl": "show_news_base.html",
"pagesize": 10,
"iscontribute": 0,
"isnav": 0,
"createtime": 1572404319,
"updatetime": 1573022308,
"status": "normal",
"type_text": "List",
"status_text": "正常",
"url": "/cms/c/zhanpin.html"
},
"flag_text": "",
"status_text": "正常",
"publishtime_text": "2019-10-30 11:04:07",
"url": "/cms/a/24.html",
"style_bold": false,
"style_color": ""
}
]
}
}
~~~