实验性分离 Validate 和 Request

This commit is contained in:
yanwenwu
2018-11-29 22:44:16 +08:00
parent 105b80e968
commit e957f9f474
10 changed files with 134 additions and 27 deletions

View File

@@ -0,0 +1,28 @@
<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2018/11/12 0012
* Time: 下午 16:31
*/
namespace app\admin\validates;;
use think\Validate;
abstract class AbstractValidate extends Validate
{
/**
* Get Validate Errors
*
* @time at 2018年11月12日
* @param $data
* @return array
*/
public function getErrors($data)
{
$this->check($data);
return $this->getError();
}
}