<?php
declare (strict_types=1);
namespace App\Work\Model;
use Hyperf\Database\Model\SoftDeletes;
use Mine\MineModel;
/**
* @property int $id 用户ID,主键
*/
class SystemUser extends MineModel
{
use SoftDeletes;
/**
* The table associated with the model.
*
* @var string
*/
protected $table = 'system_user';
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = ['id'];
/**
* The attributes that should be cast to native types.
*
* @var array
*/
protected $casts = ['id' => 'integer'];
protected $appends=['type'];
public function getTypeAttribute():string{
return "user";
}
}
Hyperf 追加字段的使用
最新推荐文章于 2024-04-29 19:28:06 发布