新闻后台接口

Welcome use !

分类接口(Get|Post)

1
2
3
4
5
6
7
url:http://readshe.com/api/post/categories
params:null
return:
[{"id":8,"value":"社会"},
{"id":9,"value":"股市"},
{id":13,"value":"科技"},
{"id":14,"value":"证券"}]

新闻列表(Post)

1
2
3
4
5
6
url:http://readshe.com/api/post/list
params:
category,string,eq=9 //分类id
page=1 //页码
rows=10 //每页条数
return:如下
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{
"lastPage": false,//忽略
"pageSize": 20,//忽略
"pageNumber": 1,//忽略
"firstPage": true,//忽略
"list": [
{
"icon": null,
"module": "A",
"desc": "呼和浩特5月12日电(张林虎)俗话说,虎毒不食子",
"status": "0",
"code": null,
"id": 20470,
"publicTime": "2016-05-12 16:13",
"content": "...",
"author": null,
"title": "27岁母亲杀害1岁亲生子称不后悔 患有精神分裂",
"category": "8",
"source": "新浪",
"address": "http://news.sina.com.cn/c/2016-05-12/doc-ifxsehvu8791685.shtml",
"fetchTime": "2016-05-13 16:40:09"
},
{
"icon": "http://n.sinaimg.cn/news/transform/20160404/EtTh-fxqxcnp8540722.png",
"module": "A",
"desc": "宋仲基被印冥币上",
"status": "0",
"code": null,
"id": 20489,
"publicTime": "2016-04-04 21:24 -",
"content": "...",
"author": null,
"title": "宋仲基被印上冥币遭网友调侃:“送终鸡”(图)",
"category": "8",
"source": "新浪",
"address": "http://news.sina.com.cn/s/wh/2016-04-04/doc-ifxqxcnp8540724.shtml",
"fetchTime": "2016-05-13 19:50:06"
}
],
"totalRow": 427,
"totalPage": 22
}