初始化仓库
This commit is contained in:
31
service/models/forms/MobileForm.php
Normal file
31
service/models/forms/MobileForm.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace service\models\forms;
|
||||
|
||||
use common\core\BaseModel;
|
||||
use common\validators\MobileValidator;
|
||||
|
||||
class MobileForm extends BaseModel
|
||||
{
|
||||
public $mobile;
|
||||
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
[['mobile', 'password'], 'required'],
|
||||
['mobile', MobileValidator::class],
|
||||
];
|
||||
}
|
||||
|
||||
public function attributeLabels()
|
||||
{
|
||||
return [
|
||||
'mobile' => '手机号',
|
||||
];
|
||||
}
|
||||
|
||||
public function sendCode()
|
||||
{
|
||||
return ['发送成功'];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user