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.
wkcrm/application/admin/validate/AdminRule.php

20 lines
391 B

<?php
namespace app\admin\validate;
use think\Validate;
/**
* 设置模型
*/
class AdminRule extends Validate{
protected $rule = [
'title' => 'require',
'name' => 'require',
'level' => 'require'
];
protected $message = [
'title.require' => '标题必须填写',
'name.require' => '规则定义必须填写',
'level.require' => '级别类型必须填写',
];
}