专技天下(前台web端接口文档)

专技天下(前台web端接口文档)


添加购物车--朱学禹

<p><strong>简要描述:</strong> </p> <ul> <li>添加购物车</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>http://xx.com/order/web/shopping/addShopping</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <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> <tr> <td style="text-align: left;">token</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>token 放入headder中</td> </tr> <tr> <td style="text-align: left;">cid</td> <td style="text-align: left;">是</td> <td style="text-align: left;">Integer</td> <td>课程id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code>{ "data": { "result": 1 }, "message": { "errinfo": "success", "errcode": 200 } }</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;">result</td> <td style="text-align: left;">int</td> <td>添加条数</td> </tr> </tbody> </table> <p><strong>备注</strong> </p> <ul> <li>更多返回错误代码请看首页的错误代码描述 SHOPPING_GOODS_HAVED(2505,&quot;购物车货物已经存在&quot;); NOTLOGIN_ERROR(1000, &quot;未登录&quot;), PARAM_ERROR(99999, &quot;参数不正确&quot;), SHOPPING_CANNOT_BUY(2516,&quot;当前用户单位所在的地区系数不允许购买&quot;); CLASS_IS_SOLD_OUT(2517,&quot;当前课程已经下架&quot;); ADD_SHOPING_GAN_SU_ERROR(2531,&quot;当前商品学时与精品系数超过可购买的限制&quot;); 甘肃省特用 ORDER_SHOPPING_NOT_BUY(2534,&quot;当前课程不允许购买&quot;), 欢迎使用ShowDoc!</li> </ul>

页面列表

ITEM_HTML