You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
18
hyhproject/admin/validate/GoodsConsult.php
Executable file
18
hyhproject/admin/validate/GoodsConsult.php
Executable file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 权限验证器
|
||||
*/
|
||||
class GoodsConsult extends Validate{
|
||||
protected $rule = [
|
||||
['isShow','require|in:0,1','状态不能为空|状态必须为0或1'],
|
||||
['consultContent' ,'require|length:3,600','请输入咨询内容|咨询内容应为3-200个字'],
|
||||
['reply' ,'require|length:3,600','请输入回复内容|回复内容应为3-200个字']
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'edit'=>['isShow','consultContent','reply'],
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user