消息列表
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>192.168.0.225:8092/api/messages</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET </li>
</ul>
<p><strong>资源类型:</strong>
QueryString</p>
<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>{
"resCode": 0,
"resMsg": "ok",
"data": {
"current_page": 1,
"data": [
{
"id": 1,
"title": "测试消息",
"content": "啥也不是,",
"send_type": 0,
"status": 1,
"created_at": "2020-12-05 09:42:13",
"updated_at": "2020-12-05 09:44:30",
"pivot": {
"addressee_id": 3,
"message_id": 1,
"received_at": null
}
}
],
"first_page_url": "http://localhost:8093/api/messages?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8093/api/messages?page=1",
"next_page_url": null,
"path": "http://localhost:8093/api/messages",
"per_page": 15,
"prev_page_url": null,
"to": 1,
"total": 1
}
}</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;">id</td>
<td style="text-align: left;">int</td>
<td>消息id</td>
</tr>
<tr>
<td style="text-align: left;">title</td>
<td style="text-align: left;">String</td>
<td>标题</td>
</tr>
<tr>
<td style="text-align: left;">received_at</td>
<td style="text-align: left;">String</td>
<td>查收时间,null未查收</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>