本网站ajax api接口说明

1. 返回栏目列表
url:
http://www.malaoshi.top/api/query/queryChannelByCache 
结果:返回所有栏目
返回格式:

{
    "result": 1,
    "data": [
        {
            "id": "8",
            "parentId": "-1",
            "sort": 0,
            "description": null,
            "name": "首页",
            "show": 1,
            "url": null
        },
        {
            "id": "9",
            "parentId": "-1",
            "sort": 3,
            "description": null,
            "name": "网址导航",
            "show": 1,
            "url": "daohang.html"
        },
        {
            "id": "15",
            "parentId": "-1",
            "sort": 4,
            "description": null,
            "name": "技术文章",
            "show": 1,
            "url": "list_15.html"
        }
    ]
}


2.查询文章
url:http://www.malaoshi.top/api/query/queryArticle
参数:
        pageNumber:页数
        pageSize:每页显示记录数
        where:查询条件
        orderBy:排序
        maxTitleLength:标题长度限制
结果:返回文章列表

返回格式:json

{
    "result": 1,
    "data": {
        "pageSize": 2,
        "pageNumber": 1,
        "list": [
            {
                "sort": 0,
                "down_num": 0,
                "tag": "",
                "tagArray": null,
                "file_name": null,
                "type": null,
                "creator": "e1077de1a2d449cdb6cb5d55b3119d0e",
                "c_name": "技术文章",
                "version": 4,
                "id": "1C7E6eYVaQU",
                "title": "本网站ajax api接口说明",
                "area": null,
                "thumb_path": null,
                "publish": 1,
                "modify_time": "2017-10-24 14:28:14",
                "tag_id": "",
                "parent_id": "-1",
                "top": 0,
                "redirect_url": "",
                "abstract": "本网站ajax api接口说明",
                "original_url": "",
                "video_status": null,
                "keywords": "本网站ajax api接口说明",
                "file_size": 0,
                "allTitle": "本网站ajax api接口说明",
                "file_path": null,
                "view_num": 10001,
                "reply_num": 0,
                "deleted": 0,
                "cid": "15",
                "content": "",
                "category": null,
                "editor": "ueditor",
                "show_homepage": 1,
                "zan": 0,
                "create_time": "2017-10-24 14:26:02",
                "release_date": "2017-10-24 14:25:12",
                "original": "",
                "content_markdown": null,
                "creator_name": "马育民",
                "jinghua": 0
            },
            {
                "sort": 0,
                "down_num": 0,
                "tag": "json,javascript",
                "tagArray": [
                    "json",
                    "javascript"
                ],
                "file_name": null,
                "type": null,
                "creator": "e1077de1a2d449cdb6cb5d55b3119d0e",
                "c_name": "JS",
                "version": 1,
                "id": "1C7DTxmcqfb",
                "title": "jquery提交json数组",
                "area": null,
                "thumb_path": null,
                "publish": 1,
                "modify_time": "2017-10-22 22:06:16",
                "tag_id": "e033be251a844794a49792dbed48958c,873d8070107f4d49b5fe2bc5e40d830c",
                "parent_id": "-1",
                "top": 0,
                "redirect_url": "",
                "abstract": "jquery提交json数组",
                "original_url": "",
                "video_status": null,
                "keywords": "jquery提交json数组",
                "file_size": 0,
                "allTitle": "jquery提交json数组",
                "file_path": null,
                "view_num": 10000,
                "reply_num": 0,
                "deleted": 0,
                "cid": "14",
                "content": "",
                "creator_name": "马育民",
                "jinghua": 0
            }
        ],
        "totalRow": 323,
        "totalPage": 162
    }
}




原文出处:/show_1C7E6eYVaQU.html