取消订单接口
<p><strong>接口说明 </strong></p>
<pre><code>请求接口: /cmall/app/order/cancel
请求方式: POST
接口说明: 取消订单接口(需登录)</code></pre>
<p><strong>请求参数 </strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>长度</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>是</td>
<td>20</td>
<td>long</td>
<td>订单id</td>
</tr>
<tr>
<td>cancelReason</td>
<td>否</td>
<td>128</td>
<td>string</td>
<td>取消原因</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>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code":"0000",
"msg":"success",
"data":null
}</code></pre>
<p><strong>错误码</strong></p>
<table>
<thead>
<tr>
<th>错误码</th>
<th>错误解释</th>
</tr>
</thead>
<tbody>
<tr>
<td>0000</td>
<td>操作成功</td>
</tr>
<tr>
<td>0001</td>
<td>服务器异常</td>
</tr>
<tr>
<td>6003</td>
<td>该社区服务订单不存在</td>
</tr>
<tr>
<td>6004</td>
<td>订单状态和原状态不一致</td>
</tr>
<tr>
<td>6011</td>
<td>该订单不可取消</td>
</tr>
</tbody>
</table>