You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/admin/validate/Brands.php
Executable file
19
hyhproject/admin/validate/Brands.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 权限验证器
|
||||
*/
|
||||
class Brands extends Validate{
|
||||
protected $rule = [
|
||||
['brandName' ,'require|max:100','请输入品牌名称|品牌名称不能超过50个字符'],
|
||||
['brandImg' ,'require','请上传品牌图标'],
|
||||
['brandDesc' ,'require','请输入品牌介绍']
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['brandName','brandImg','brandDesc'],
|
||||
'edit' => ['brandName','brandImg','brandDesc']
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user