8.5 文件分类功能
客户端
web前端通过Ajax动态想后台请求页面。
http请求方式GET
请求url为/data
传输协议以json数据格式为例:
{
"cmd":"kind",
"fromId":"0",
"count":"8",
"type","2"//文件类型
}
服务端
{
"games": [
{
"id": "group1/M00/00/00/wKgCbFepTmGAQvuXAAEYXfRAMkc937.png",
"kind": 2,
"title_m": "01-nginx-市场占有率.png",
"title_s": "文件title_s",
"descrip": "2016-08-09 11:30:35",
"picurl_m": "http://172.16.0.148/static/file_png/png.png",
"url": "http://192.168.2.108/group1/M00/00/00/wKgCbFepTmGAQvuXAAEYXfRAMkc937.png",
"pv": 2,
"hot": 0
},
{
"id": "group1/M00/00/00/wKgCbFepSKeASREwAAapfc9k6Rc011.jpg",
"kind": 2,
"title_m": "小猫5.jpg",
"title_s": "文件title_s",
"descrip": "2016-08-09 11:06:10",
"picurl_m": "http://172.16.0.148/static/file_png/jpg.png",
"url": "http://192.168.2.108/group1/M00/00/00/wKgCbFepSKeASREwAAapfc9k6Rc011.jpg",
"pv": 1,
"hot": 0
},
{
"id": "group1/M00/00/00/wKgCbFepSKeAOkV4AAY7zSGunKE058.jpg",
"kind": 2,
"title_m": "小猫6.jpg",
"title_s": "文件title_s",
"descrip": "2016-08-09 11:06:09",
"picurl_m": "http://172.16.0.148/static/file_png/jpg.png",
"url": "http://192.168.2.108/group1/M00/00/00/wKgCbFepSKeAOkV4AAY7zSGunKE058.jpg",
"pv": 0,
"hot": 0
},
{
"id": "group1/M00/00/00/wKgCbFepSKeARhoLAAXsKfNoK_k046.jpg",
"kind": 2,
"title_m": "猫4.jpg",
"title_s": "文件title_s",
"descrip": "2016-08-09 11:06:09",
"picurl_m": "http://172.16.0.148/static/file_png/jpg.png",
"url": "http://192.168.2.108/group1/M00/00/00/wKgCbFepSKeARhoLAAXsKfNoK_k046.jpg",
"pv": 0,
"hot": 0
},
{
"id": "group1/M00/00/00/wKgCbFepSKeAADFfAAbuwxC1bYU619.jpg",
"kind": 2,
"title_m": "猫2.jpg",
"title_s": "文件title_s",
"descrip": "2016-08-09 11:06:09",
"picurl_m": "http://172.16.0.148/static/file_png/jpg.png",
"url": "http://192.168.2.108/group1/M00/00/00/wKgCbFepSKeAADFfAAbuwxC1bYU619.jpg",
"pv": 0,
"hot": 0
}
]
}