下载积分
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>
<p><strong>简要描述:</strong> </p>
<ul>
<li>下载积分消耗</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>192.168.0.226:8093/api/files/{id}/cost</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": {
"quota": {
"id": 82,
"user_id": 2,
"balance": 2343
},
"cost": {
"wastage": 0,
"surplus": -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;">balance</td>
<td style="text-align: left;">int</td>
<td>积分账户余额</td>
</tr>
<tr>
<td style="text-align: left;">wastage</td>
<td style="text-align: left;">int</td>
<td>消耗积分数量</td>
</tr>
<tr>
<td style="text-align: left;">surplus</td>
<td style="text-align: left;">int</td>
<td>免费下载剩余天数,小于0未购买,等于0已购买未下载可免费下载,大于0免费重复下载天数</td>
</tr>
</tbody>
</table>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<p>欢迎使用ShowDoc!欢迎使用ShowDoc!欢迎使用ShowDoc!</p>