作家字数更新排行榜
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>作家字数更新排行榜</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/author/api/getAuthorRankList</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>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>类型 昨日(日榜)yesterday_word_number 今日(即时)today_word_number 周week_word_number 月month_word_number 码字昨日yesterday_write_competition 码字今日today_write_competition 码字周week_write_competition 码字月month_write_competition</td>
</tr>
<tr>
<td style="text-align: left;">page</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>页码</td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>数量</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;code&quot;: 200,
&quot;message&quot;: &quot;ok&quot;,
&quot;data&quot;: {
&quot;total&quot;: 4,
&quot;current_page&quot;: 1,
&quot;per_page&quot;: 10,
&quot;last_page&quot;: 1,
&quot;self_rank&quot;: {
&quot;type&quot;: &quot;yesterday_word_number&quot;,
&quot;author_id&quot;: 2816,
&quot;value&quot;: 0,
&quot;ranking&quot;: &quot;未上榜&quot;,
&quot;author&quot;: {
&quot;author_id&quot;: 2816,
&quot;user_id&quot;: 48724,
&quot;user_head&quot;: &quot;/avatar/man_user_hear3.png&quot;,
&quot;author_nickname&quot;: &quot;约翰留着长长的胡子&quot;
}
},
&quot;data&quot;: [
{
&quot;type&quot;: &quot;yesterday_word_number&quot;,
&quot;author_id&quot;: 2,
&quot;value&quot;: 0,
&quot;author&quot;: {
&quot;author_id&quot;: 2,
&quot;user_id&quot;: 5,
&quot;user_head&quot;: &quot;/avatar/246pc-xrzww1607882646383.jpg&quot;,
&quot;author_nickname&quot;: &quot;月影梧桐&quot;
}
},
{
&quot;type&quot;: &quot;yesterday_word_number&quot;,
&quot;author_id&quot;: 7,
&quot;value&quot;: 0,
&quot;author&quot;: {
&quot;author_id&quot;: 7,
&quot;user_id&quot;: 10,
&quot;user_head&quot;: &quot;/upload/images/20200516/20200516084013509136172690.jpg&quot;,
&quot;author_nickname&quot;: &quot;流浪猫&quot;
}
},
{
&quot;type&quot;: &quot;yesterday_word_number&quot;,
&quot;author_id&quot;: 24,
&quot;value&quot;: 0,
&quot;author&quot;: {
&quot;author_id&quot;: 24,
&quot;user_id&quot;: 113,
&quot;user_head&quot;: &quot;/upload/userhead/20141201125422.jpg&quot;,
&quot;author_nickname&quot;: &quot;小无月&quot;
}
},
{
&quot;type&quot;: &quot;yesterday_word_number&quot;,
&quot;author_id&quot;: 25,
&quot;value&quot;: 0,
&quot;author&quot;: {
&quot;author_id&quot;: 25,
&quot;user_id&quot;: 88,
&quot;user_head&quot;: &quot;/upload/images/20200814/20200814162624802831517787.jpg&quot;,
&quot;author_nickname&quot;: &quot;二才不才&quot;
}
}
]
}
}</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>