消息列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>消息列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>/app/message_list</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>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>当前页</td>
</tr>
<tr>
<td style="text-align: left;">keyword</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>需要搜索的昵称或备注</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
__type: "result",
state: "ok",
msg: "success",
data: {
total: 2,
per_page: 20,
current_page: 1,
last_page: 1,
data: [
{
message_list_id: 1,
unread_message_count: 10,//未读消息数
user_id: 1,//买家id
update_time: 0,//更新时间
message: {
content: "test1",//最新一条消息
content_type: 1,//消息类型1文字,2图片
from_uid: "1"
},
name: "周文平"//名称
},
{
message_list_id: 2,
unread_message_count: 20,
user_id: 2,
update_time: 0,
message: {
content: "test6",
content_type: 1,
from_uid: "2"
},
name: "彭帅"
}
]
},
time: 1554975737
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!</p>