商品查询
<h5>简要描述</h5>
<ul>
<li>查询</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/searchProduct</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST</li>
</ul>
<h5>请求格式</h5>
<pre><code class="language-json">{
"header":{
"tokenId":"fagUSvNtBS2pukaxgtAoHMyqt76xRDef"
},
"body":{
"pageSize":10,
"startIndex":0,
"onSale":true,
"forSecKillRecommend": true
}
}</code></pre>
<h5>请求参数说明</h5>
<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;">token</td>
<td style="text-align: left;">string</td>
<td>访问令牌</td>
</tr>
<tr>
<td style="text-align: left;">forSecKillRecommend</td>
<td style="text-align: left;">boolean</td>
<td>为true时只查询秒杀场次中并且未推荐的商品</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code class="language-json">{
"header": {
"tokenId": "fagUSvNtBS2pukaxgtAoHMyqt76xRDef"
},
"body": {
"status": {
"statusCode": "0",
"errorCode": null,
"errorDesc": null
},
"data": {
"total": 1,
"products": [
{
"productUuid": "409df542e613475ca9e52431ebb0ac07",
"isDeleted": "0",
"dateCreate": "2022-02-17T08:24:59.000+00:00",
"createBy": "admin",
"dateUpdate": "2022-02-21T03:16:15.000+00:00",
"updateBy": "admin",
"productType": "1",
"productName": "h测试奶油",
"productCode": "htestnaiyou",
"productBrief": "",
"productWeight": 0.00,
"unitPrice": 5.00,
"unitPriceStandard": 10.00,
"productcateUuid": "8e468105082f49e58f157fd57ba7fb46",
"productbrandUuid": null,
"productMainImageUuid": "d61a89c0a6dc4e0cb19a38f7461f85b0",
"productfreightUuid": "8536c83df2a64ba18885eccd4f4c71c3",
"productdeliveryUuid": null,
"promoteUnitPrice": null,
"membershipUnitPrice": null,
"marketUnitPrice": null,
"promoteStartDate": null,
"promoteEndDate": null,
"warnUnit": 0,
"unitPoint": null,
"unitPointStandard": null,
"memo": "",
"productCostPrice": null,
"supplierUuid": null,
"merchantUuid": "070b2d1632a6424e9d523def6fc7eee4",
"verifyStatus": null,
"verifyMsg": null,
"validType": null,
"validDays": null,
"validStartDate": null,
"validEndDate": null,
"productDesc": "h测试奶油描述",
"merchantName": "h测试商家广西某珠宝翡翠钻石厂商",
"productCateDTO": {
"isDeleted": "0",
"dateCreate": "2022-01-07T03:32:53.000+00:00",
"createBy": "admin",
"dateUpdate": "2022-01-07T03:32:53.000+00:00",
"updateBy": "admin",
"cateName": "类目4",
"catePath": "/h测试一级类目/类目4",
"parentcateUuid": "8da0b78ac49842a1ac7bfe5b8fb9d944",
"catePicUrl": "http://49.232.49.101:8085/getAtt/e458ab142bce498983c956546b3b49ff.jpg",
"childList": [],
"productCateUuid": "8e468105082f49e58f157fd57ba7fb46",
"sortNumber": 1,
"leaf": true,
"displayedHome": false
},
"productMainImage": {
"size": 0,
"url": "http://49.232.49.101:8085/getAtt/d71e08e62c9347e088a316f3b010c040.jpg"
},
"miniprogLiveUrl": "pages/goods/detail?productUuid=409df542e613475ca9e52431ebb0ac07&channel=live_miniprog",
"totalUnit": 297,
"soldUnit": 3,
"skuEnabled": true,
"new": false,
"hot": false,
"promote": null,
"recommend": false,
"onSale": true,
"shipping": true,
"deliveryExpressEnabled": true,
"deliveryCityEnabled": false,
"deliveryPickEnabled": false
}
]
}
}
}</code></pre>
<h5>返回参数说明</h5>
<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;">statusCode</td>
<td style="text-align: left;">string</td>
<td>状态码:0为正常,非0为错误</td>
</tr>
<tr>
<td style="text-align: left;">errorCode</td>
<td style="text-align: left;">string</td>
<td>错误码</td>
</tr>
<tr>
<td style="text-align: left;">errorDesc</td>
<td style="text-align: left;">string</td>
<td>错误令牌</td>
</tr>
<tr>
<td style="text-align: left;">data.products[i].productUuid</td>
<td style="text-align: left;">string</td>
<td>商品id</td>
</tr>
<tr>
<td style="text-align: left;">data.products[i].productName</td>
<td style="text-align: left;">string</td>
<td>商品名称</td>
</tr>
</tbody>
</table>