下单时可使用积分接口
<p><strong>接口说明 </strong></p>
<pre><code>请求接口: /emall/app/order/canusecredit
请求方式: GET
接口说明: 下单时可使用积分接口(需登录)</code></pre>
<p><strong>请求参数 </strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>长度</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>productId</td>
<td>是</td>
<td>20</td>
<td>long</td>
<td>商品id</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>string</td>
<td>返回数据</td>
</tr>
<tr>
<td>canUseCredit</td>
<td>int</td>
<td>该商品中可以抵扣积分</td>
</tr>
<tr>
<td>discountMoney</td>
<td>decimal</td>
<td>可抵扣金额(元)</td>
</tr>
<tr>
<td>creditOffsetPer</td>
<td>double</td>
<td>1积分等于多少元</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": "0000",
"msg": "操作成功!",
"data": {
"canUseCredit": 10,
"discountMoney": 3.0,
"creditOffsetPer": 0.1
}
}</code></pre>