namespace App\Lib\_Validator;
use App\Lib\_Error\ValidateException;
use App\Lib\_Validator\Rules\MobileRule;
use App\Lib\_Validator\Rules\RuleInterface;
use Hyperf\Utils\ApplicationContext;
use Hyperf\Validation\Contract\ValidatorFactoryInterface;
/**
* 更多内置规则参考:https://learnku.com/docs/laravel/6.x/validation/5144#available-validation-rules
* accepted yes、 on 或者是 1。这在验证是否同意"服务条款"的时候非常有用。
* active_url URL 一个合法的 URL,根据 PHP 函数 checkdnsrr。
* date 必须是一个合法的日期,根据 PHP 函数 strtotime
* date_format:format 必须符合给定的 format 的格式,根据 PHP 函数 date_parse_from_format
* after:date 在给定日期之后,该日期将被传递到 PHP 的 strtotime 函数
* before:date 在给定日期之前,该日期将被传递到 PHP 的 strtotime 函数
* alpha 全字母
* alpha_dash 字母、数字、中划线或下划线字符
* alpha_num 全部由字母和数字构成
* between:min,max 给定的 min 和 max 之间。字符串、数字以及文件都将使