refactor: 重构权限服务类

This commit is contained in:
Ying
2023-07-03 10:08:34 +08:00
parent 8becf0ef36
commit 4e377def8d
42 changed files with 1679 additions and 1524 deletions

View File

@@ -1,5 +1,5 @@
<?php
declare (strict_types = 1);
namespace app\common\validate\system;
@@ -12,20 +12,20 @@ class AdminRules extends Validate
* 格式:'字段名' => ['规则1','规则2'...]
*
* @var array
*/
*/
protected $rule = [
'pid' => 'notEqId',
];
/**
* 定义错误信息
* 格式:'字段名.规则名' => '错误信息'
*
* @var array
*/
*/
protected $message = [
'pid.notEqId' => '选择上级分类错误!',
'pid.notEqId' => '选择上级分类错误!',
];
/**
@@ -43,4 +43,4 @@ class AdminRules extends Validate
return true;
}
}
}