You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
382 B

4 years ago
<?php
namespace app\admin\validate;
use think\Validate;
/**
* 设置模型
*/
class AdminGroup extends Validate{
protected $rule = [
'title' => 'require',
'types' => 'require',
];
protected $message = [
'title.require' => '角色名称必须填写',
'types.require' => '角色类型必须选择',
];
protected $scene = [
'edit' => ['id'],
];
}