17 lines
422 B
PHP
17 lines
422 B
PHP
<?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' => '角色状态参数值只能为数字类型',
|
|
];
|
|
} |