接口文档

接口文档


用户消息中心首页

<h5>简要描述</h5> <ul> <li>用户消息中心首页</li> </ul> <h5>请求URL</h5> <ul> <li><code>http://xx.com/api/userMsgIndex</code></li> </ul> <h5>请求方式</h5> <ul> <li>GET </li> </ul> <h5>参数</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> </tbody> </table> <h5>返回示例</h5> <pre><code>{ "code": 200, "message": "ok", "data": { "ad": [ { "ad_id": 61, "ad_type_id": 21, "ad_pt": 4, "ad_status": 1, "ad_type": 99, "ad_name": "", "ad_title": "活动1", "ad_info": "", "ad_url": "http://zs.xrzww.com/#/pages/staticpage/zuojiafuli", "ad_img": "/cover/821c301140b0cbfefc4eabe6ee949ed1.png", "ad_img_width": 0, "ad_img_height": 0, "ad_price": "0.00", "ad_js": "", "ad_time_type": null, "ad_start_time": 1608480000, "ad_end_time": 1629993600, "ad_time": 0, "sort": 0, "ad_type_name": "网址" }, { "ad_id": 62, "ad_type_id": 21, "ad_pt": 4, "ad_status": 1, "ad_type": 99, "ad_name": "", "ad_title": "活动2", "ad_info": "", "ad_url": "http://zs.xrzww.com/#/pages/staticpage/manzw", "ad_img": "/cover/e2c5cbf8b0a0d5419f068d800a42a6c2.png", "ad_img_width": 0, "ad_img_height": 0, "ad_price": "0.00", "ad_js": "", "ad_time_type": null, "ad_start_time": 1608480000, "ad_end_time": 1629302400, "ad_time": 0, "sort": 0, "ad_type_name": "网址" } ], "new_message_total": 8, "message_list": [ { "type": "comment", "type_name": "书评", "date": "1小时前", "new_msg_num": 0, "content": "暂无消息" }, { "type": "like", "type_name": "点赞", "date": "", "new_msg_num": 0, "content": "暂无点赞" }, { "type": "community", "type_name": "社区", "date": "", "new_msg_num": 0, "content": "暂无消息" }, { "type": "system", "type_name": "系统", "date": "", "new_msg_num": 0, "content": "暂无消息" }, { "type": "shop", "type_name": "商城", "date": "", "new_msg_num": 0, "content": "暂无消息" }, { "type": "notice", "type_name": "资讯", "date": "23小时前", "new_msg_num": 8, "content": "8条新消息" }, { "type": "feedback", "type_name": "反馈", "date": "2小时前", "new_msg_num": 0, "content": "暂无消息" } ] } }</code></pre> <h5>返回参数说明</h5> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">groupid</td> <td style="text-align: left;">int</td> <td>用户组id,1:超级管理员;2:普通用户</td> </tr> </tbody> </table> <h5>备注</h5> <ul> <li>更多返回错误代码请看首页的错误代码描述</li> </ul> <p>欢迎使用ShowDoc!</p>

页面列表

ITEM_HTML