卡密列表
<p><strong>简要描述:</strong> </p>
<ul>
<li>卡密列表</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{{base}}/admin/card_list?nickname=test&card_status=3&db_table_id=2</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>get </li>
</ul>
<p><strong>参数:</strong> </p>
<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;">user_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>用户id</td>
</tr>
<tr>
<td style="text-align: left;">nickname</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">string</td>
<td>昵称搜索</td>
</tr>
<tr>
<td style="text-align: left;">phone</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>手机号搜索</td>
</tr>
<tr>
<td style="text-align: left;">card_status</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>卡密状态筛选 1在售中,待出租(租号)2已卖出3出租中(租号)4待上架(租号)5已下架(租号)</td>
</tr>
<tr>
<td style="text-align: left;">create_time_start</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>卡密添加的开始时间,日期时间戳</td>
</tr>
<tr>
<td style="text-align: left;">create_time_end</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>卡密添加的结束时间,日期时间戳</td>
</tr>
<tr>
<td style="text-align: left;">db_table_id</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">int</td>
<td>选择分库 数据从另一个接口取出 文档地址:<code>https://www.showdoc.cc/qq475281441?page_id=4472275810621649</code></td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code>{
"code": 0,
"msg": "",
"time": 1589526387,
"data": {
"total": 60,
"per_page": 15,
"current_page": 1,
"last_page": 4,
"data": [
{
"card_id": 158642432,//卡密id
"card_no": "123456",//卡号
"card_pwd": "",//密码
"user_id": 100000,//用户id
"goods_id": 165,//所属商品
"goods_spec_id": 0,//商品规格id
"order_id": 0,//所属订单id
"repeat": 0,//是否重复卡 1重复 0不重复
"sold_count": 0,//卖出次数
"status": 1,// 1在售中,待出租(租号)2已卖出3出租中(租号)4待上架(租号)5已下架(租号)
"create_time": 1586424346,
"update_time": 1586424346,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": null
},
{
"card_id": 158642433,
"card_no": "654321",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1586424346,
"update_time": 1586424346,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": null
},
{
"card_id": 158469692,
"card_no": "估计会给尴尬",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 8248,
"repeat": 0,
"sold_count": 7,
"status": 3,
"create_time": 1584696988,
"update_time": 1584696988,
"rent_time": 1584701219,
"rent_end_time": 1584704939,
"total_rent_time": 28800,
"last_shelf_time": 0
},
{
"card_id": 158475552,
"card_no": "好多好多好多好多话好多",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 8253,
"repeat": 0,
"sold_count": 2,
"status": 3,
"create_time": 1584755554,
"update_time": 1584755554,
"rent_time": 1584755676,
"rent_end_time": 1584755916,
"total_rent_time": 7800,
"last_shelf_time": 0
},
{
"card_id": 158475612,
"card_no": "觉得虎岛和夫解放军队将大喊大叫",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 8259,
"repeat": 0,
"sold_count": 4,
"status": 3,
"create_time": 1584756117,
"update_time": 1584756117,
"rent_time": 1584757160,
"rent_end_time": 1584757400,
"total_rent_time": 16200,
"last_shelf_time": 0
},
{
"card_id": 158477402,
"card_no": "846380764",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 8311,
"repeat": 0,
"sold_count": 2,
"status": 3,
"create_time": 1584774001,
"update_time": 1584774001,
"rent_time": 1584774049,
"rent_end_time": 1584774289,
"total_rent_time": 7800,
"last_shelf_time": 0
},
{
"card_id": 158477403,
"card_no": "475281441",
"card_pwd": "",
"user_id": 100000,
"goods_id": 165,
"goods_spec_id": 0,
"order_id": 8316,
"repeat": 0,
"sold_count": 3,
"status": 3,
"create_time": 1584774001,
"update_time": 1584775201,
"rent_time": 1584775253,
"rent_end_time": 1584775493,
"total_rent_time": 12000,
"last_shelf_time": -1
},
{
"card_id": 158475922,
"card_no": "123454",
"card_pwd": "",
"user_id": 100000,
"goods_id": 201,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1584759268,
"update_time": 1584759268,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 29,
"card_no": "1",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 30,
"card_no": "2",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 31,
"card_no": "3",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 32,
"card_no": "4",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 33,
"card_no": "5",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 34,
"card_no": "6",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
},
{
"card_id": 35,
"card_no": "7",
"card_pwd": "",
"user_id": 100000,
"goods_id": 11897312,
"goods_spec_id": 0,
"order_id": 0,
"repeat": 0,
"sold_count": 0,
"status": 1,
"create_time": 1576553029,
"update_time": 1576553029,
"rent_time": 0,
"rent_end_time": 0,
"total_rent_time": 0,
"last_shelf_time": 0
}
]
}
}</code></pre>
<p><strong>返回参数说明</strong> </p>
<p><strong>备注</strong> </p>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>
<h5>欢迎使用ShowDoc!</h5>