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.
63 lines
2.0 KiB
63 lines
2.0 KiB
<?php
|
|
/**
|
|
* +----------------------------------------------------------------------
|
|
* | 模块管理验证器
|
|
* +----------------------------------------------------------------------
|
|
* .::::.
|
|
* .::::::::. | AUTHOR: siyu
|
|
* ::::::::::: | EMAIL: 407593529@qq.com
|
|
* ..:::::::::::' | DATETIME: 2019/05/25
|
|
* '::::::::::::'
|
|
* .::::::::::
|
|
* '::::::::::::::..
|
|
* ..::::::::::::.
|
|
* ``::::::::::::::::
|
|
* ::::``:::::::::' .:::.
|
|
* ::::' ':::::' .::::::::.
|
|
* .::::' :::: .:::::::'::::.
|
|
* .:::' ::::: .:::::::::' ':::::.
|
|
* .::' :::::.:::::::::' ':::::.
|
|
* .::' ::::::::::::::' ``::::.
|
|
* ...::: ::::::::::::' ``::.
|
|
* ```` ':. ':::::::::' ::::..
|
|
* '.:::::' ':'````..
|
|
* +----------------------------------------------------------------------
|
|
*/
|
|
namespace app\admin\validate;
|
|
|
|
use think\Validate;
|
|
|
|
class Module extends Validate
|
|
{
|
|
protected $rule = [
|
|
'module_name|模块名称' => [
|
|
'require' => 'require',
|
|
'max' => '100',
|
|
],
|
|
'table_name|表名称' => [
|
|
'require' => 'require',
|
|
'max' => '50',
|
|
],
|
|
'model_name|模型名称' => [
|
|
'require' => 'require',
|
|
'max' => '50',
|
|
],
|
|
'table_comment|表注释' => [
|
|
'max' => '200',
|
|
],
|
|
'table_type|表类型' => [
|
|
'require' => 'require',
|
|
'max' => '10',
|
|
],
|
|
'pk|主键' => [
|
|
'require' => 'require',
|
|
'max' => '50',
|
|
],
|
|
'sort|排序' => [
|
|
'require' => 'require',
|
|
'number' => 'number',
|
|
'max' => '3',
|
|
]
|
|
];
|
|
|
|
}
|