分页查询
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>分页查询</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>/admin/integral/coupon/search</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </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;">tokenId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>用户token</td>
</tr>
<tr>
<td style="text-align: left;">startIndex</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td></td>
</tr>
<tr>
<td style="text-align: left;">pageSize</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td></td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>优惠券名称</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code>{
"header":{
"tokenId":"eyd8MKL5PcytI085hvqhsKFPrcDEgOOB"
},
"body":{
"pageSize":20,
"startIndex":0
}
}</code></pre>
<h5>返回示例</h5>
<pre><code>{
"statusCode": "0",
"errorCode": "",
"errorDesc": "",
"data": {
"total": 10,
"coupons": [
{
"couponUuid": "11c013d94901476fb34d6f03b85e26d2",
"isDeleted": "0",
"dateCreate": "2022-04-08T05:45:06.000+00:00",
"createBy": "admin",
"dateUpdate": "2022-04-08T05:58:34.000+00:00",
"updateBy": "admin",
"name": "四月八号",
"type": "CASH",
"couponcode": "",
"benefitCash": 10.00,
"benefitDiscount": null,
"conditionAmount": 100.00,
"merchantUuid": null,
"validType": "2",
"validDays": 4,
"benefitType": "0",
"memo": "今天只发优惠券。红包明天再发。今天只发优惠券。红包明天再发。今天只发优惠券。红包明天再发。今天只发优惠券。红包明天再发。今天只发优惠券。红包明天再发。",
"imageUrl": "",
"targetId": null,
"points": null,
"cate": null,
"region": null,
"product": null,
"targetName": "",
"receivedCount": 2,
"benefitProductList": [],
"merchantDTO": {
"merchantUuid": null,
"isDeleted": null,
"dateCreate": null,
"createBy": null,
"dateUpdate": null,
"updateBy": null,
"logo": null,
"merchantdescription": null,
"referrer": null,
"registerDate": null,
"memo": null,
"exchangeRate": null,
"province": null,
"city": null,
"district": null,
"latitude": null,
"longitude": null,
"merchantId": null,
"weight": null,
"score": null,
"soldUnit": null,
"saleUnit": null,
"mobileNo": null,
"merchantName": null,
"merchantAddress": null,
"contactName": null,
"closed": null
},
"thumbnailUrl": null,
"usageImgUrl": null,
"exchangeMemo": null,
"detailImgUrls": null,
"startDate": "2022-04-08",
"endDate": "2022-04-12",
"totalCount": 2,
"availableCount": null,
"limitPerUser": 1,
"limitPerBox": 0,
"active": 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>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>