资源一体化-用户端

资源一体化-用户端


获取sku库存数量接口

<p><strong>接口说明 </strong></p> <pre><code>请求接口: /mall/product/stock 请求方式: GET 接口说明: 获取sku库存数量接口</code></pre> <p><strong>请求参数 </strong></p> <table> <thead> <tr> <th>参数名</th> <th>必选</th> <th>长度</th> <th>类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td>stockKey</td> <td>是</td> <td>150</td> <td>string</td> <td>库存索引键(商品id-属性id:属性值id-属性id:属性值id),默认(商品id-0:0)</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>id</td> <td>String</td> <td>库存id</td> </tr> <tr> <td>skuName</td> <td>String</td> <td>sku组合名称</td> </tr> <tr> <td>surplus</td> <td>String</td> <td>库存数量</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "code":"0000", "msg":"success", "data":{ "id":"1", "skuName":"蓝色L", "surplus":"100" } }</code></pre> <p><strong>接口备注</strong></p> <ul> <li>备注说明1</li> <li>备注说明2</li> </ul>

页面列表

ITEM_HTML