商品销量排行(月)
<h2>商品销量排行</h2>
<pre><code>url: /admin/ivm/prodcut/rank/month
请求方式: GET
说明: 需登录</code></pre>
<p>入参参数说明:</p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>rankTime</td>
<td>是</td>
<td>date</td>
<td>日期 格式yyyy-mm</td>
</tr>
<tr>
<td>rankNum</td>
<td>否</td>
<td>int</td>
<td>排名数量,默认10</td>
</tr>
</tbody>
</table>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>String</td>
<td>状态值</td>
</tr>
<tr>
<td>msg</td>
<td>String</td>
<td>返回消息</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>分页数据</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": "0000",
"msg": "操作成功!",
"data": [
{
"rank": 1,
"productId": 4,
"productName": "驱蚊宝",
"salesVolume": 1,
"salesMoney": 0.01
}
]
}</code></pre>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>rankTime</td>
<td>data</td>
<td>统计时间</td>
</tr>
<tr>
<td>rank</td>
<td>int</td>
<td>排名</td>
</tr>
<tr>
<td>productId</td>
<td>long</td>
<td>商品id</td>
</tr>
<tr>
<td>productName</td>
<td>string</td>
<td>商品明</td>
</tr>
<tr>
<td>salesMoney</td>
<td>decimal</td>
<td>销售金额</td>
</tr>
<tr>
<td>salesVolume</td>
<td>int</td>
<td>销售数量</td>
</tr>
</tbody>
</table>