消息列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>消息列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://xx.com/api/cli/messages</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get </li>
</ul>
<p><strong>参数:</strong> </p>
<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>
<p><strong>返回示例</strong></p>
<pre><code> {
"result": "success",
"data": {
"current_page": 1,
"data": [
{
"id": 14,
"user_id": 123,
"title": "wuyan",
"content": "我是内容2",
"type": null,
"is_read": 1,
"notice_at": "2018-10-22",
"target_type": "Comment",
"avatar": "http://thirdwx.qlogo.cn/mmopen/vi_32/Q0j4TwGTfTKxqI0TK363ibywu3HKJpvoEiahGHV4EO64MOy3RuE01K9Hx4oW5msQfg7SZE41qbZdhhInIW3vXM3Q/13",
"target_id": 126,
"created_at": "2018-10-22 17:13:55",
"comment_type": "lesson", //lesson,course,commodity
"my_comment_content": "2",
"course_id": 2,
"lesson_id": 158
}
],
"first_page_url": "http://localhost:82/api/cli/messages?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:82/api/cli/messages?page=1",
"next_page_url": null,
"path": "http://localhost:82/api/cli/messages",
"per_page": 20,
"prev_page_url": null,
"to": 1,
"total": 1,
"order": null,
"order_by": null
},
"message": "操作成功",
"ct": 1540372955
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<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>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>