test_lgq/niucloud/app/validate/diy/DiyRoute.php

38 lines
1.0 KiB
PHP
Raw Normal View History

2024-01-24 17:36:08 +08:00
<?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']
];
}