Files
2020-08-06 15:26:41 +08:00

34 lines
917 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +------------------------------------------------+
// |http://www.cjango.com |
// +------------------------------------------------+
// | 修复BUG不是一朝一夕的事情等我喝醉了再说吧 |
// +------------------------------------------------+
// | Author: 小陈叔叔 <Jason.Chen> |
// +------------------------------------------------+
namespace app\common\validate;
use think\Validate;
class Permission extends Validate
{
/**
* 验证规则
* @var array
*/
protected $rule = [
'title' => 'require|unique:permission',
'url' => 'require',
];
/**
* 提示信息
* @var array
*/
protected $message = [
'title.require' => '权限名称必须填写',
'title.unique' => '权限名称已经存在',
'url.require' => '权限地址必须填写',
];
}