企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
***** **咨询项目接口文档 编写中。。。** [TOC=6] # 1. 编写接口的目的。 让项目真实,可上线。 # 2. 接口编写与维护 姓名:赵亮 联系方式 QQ:2668645098 电话:15116970728 # 3. 详细接口 ### 必读 主机地址:[http://47.94.132.125:8080](http://47.94.132.125:8080/) 项目名称:zixun 测试项目:zixunnew ### 分类接口 **** api:categories URL:[http://47.94.132.125:8080/zixunnew/categories](http://47.94.132.125:8080/zixunnew/categories) 接口用途: 用于获取分类信息, 包括大分类和小分类 请求方式: GET 支持格式: JSON 参数: 无 返回结果: ~~~ // 20190322092132 // http://47.94.132.125:8080/zixunnew/categories { "code": 2000, "msg": "成功", "result": [ { "children": [ { "id": 4, "title": "风景", "type": 2, "url": "/fengjing" }, { "id": 5, "title": "美女", "type": 2, "url": "/meinv" }, { "id": 6, "title": "动漫卡通", "type": 2, "url": "dongma" }, { "id": 7, "title": "娱乐明星", "type": 2, "url": "yule" }, { "id": 8, "title": "萌宠", "type": 2, "url": "mengchong" }, { "id": 9, "title": "汽车", "type": 2, "url": "qiche" }, { "id": 10, "title": "游戏", "type": 2, "url": "youxi" } ], "id": 0, "title": "新闻", "type": 1, "url": "" }, { "id": 1, "title": "要务", "type": 1, "url": "" }, { "id": 2, "title": "圈子", "type": 1, "url": "" }, { "id": 3, "title": "我的", "type": 1, "url": "" } ] } ~~~ **** 新闻接口 api:[fengjing]|[meinv]|[dongman]|[yule]|[mengchong]|[qiche]|[youxi] URL:[http://47.94.132.125:8080/zixunnew/fengjing?page=1](http://47.94.132.125:8080/zixunnew/fengjing?page=1) 接口用途: 用于获取新闻信息, 包括topNews和news 请求方式: GET 支持格式: JSON 参数: page 整型 页码 返回结果: ~~~ // 20190322101541 // http://47.94.132.125:8080/zixunnew/fengjing?page=1 { "code": 1000, "data": { "news": [ { "comment": false, "id": 0, "imageUrl": "image/banner1.jpeg", "publishAt": "2019-03-22", "title": "特朗普:是时候承认以色列对戈兰高地拥有主权了\n", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 1, "imageUrl": "image/banner5.jpeg", "publishAt": "2019-03-22", "title": "外交部回应蔡英文将“过境”夏威夷:已向美方提出严正交涉", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 2, "imageUrl": "image/banner2.jpeg", "publishAt": "2019-03-22", "title": "你无可替代 隋文静/韩聪上演“王者归来”", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 3, "imageUrl": "image/banner4.jpeg", "publishAt": "2019-03-22", "title": "华为新MateBook X Pro体验:全面屏有了更多黑科技", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 4, "imageUrl": "image/banner3.jpeg", "publishAt": "2019-03-22", "title": "高分五号、六号卫星正式投入使用", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 5, "imageUrl": "image/banner1.jpeg", "publishAt": "2019-03-22", "title": "脸书再曝安全漏洞:数亿用户密码没加密保存,员工可直接浏览", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 6, "imageUrl": "image/banner2.jpeg", "publishAt": "2019-03-22", "title": "华为P30新机发布在即,去年老旗舰华为Mate20开始降价", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 7, "imageUrl": "image/banner3.jpeg", "publishAt": "2019-03-22", "title": "尴尬!蔡英文抵达帕劳 当地民众不知道她是谁…", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 8, "imageUrl": "image/banner4.jpeg", "publishAt": "2019-03-22", "title": "应急管理部工作组到达江苏盐城指导救援处置工作", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 9, "imageUrl": "image/banner5.jpeg", "publishAt": "2019-03-22", "title": "那声惨叫让所有人傻眼!隋文静夺冠后才说:赛前我捡回了一条命", "type": "news", "url": "724D6A55496A11726628.html" } ], "topnews": [ { "comment": false, "id": 0, "imageUrl": "image/banner1.jpeg", "publishAt": "2019-03-22", "title": "波音接受质询", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 1, "imageUrl": "image/banner2.jpeg", "publishAt": "2019-03-22", "title": "欧阳娜娜声明", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 2, "imageUrl": "image/banner3.jpeg", "publishAt": "2019-03-22", "title": "王思聪 姿态", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 3, "imageUrl": "image/banner4.jpeg", "publishAt": "2019-03-22", "title": "小米收购九维宽频", "type": "news", "url": "724D6A55496A11726628.html" }, { "comment": false, "id": 4, "imageUrl": "image/banner5.jpeg", "publishAt": "2019-03-22", "title": "隋文静韩聪夺冠", "type": "news", "url": "724D6A55496A11726628.html" } ] }, "msg": "成功" } ~~~