You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.3 KiB
41 lines
1.3 KiB
<?php
|
|
|
|
namespace app\admin\validate;
|
|
|
|
class WithdrawValidate extends AdminBaseValidate
|
|
{
|
|
protected $rule = [
|
|
'page' => 'require|integer',
|
|
'id' => 'require|integer',
|
|
'status' => 'require|integer',
|
|
'limit' => 'require|integer',
|
|
'order_id' => 'alphaNum',
|
|
'user_no' => 'alphaNum',
|
|
'start_time' => 'date|dateFormat:Y-m-d H:i:s',
|
|
'end_time' => 'date|dateFormat:Y-m-d H:i:s',
|
|
];
|
|
|
|
protected $message = [
|
|
'id.require' => '订单ID无效',
|
|
'id.integer' => '订单ID无效',
|
|
'status.require' => '状态无效',
|
|
'status.integer' => '状态无效',
|
|
'page.require' => '分页参数无效',
|
|
'page.integer' => '分页参数无效',
|
|
'limit.require' => '分页参数无效',
|
|
'limit.integer' => '分页参数无效',
|
|
'order_id.alphaNum' => '订单号无效',
|
|
'user_no.alphaNum' => '用户号无效',
|
|
'start_time.date' => '搜索日期无效',
|
|
'start_time.dateFormat' => '搜索日期无效',
|
|
'end_time.date' => '搜索日期无效',
|
|
'end_time.dateFormat' => '搜索日期无效',
|
|
];
|
|
|
|
protected $scene = [
|
|
// 现货
|
|
'index' => ['page','limit','order_id', 'user_no', 'start_time', 'end_time'],
|
|
'info' => ['id'],
|
|
'status' => ['id','status'],
|
|
];
|
|
}
|