You've already forked jianlizaojia
15 lines
297 B
PHP
15 lines
297 B
PHP
<?php
|
|
|
|
namespace app\xzgl\model;
|
|
|
|
use jerryyan\staff\model\StaffUser;
|
|
use think\admin\Model;
|
|
use think\model\relation\HasOne;
|
|
|
|
class XzglProfile extends Model
|
|
{
|
|
public function user(): HasOne
|
|
{
|
|
return $this->hasOne(StaffUser::class, 'id', 'id')->with(['dept', 'sys_user']);
|
|
}
|
|
} |