<?php

declare(strict_types=1);

namespace app\common\validate;

use think\Validate;

class DepositOrder extends Validate
{
    protected $failException = true;

    protected $rule = [
        'order_no' => 'require|max:64|unique:deposit_order',
        'user_id' => 'require|integer|gt:0',
        'status' => 'require|in:0,1,2,3',
    ];

    protected $scene = [
        'add' => ['order_no', 'user_id', 'status'],
        'edit' => ['status'],
    ];
}
