|
|
@@ -4,11 +4,10 @@ namespace App\Module\User\Models;
|
|
|
|
|
|
use App\Module\Merchant\Model\Merchant;
|
|
|
use App\Module\User\Enums\PHONE_STATUS;
|
|
|
+use App\Module\User\Enums\PHONE_TYPE;
|
|
|
use App\Module\User\Enums\STATUS;
|
|
|
use App\Module\User\Enums\STATUS2;
|
|
|
use App\Module\User\Models\Events\UserPhoneSaved;
|
|
|
-use App\Module\User\Models\Events\UserSaved;
|
|
|
-use App\Module\VOrder\Enums\Type;
|
|
|
use UCore\ModelCore;
|
|
|
use Illuminate\Database\Eloquent\Relations\HasOne;
|
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
@@ -20,8 +19,8 @@ use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
* field start
|
|
|
* @property int $id
|
|
|
* @property int $user_id 用户ID
|
|
|
- * @property App\Module\User\Enums\PHONE_STATUS $status 状态
|
|
|
- * @property int $type 类型
|
|
|
+ * @property \App\Module\User\Enums\PHONE_STATUS $status 状态
|
|
|
+ * @property \App\Module\User\Enums\PHONE_TYPE $type 类型
|
|
|
* @property string $phone
|
|
|
* @property \Carbon\Carbon $created_at
|
|
|
* @property \Carbon\Carbon $updated_at
|
|
|
@@ -36,7 +35,7 @@ class UserPhone extends \UCore\ModelCore
|
|
|
protected $primaryKey='id';
|
|
|
|
|
|
protected $casts = [
|
|
|
- 'type' => Type::class,
|
|
|
+ 'type' =>PHONE_TYPE ::class,
|
|
|
'status'=>PHONE_STATUS::class
|
|
|
];
|
|
|
|