提交物品信息
<h2>提交物品信息</h2>
<p>提交订单内的物品信息。</p>
<h3>请求</h3>
<p><code>POST /boss/order/addGoods</code></p>
<h4>请求体</h4>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>是否必须</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>orderId</td>
<td>string</td>
<td>是</td>
<td>订单ID</td>
</tr>
<tr>
<td>consignee</td>
<td>string</td>
<td>是</td>
<td>收货人姓名</td>
</tr>
<tr>
<td>consigneePhone</td>
<td>string</td>
<td>是</td>
<td>收货人电话</td>
</tr>
<tr>
<td>consigneeAddress</td>
<td>string</td>
<td>是</td>
<td>收货人地址</td>
</tr>
<tr>
<td>belong</td>
<td>string</td>
<td>是</td>
<td>物品归属信息</td>
</tr>
<tr>
<td>goods</td>
<td>array</td>
<td>是</td>
<td>物品信息列表</td>
</tr>
<tr>
<td>goods.orderId</td>
<td>string</td>
<td>是</td>
<td>订单ID</td>
</tr>
<tr>
<td>goods.storeId</td>
<td>string</td>
<td>是</td>
<td>所在仓库ID</td>
</tr>
<tr>
<td>goods.storeName</td>
<td>string</td>
<td>是</td>
<td>所在仓库名称</td>
</tr>
<tr>
<td>goods.serialNo</td>
<td>string</td>
<td>否</td>
<td>序列号</td>
</tr>
<tr>
<td>goods.feeTypeCodeName</td>
<td>string</td>
<td>是</td>
<td>费用类型名称</td>
</tr>
<tr>
<td>goods.resourceSubTypeId</td>
<td>string</td>
<td>是</td>
<td>资源小类ID</td>
</tr>
<tr>
<td>goods.resourceKindName</td>
<td>string</td>
<td>是</td>
<td>小类名称</td>
</tr>
<tr>
<td>goods.resourceSkuName</td>
<td>string</td>
<td>是</td>
<td>型号名称</td>
</tr>
<tr>
<td>goods.pricePlanName</td>
<td>string</td>
<td>是</td>
<td>价格计划名称</td>
</tr>
<tr>
<td>goods.priceId</td>
<td>string</td>
<td>是</td>
<td>价格ID</td>
</tr>
<tr>
<td>goods.brandCode</td>
<td>string</td>
<td>是</td>
<td>品牌</td>
</tr>
<tr>
<td>goods.resourceKindId</td>
<td>string</td>
<td>是</td>
<td>资源小类ID</td>
</tr>
<tr>
<td>goods.feeTypeCode</td>
<td>string</td>
<td>是</td>
<td>费用类型</td>
</tr>
<tr>
<td>goods.guidePrice</td>
<td>number</td>
<td>是</td>
<td>指导价</td>
</tr>
<tr>
<td>goods.resourceSkuId</td>
<td>string</td>
<td>是</td>
<td>型号ID</td>
</tr>
<tr>
<td>goods.offerId</td>
<td>string</td>
<td>是</td>
<td>物品ID</td>
</tr>
<tr>
<td>goods.resourceGroupId</td>
<td>string</td>
<td>是</td>
<td>资源组ID</td>
</tr>
<tr>
<td>goods.resourceInstanceId</td>
<td>string</td>
<td>是</td>
<td>资源实例ID</td>
</tr>
<tr>
<td>goods.pricePlanType</td>
<td>string</td>
<td>是</td>
<td>价格计划类型</td>
</tr>
<tr>
<td>goods.resourceSubTypeName</td>
<td>string</td>
<td>是</td>
<td>资源小类名称</td>
</tr>
<tr>
<td>goods.salePriceY</td>
<td>string</td>
<td>是</td>
<td>售价</td>
</tr>
<tr>
<td>goods.pricePlanId</td>
<td>string</td>
<td>是</td>
<td>价格计划ID</td>
</tr>
<tr>
<td>goods.number</td>
<td>integer</td>
<td>是</td>
<td>物品数量</td>
</tr>
<tr>
<td>goods.price</td>
<td>number</td>
<td>是</td>
<td>单价</td>
</tr>
<tr>
<td>goods.totalPrice</td>
<td>number</td>
<td>否</td>
<td>总价</td>
</tr>
<tr>
<td>goods.useModelId</td>
<td>string</td>
<td>是</td>
<td>用途ID</td>
</tr>
<tr>
<td>goods.useModelName</td>
<td>string</td>
<td>是</td>
<td>用途名称</td>
</tr>
</tbody>
</table>
<h4>示例</h4>
<pre><code class="language-json">{
&quot;orderId&quot;: &quot;123456&quot;,
&quot;consignee&quot;: &quot;张三&quot;,
&quot;consigneePhone&quot;: &quot;13812345678&quot;,
&quot;consigneeAddress&quot;: &quot;北京市朝阳区&quot;,
&quot;goods&quot;: [
{
&quot;orderId&quot;: &quot;123456&quot;,
&quot;storeId&quot;: &quot;001&quot;,
&quot;storeName&quot;: &quot;北京仓库&quot;,
&quot;serialNo&quot;: &quot;A123456&quot;,
&quot;feeTypeCodeName&quot;: &quot;运费&quot;,
&quot;resourceSubTypeId&quot;: &quot;001&quot;,
&quot;resourceKindName&quot;: &quot;电脑&quot;,
&quot;resourceSkuName&quot;: &quot;ThinkPad X1 Carbon&quot;,
&quot;pricePlanName&quot;: &quot;标准价格&quot;,
&quot;priceId&quot;: &quot;001&quot;,
&quot;brandCode&quot;: &quot;Lenovo&quot;,
&quot;resourceKindId&quot;: &quot;001&quot;,
&quot;feeTypeCode&quot;: &quot;001&quot;,
&quot;guidePrice&quot;: 8999.00,
&quot;resourceSkuId&quot;: &quot;001&quot;,
&quot;offerId&quot;: &quot;001&quot;,
&quot;resourceGroupId&quot;: &quot;001&quot;,
&quot;resourceInstanceId&quot;: &quot;001&quot;,
&quot;pricePlanType&quot;: &quot;标准&quot;,
&quot;resourceSubTypeName&quot;: &quot;运输&quot;,
&quot;salePriceY&quot;: &quot;7999.00&quot;,
&quot;pricePlanId&quot;: &quot;001&quot;,
&quot;number&quot;: 1,
&quot;price&quot;: 7999.00,
&quot;totalPrice&quot;: 7999.00,
&quot;useModelId&quot;: &quot;001&quot;,
&quot;useModelName&quot;: &quot;办公&quot;
}
]
}</code></pre>
<h3>响应</h3>
<h4>成功</h4>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer</td>
<td>返回码,20000表示成功</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>返回数据,通常为空</td>
</tr>
</tbody>
</table>
<h4>失败</h4>
<table>
<thead>
<tr>
<th>参数</th>
<th>类型</th>
<th>描述</th>
</tr>
</thead>
<tbody>
<tr>
<td>code</td>
<td>integer</td>
<td>返回码,非20000表示失败</td>
</tr>
<tr>
<td>data</td>
<td>object</td>
<td>返回数据,通常为空</td>
</tr>
</tbody>
</table>
<h4>示例</h4>
<pre><code class="language-json">{
&quot;code&quot;: 20000,
&quot;data&quot;: {}
}</code></pre>