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.
46 lines
957 B
46 lines
957 B
3 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* Route.php
|
||
|
* User: ChenLong
|
||
|
* DateTime: 2020-04-12 23:07
|
||
|
*/
|
||
|
|
||
|
namespace app\admin\validate\system;
|
||
|
|
||
|
use app\common\BaseValidate;
|
||
|
|
||
|
/**
|
||
|
* Class Route
|
||
|
* @package app\common\validate\System
|
||
|
* @author chenlong <vip_chenlong@163.com>
|
||
|
*/
|
||
|
class Route extends BaseValidate
|
||
|
{
|
||
|
protected $rule = [
|
||
|
'title' => 'require',
|
||
|
'route' => 'require',
|
||
|
'pid' => 'require|number',
|
||
|
'type' => 'require|number|in:1,2',
|
||
|
'weigh' => 'require|number',
|
||
|
'icon' => 'require',
|
||
|
'id' => 'require|number',
|
||
|
];
|
||
|
|
||
|
protected $message = [
|
||
|
'title' => 'route.title',
|
||
|
'route' => 'route.route',
|
||
|
'pid' => 'route.pid',
|
||
|
'type' => 'route.type',
|
||
|
'weigh' => 'route.weigh',
|
||
|
'icon' => 'route.icon',
|
||
|
'id' => 'route.id',
|
||
|
];
|
||
|
|
||
|
protected $scene = [
|
||
|
'add' => ['title', 'type', 'weigh', ],
|
||
|
'edit' => ['title', 'type', 'weigh', 'id',],
|
||
|
];
|
||
|
}
|