You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/admin/validate/UserRanks.php
Executable file
19
hyhproject/admin/validate/UserRanks.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 会员级别验证器
|
||||
*/
|
||||
class UserRanks extends Validate{
|
||||
protected $rule = [
|
||||
['rankName' ,'require|max:30','请输入会员等级名称|会员等级名称不能超过10个字符'],
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['rankName'],
|
||||
'edit' => ['rankName'],
|
||||
];
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user