38 lines
1.0 KiB
PHP
38 lines
1.0 KiB
PHP
|
<?php
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Niucloud-admin 企业快速开发的saas管理平台
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | 官方网址:https://www.niucloud-admin.com
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | niucloud团队 版权所有 开源版本可自由商用
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
// | Author: Niucloud Team
|
|||
|
// +----------------------------------------------------------------------
|
|||
|
|
|||
|
namespace app\validate\diy;
|
|||
|
|
|||
|
use think\Validate;
|
|||
|
|
|||
|
/**
|
|||
|
* 自定义路由表验证器
|
|||
|
* Class DiyRoute
|
|||
|
* @package app\validate\diy
|
|||
|
*/
|
|||
|
class DiyRoute extends Validate
|
|||
|
{
|
|||
|
|
|||
|
protected $rule = [
|
|||
|
'title' => 'require',
|
|||
|
'name' => 'require',
|
|||
|
'page' => 'require',
|
|||
|
'sort' => 'number',
|
|||
|
];
|
|||
|
|
|||
|
protected $message = [];
|
|||
|
|
|||
|
protected $scene = [
|
|||
|
"add" => ['title', 'name', 'page'],
|
|||
|
"edit" => ['title', 'name', 'page']
|
|||
|
];
|
|||
|
|
|||
|
}
|