You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/admin/validate/Navs.php
Executable file
19
hyhproject/admin/validate/Navs.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 导航验证器
|
||||
*/
|
||||
class Navs extends Validate{
|
||||
protected $rule = [
|
||||
['navTitle|max:30', 'require', '请输入导航名称|导航名称不能超过10个字符'],
|
||||
['navUrl','require', '请输入导航链接'],
|
||||
['navSort','integer', '排序号只能为整数'],
|
||||
];
|
||||
protected $scene = [
|
||||
'add'=>['navTitle','navUrl','navSort'],
|
||||
'edit'=>['navTitle','navUrl','navSort'],
|
||||
];
|
||||
|
||||
}
|
Reference in New Issue
Block a user