You've already forked qlg.tsgz.moe
Init Repo
This commit is contained in:
19
hyhproject/admin/validate/Articles.php
Executable file
19
hyhproject/admin/validate/Articles.php
Executable file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
namespace wstmart\admin\validate;
|
||||
use think\Validate;
|
||||
/**
|
||||
* ============================================================================
|
||||
* 权限验证器
|
||||
*/
|
||||
class Articles extends Validate{
|
||||
protected $rule = [
|
||||
['articleTitle' ,'require|max:150','请输入文章标题|文章标题不能超过50个字符'],
|
||||
['articleKey' ,'require|max:300','请输入关键字|关键字不能超过100个字符'],
|
||||
['articleContent' ,'require','请输入文章内容']
|
||||
];
|
||||
|
||||
protected $scene = [
|
||||
'add' => ['articleTitle','articleKey','articleContent'],
|
||||
'edit' => ['articleTitle','articleKey','articleContent']
|
||||
];
|
||||
}
|
Reference in New Issue
Block a user