You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
827 B
37 lines
827 B
3 years ago
|
<?php
|
||
|
/**
|
||
|
*
|
||
|
* Member.php
|
||
|
* User: ChenLong
|
||
|
* DateTime: 2020-12-21 09:45:13
|
||
|
*/
|
||
|
|
||
|
namespace app\common\validate;
|
||
|
|
||
|
use app\common\BaseValidate;
|
||
|
|
||
|
/**
|
||
|
* Class Member
|
||
|
* @package app\common\validate\Member
|
||
|
* @author chenlong <vip_chenlong@163.com>
|
||
|
*/
|
||
|
class Member extends BaseValidate
|
||
|
{
|
||
|
protected $rule = [
|
||
|
'id|' => 'require|number',
|
||
|
'username|姓名' => 'require',
|
||
|
'password|密码' => 'require',
|
||
|
'mobile|手机号' => 'require|number',
|
||
|
'avatar|头像' => 'require',
|
||
|
'email|邮箱' => 'require',
|
||
|
'company|公司名称' => 'require',
|
||
|
'position|职务' => 'require',
|
||
|
'status|状态' => 'require|number|in:1,0',
|
||
|
];
|
||
|
|
||
|
protected $scene = [
|
||
|
'add' => ['username', 'mobile','company'],
|
||
|
'edit' => ['id', 'username', 'mobile'],
|
||
|
];
|
||
|
}
|