17 lines
422 B
PHP
Executable File
17 lines
422 B
PHP
Executable File
<?php
|
|
namespace app\validate;
|
|
|
|
use think\Validate;
|
|
|
|
class AuthGroup extends Validate
|
|
{
|
|
protected $rule = [
|
|
'title' => 'require',
|
|
'status' => 'require|number',
|
|
];
|
|
protected $message = [
|
|
'title.require' => '角色名称不能为空',
|
|
'status.require' => '角色状态必须设置',
|
|
'status.number' => '角色状态参数值只能为数字类型',
|
|
];
|
|
} |