获得产品详细信息
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>根据ID获取产品详细信息接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://localhost:48082/admin-api/erp/product/get?id=6</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>GET </li>
</ul>
<h5>参数</h5>
<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;">id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>产品ID</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code> {
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;id&quot;: 6,
&quot;categoryId&quot;: 89,
&quot;categoryName&quot;: null,
&quot;prodCode&quot;: &quot;Round-Chandelier&quot;,
&quot;barCode&quot;: &quot;12345678&quot;,
&quot;name&quot;: &quot;Cereak Vintage Filament Round Chandelier 73\&quot;&quot;,
&quot;introductionType&quot;: 10,
&quot;introductionUrl&quot;: &quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/c73d7f2ebdb21acf978a060053d53d9786e473e380f80f27be376ca7e71927b8.png&quot;,
&quot;sliderPicUrls&quot;:[
&quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/96e06db95379175764c24a33e2752d8c5ad4c32ab0e4994589e5cac43a39374f.png&quot;,
&quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/c73d7f2ebdb21acf978a060053d53d9786e473e380f80f27be376ca7e71927b8.png&quot;,
&quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/3707f7d1bd9124254f713d34f7601f19a475d2d43551603bdb2af2ffbd3fd486.png&quot;,
&quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/78e2eb949bb5cabc894514b69b50b80d028d73e0229bf398331bde95cccb478c.png&quot;,
&quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/5cfd76e404392e824611e9b079df0e5feb653dafe88b0dfff21e89f35efe714a.png&quot;
],
&quot;purchasePrice&quot;: 20000.00,
&quot;salePrice&quot;: 20000.00,
&quot;minPrice&quot;: 20000.00,
&quot;description&quot;: &quot;&lt;p&gt;&lt;br&gt;&lt;/p&gt;&lt;p&gt;Rustic in style, simple in form and grandly sized, the chandelier Drawing inspiration from early 20th century industrial fixtures, it&#039;s built of stout angle iron.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Dimension:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;73\&quot;D: &lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Overall: 72¾\&quot; diam., 42½\&quot;H&lt;/li&gt;&lt;li&gt;Canopy: 5¼\&quot; diam., 2½\&quot;H&lt;/li&gt;&lt;li&gt;Minimum Height: 45½\&quot;&lt;/li&gt;&lt;li&gt;Maximum Height: 87½\&quot;&lt;/li&gt;&lt;li&gt;Rods: one 6\&quot;, three 12\&quot;&lt;/li&gt;&lt;li&gt;Cord: 8&#039;4\&quot;L&lt;/li&gt;&lt;li&gt;Body: 3½\&quot;H (without bulbs)&lt;/li&gt;&lt;li&gt;Weight: 49 lbs.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;strong&gt;Specification:&lt;/strong&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;strong&gt;Material:&lt;/strong&gt; Iron&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Finish:&lt;/strong&gt; Lacquered Burnished Brass &amp; Matte Black&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Light source color: &lt;/strong&gt;Warm white 2700K&lt;/li&gt;&lt;li&gt;&lt;strong&gt;light number:&lt;/strong&gt; 36&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Type of Bulb:&lt;/strong&gt; E12 Candelabra Bulbs Max 15W&lt;strong&gt;(Dimmable)&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Voltage:&lt;/strong&gt; 110V-220V available&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Certification&lt;/strong&gt;: UL/CE/SAA&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Power type&lt;/strong&gt;: Hard Wire; Professional installation recommended&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Application:&lt;/strong&gt; Living room, dining room, bedroom, hotel hallway, foyer entryway&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Warranty :&lt;/strong&gt; 3 Years&lt;/li&gt;&lt;li&gt;&lt;strong&gt;Shipping Time: 7 - 15 nature days.&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;FREE SHIPPING On All orders.&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;Free of charge all bulbs.&lt;/strong&gt;&lt;/li&gt;&lt;li&gt;Customized service:You can easily customize the size, finish color, number of light sources, hanging wire&amp;chain length, etc. Simplify the customization process and communicate directly with designers online.&lt;/li&gt;&lt;/ul&gt;&quot;,
&quot;sort&quot;: null,
&quot;status&quot;: 1,
&quot;remark&quot;: null,
&quot;createTime&quot;: 1739641040000,
&quot;skuList&quot;: [
{
&quot;id&quot;: 1,
&quot;productId&quot;: 6,
&quot;properties&quot;: null,
&quot;name&quot;: null,
&quot;price&quot;: null,
&quot;marketPrice&quot;: null,
&quot;costPrice&quot;: null,
&quot;barCode&quot;: &quot;&quot;,
&quot;picUrl&quot;: &quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/c73d7f2ebdb21acf978a060053d53d9786e473e380f80f27be376ca7e71927b8.png&quot;,
&quot;sort&quot;: null,
&quot;status&quot;: null,
&quot;remark&quot;: null,
&quot;createTime&quot;: 1739641040000,
&quot;skuCodeList&quot;: [
{
&quot;id&quot;: 4,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 1,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-1-004&quot;,
&quot;storeId&quot;: &quot;1&quot;
},
{
&quot;id&quot;: 3,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 1,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-1-003&quot;,
&quot;storeId&quot;: &quot;1&quot;
},
{
&quot;id&quot;: 2,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 1,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-1-002&quot;,
&quot;storeId&quot;: &quot;1&quot;
},
{
&quot;id&quot;: 1,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 1,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-1-001&quot;,
&quot;storeId&quot;: &quot;1&quot;
}
]
},
{
&quot;id&quot;: 2,
&quot;productId&quot;: 6,
&quot;properties&quot;: null,
&quot;name&quot;: null,
&quot;price&quot;: null,
&quot;marketPrice&quot;: null,
&quot;costPrice&quot;: null,
&quot;barCode&quot;: &quot;&quot;,
&quot;picUrl&quot;: &quot;http://127.0.0.1:48082/admin-api/infra/file/4/get/78e2eb949bb5cabc894514b69b50b80d028d73e0229bf398331bde95cccb478c.png&quot;,
&quot;sort&quot;: null,
&quot;status&quot;: null,
&quot;remark&quot;: null,
&quot;createTime&quot;: 1739641040000,
&quot;skuCodeList&quot;: [
{
&quot;id&quot;: 7,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 2,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-2-003&quot;,
&quot;storeId&quot;: 1
},
{
&quot;id&quot;: 6,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 2,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-2-002&quot;,
&quot;storeId&quot;: 1
},
{
&quot;id&quot;: 5,
&quot;productId&quot;: 6,
&quot;productSkuId&quot;: 2,
&quot;productSkuCode&quot;: &quot;SKUCODE-6-2-001&quot;,
&quot;storeId&quot;: 1
}
]
}
]
},
&quot;msg&quot;: &quot;&quot;
}</code></pre>
<h5>返回参数说明</h5>
<ul>
<li>Result说明</li>
</ul>
<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;">code</td>
<td style="text-align: left;">int</td>
<td>错误码:0 成功,其他失败</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">Object</td>
<td>响应数据</td>
</tr>
<tr>
<td style="text-align: left;">msg</td>
<td style="text-align: left;">string</td>
<td>错误消息</td>
</tr>
</tbody>
</table>
<ul>
<li>Data说明</li>
</ul>
<table>
<thead>
<tr>
<th>字段名</th>
<th>类型</th>
<th>是否可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>否</td>
<td>产品 ID</td>
</tr>
<tr>
<td>categoryId</td>
<td>int</td>
<td>是</td>
<td>分类 ID</td>
</tr>
<tr>
<td>categoryName</td>
<td>string</td>
<td>是</td>
<td>分类名称</td>
</tr>
<tr>
<td>prodCode</td>
<td>string</td>
<td>否</td>
<td>产品编码</td>
</tr>
<tr>
<td>barCode</td>
<td>string</td>
<td>是</td>
<td>商品条形码</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>否</td>
<td>产品名称</td>
</tr>
<tr>
<td>introductionType</td>
<td>int</td>
<td>否</td>
<td>介绍类型(示例为 <code>10</code>,含义需确认)</td>
</tr>
<tr>
<td>introductionUrl</td>
<td>string</td>
<td>是</td>
<td>介绍图片 URL</td>
</tr>
<tr>
<td>sliderPicUrls</td>
<td>array</td>
<td>是</td>
<td>商品轮播图 URL</td>
</tr>
<tr>
<td>purchasePrice</td>
<td>number</td>
<td>否</td>
<td>采购价</td>
</tr>
<tr>
<td>salePrice</td>
<td>number</td>
<td>否</td>
<td>销售价</td>
</tr>
<tr>
<td>minPrice</td>
<td>number</td>
<td>否</td>
<td>最低价</td>
</tr>
<tr>
<td>description</td>
<td>string</td>
<td>否</td>
<td>产品描述(HTML 格式)</td>
</tr>
<tr>
<td>sort</td>
<td>int</td>
<td>是</td>
<td>排序字段</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>否</td>
<td>状态</td>
</tr>
<tr>
<td>remark</td>
<td>string</td>
<td>是</td>
<td>备注</td>
</tr>
<tr>
<td>createTime</td>
<td>datetime</td>
<td>否</td>
<td>创建时间</td>
</tr>
<tr>
<td>skuList</td>
<td>array</td>
<td>是</td>
<td>SKU 列表(子项说明见下文)</td>
</tr>
</tbody>
</table>
<hr />
<ul>
<li>
<table>
<thead>
<tr>
<th><code>SkuList</code> 数组 SKU 对象字段说明:</th>
<th>字段名</th>
<th>类型</th>
<th>是否可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>否</td>
<td>SKU ID</td>
</tr>
<tr>
<td>productId</td>
<td>int</td>
<td>否</td>
<td>所属产品 ID</td>
</tr>
<tr>
<td>properties</td>
<td>json</td>
<td>是</td>
<td>SKU 属性(示例中为 <code>null</code>)</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>是</td>
<td>SKU 名称(示例中为 <code>null</code>)</td>
</tr>
<tr>
<td>price</td>
<td>number</td>
<td>是</td>
<td>SKU 价格(示例中为 <code>null</code>)</td>
</tr>
<tr>
<td>marketPrice</td>
<td>number</td>
<td>是</td>
<td>市场价(示例中为 <code>null</code>)</td>
</tr>
<tr>
<td>costPrice</td>
<td>number</td>
<td>是</td>
<td>成本价(示例中为 <code>null</code>)</td>
</tr>
<tr>
<td>barCode</td>
<td>string</td>
<td>是</td>
<td>SKU 条形码(示例为空字符串)</td>
</tr>
<tr>
<td>picUrl</td>
<td>string</td>
<td>是</td>
<td>SKU 图片 URL</td>
</tr>
<tr>
<td>skuCodeList</td>
<td>array</td>
<td>是</td>
<td>SKU 编码列表(子项说明见下文)</td>
</tr>
</tbody>
</table>
</li>
</ul>
<hr />
<ul>
<li>
<table>
<thead>
<tr>
<th><code>skuCodeList</code> 数组 SKU 编码对象字段说明:</th>
<th>字段名</th>
<th>类型</th>
<th>是否可为空</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>id</td>
<td>int</td>
<td>否</td>
<td>SKU 编码 ID</td>
</tr>
<tr>
<td>productId</td>
<td>int</td>
<td>否</td>
<td>所属产品 ID</td>
</tr>
<tr>
<td>productSkuId</td>
<td>int</td>
<td>否</td>
<td>所属 SKU ID</td>
</tr>
<tr>
<td>productSkuCode</td>
<td>string</td>
<td>否</td>
<td>SKU 编码(如 <code>SKUCODE-6-1-001</code>)</td>
</tr>
<tr>
<td>storeId</td>
<td>int</td>
<td>否</td>
<td>门店 ID(示例为 <code>1</code>)</td>
</tr>
</tbody>
</table>
</li>
</ul>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>