免费新闻娱乐接口文档
-
接口定义
-
BaseUrlL:http://211.149.184.79:8080/we/
-
请求参数:key - value
-
请求方式:get/post
-
返回数据基本结构:{"message":"获取成功","data":[],"code":1}
- 备注:message为服务器返回给客户端的消息体 code为1的情况下为成功 非1的情况下为失败,且消息体有相应的提示 data为后端返回给前段的数据
-
1:)获取热门娱乐新闻帖子:
-
URL:http://211.149.184.79:8080/we/mobile/getAllTopMessage.do
-
请求参数:暂无
-
请求方式:get/post
-
返回数据示例:{"message":"获取成功","data":[{"messageId":59,"messageTitle":"新","messageContentOne":"是打发打发","messageContentTwo":"沙发沙发沙发斯蒂芬","messageImgSrc":"/carMessage/f3f62b0a-f30d-4a1a-8250-39035651759a1941370924053.jpg","uuid":"f3f62b0a-f30d-4a1a-8250-39035651759a","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=f3f62b0a-f30d-4a1a-8250-39035651759a","counts":79,"welcome":null,"userId":"22","userNickname":"djf"},{"messageId":58,"messageTitle":"是的冯绍峰的身份","messageContentOne":"师傅的说法都是","messageContentTwo":"沙发沙发斯蒂芬地方","messageImgSrc":"/carMessage/e33da307-65b0-4316-b197-b2cb58f888251941370924053.jpg","uuid":"e33da307-65b0-4316-b197-b2cb58f88825","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=e33da307-65b0-4316-b197-b2cb58f88825","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":57,"messageTitle":"顺丰到付","messageContentOne":"嘎嘎嘎","messageContentTwo":"十分大方大方","messageImgSrc":"/carMessage/6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d","counts":1,"welcome":null,"userId":"0","userNickname":""},{"messageId":56,"messageTitle":"老时间浪费时间的;冷风机","messageContentOne":"偶尔UR偶尔UR哦","messageContentTwo":"沙发沙发斯蒂芬","messageImgSrc":"/carMessage/2e717810-73d6-410c-b0ab-f644aaea2427740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"2e717810-73d6-410c-b0ab-f644aaea2427","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=2e717810-73d6-410c-b0ab-f644aaea2427","counts":60,"welcome":null,"userId":"0","userNickname":""},{"messageId":55,"messageTitle":"sdfsfsdfsf","messageContentOne":"sdfsdfsdfsdfsdf","messageContentTwo":"adffffasfsfasfsfsfs","messageImgSrc":"/carMessage/76bdccad-d011-41bc-b6ef-67777368929d740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"76bdccad-d011-41bc-b6ef-67777368929d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=76bdccad-d011-41bc-b6ef-67777368929d","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":54,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/09fc37c4-f696-4c22-a90e-e0a7fbb8af1b1941370924053.jpg","uuid":"09fc37c4-f696-4c22-a90e-e0a7fbb8af1b","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=09fc37c4-f696-4c22-a90e-e0a7fbb8af1b","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":53,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/2f953144-28c8-4598-8b4e-c0e02a05de151941370924053.jpg","uuid":"2f953144-28c8-4598-8b4e-c0e02a05de15","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=2f953144-28c8-4598-8b4e-c0e02a05de15","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":52,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/382fd858-154d-4940-b664-5ed7d17de1d41941370924053.jpg","uuid":"382fd858-154d-4940-b664-5ed7d17de1d4","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=382fd858-154d-4940-b664-5ed7d17de1d4","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":51,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/88107596-4b1a-48c8-bd3d-4285db1c390d1941370924053.jpg","uuid":"88107596-4b1a-48c8-bd3d-4285db1c390d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=88107596-4b1a-48c8-bd3d-4285db1c390d","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":50,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/e17def37-23b0-40b6-9fc2-6b474a84bb481941370924053.jpg","uuid":"e17def37-23b0-40b6-9fc2-6b474a84bb48","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=e17def37-23b0-40b6-9fc2-6b474a84bb48","counts":0,"welcome":null,"userId":"0","userNickname":""}],"code":1}
- 备注:只返回10条热门数据
-
2:)获取所有娱乐新闻帖子:
-
URL:http://211.149.184.79:8080/we/mobile/getAllCarMessageForPage.do?page=1&size=10
-
请求参数:{page当前页:size每页的数量}
-
请求方式:get/post
-
返回数据示例:{"message":"获取成功","data":[{"messageId":59,"messageTitle":"新","messageContentOne":"是打发打发","messageContentTwo":"沙发沙发沙发斯蒂芬","messageImgSrc":"/carMessage/f3f62b0a-f30d-4a1a-8250-39035651759a1941370924053.jpg","uuid":"f3f62b0a-f30d-4a1a-8250-39035651759a","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=f3f62b0a-f30d-4a1a-8250-39035651759a","counts":79,"welcome":null,"userId":"22","userNickname":"djf"},{"messageId":58,"messageTitle":"是的冯绍峰的身份","messageContentOne":"师傅的说法都是","messageContentTwo":"沙发沙发斯蒂芬地方","messageImgSrc":"/carMessage/e33da307-65b0-4316-b197-b2cb58f888251941370924053.jpg","uuid":"e33da307-65b0-4316-b197-b2cb58f88825","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=e33da307-65b0-4316-b197-b2cb58f88825","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":57,"messageTitle":"顺丰到付","messageContentOne":"嘎嘎嘎","messageContentTwo":"十分大方大方","messageImgSrc":"/carMessage/6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=6d1f7ec9-2a2a-4a1f-891d-ba9fa0fed69d","counts":1,"welcome":null,"userId":"0","userNickname":""},{"messageId":56,"messageTitle":"老时间浪费时间的;冷风机","messageContentOne":"偶尔UR偶尔UR哦","messageContentTwo":"沙发沙发斯蒂芬","messageImgSrc":"/carMessage/2e717810-73d6-410c-b0ab-f644aaea2427740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"2e717810-73d6-410c-b0ab-f644aaea2427","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=2e717810-73d6-410c-b0ab-f644aaea2427","counts":60,"welcome":null,"userId":"0","userNickname":""},{"messageId":55,"messageTitle":"sdfsfsdfsf","messageContentOne":"sdfsdfsdfsdfsdf","messageContentTwo":"adffffasfsfasfsfsfs","messageImgSrc":"/carMessage/76bdccad-d011-41bc-b6ef-67777368929d740DEFA5-C950-4D7F-888E-7C7A8A518322.png","uuid":"76bdccad-d011-41bc-b6ef-67777368929d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=76bdccad-d011-41bc-b6ef-67777368929d","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":54,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/09fc37c4-f696-4c22-a90e-e0a7fbb8af1b1941370924053.jpg","uuid":"09fc37c4-f696-4c22-a90e-e0a7fbb8af1b","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=09fc37c4-f696-4c22-a90e-e0a7fbb8af1b","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":53,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/2f953144-28c8-4598-8b4e-c0e02a05de151941370924053.jpg","uuid":"2f953144-28c8-4598-8b4e-c0e02a05de15","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=2f953144-28c8-4598-8b4e-c0e02a05de15","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":52,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/382fd858-154d-4940-b664-5ed7d17de1d41941370924053.jpg","uuid":"382fd858-154d-4940-b664-5ed7d17de1d4","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=382fd858-154d-4940-b664-5ed7d17de1d4","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":51,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/88107596-4b1a-48c8-bd3d-4285db1c390d1941370924053.jpg","uuid":"88107596-4b1a-48c8-bd3d-4285db1c390d","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=88107596-4b1a-48c8-bd3d-4285db1c390d","counts":0,"welcome":null,"userId":"0","userNickname":""},{"messageId":50,"messageTitle":"sfsfsfs","messageContentOne":"sdfsdf","messageContentTwo":"sfsfsfsfs","messageImgSrc":"/carMessage/e17def37-23b0-40b6-9fc2-6b474a84bb481941370924053.jpg","uuid":"e17def37-23b0-40b6-9fc2-6b474a84bb48","link":"http://localhost:8080/we/mobile/getGsMessageForId.do?id=e17def37-23b0-40b6-9fc2-6b474a84bb48","counts":0,"welcome":null,"userId":"0","userNickname":""}],"code":1}
- 备注:暂无
-
3:)发布娱乐新闻帖子:
-
URL:http://211.149.184.79:8080/we/mobile/sendGsMessage.do
-
请求参数:{message_title标题:message_content_one一级内容:message_content_two:二级内容:user_id:0:file文件类型}
-
请求方式:post
-
返回数据示例:{"message":"发帖成功","data":"http://localhost:8080/we/car/getGsMessageForId.do?id=8ac66cd8-4794-4c53-93d4-bb2d24fe1412","code":1}
-
备注:文件内容标准的图片格式,且文件大小服务器有作限制不能大于(3~5)M
- 网页发布新闻地址: 网页版新闻发布页面
备注:本接口作为第三方,供开发者调用,用于学习交流之用,如果开发者作为商用发布的新闻或者涉及到的版权法律问题,一律自行负责
交流QQ群:292905444(duke)