validate 兼容tp验证器规则,支持多场景,swagger自动提取验证规则。 安装 composer require hyperf-plus/validate 验证失败抛出 ValidateException 用法1 @RequestValidation(rules={ "username|用户名":"require|max:25", "password|密码":"require" }) 用法2 验证类、验证场景 @RequestValidation(validate=User::class,scene="login")