2 changed files with 14 additions and 2 deletions
@ -1,8 +1,15 @@ |
|||
<?php |
|||
|
|||
namespace app\model; |
|||
|
|||
class UserChatLinkModel extends BaseModel |
|||
{ |
|||
const USER_CHAT_LINK_USER_TYPE_PC = 1; //h5,pc 用户 |
|||
const USER_CHAT_LINK_USER_TYPE_ADMIN = 2; // 管理端账号 |
|||
protected $name = 'user_chat_link'; |
|||
|
|||
public function admin() |
|||
{ |
|||
return $this->belongsTo(AdminModel::class, 'user_id', 'id'); |
|||
} |
|||
} |
Loading…
Reference in new issue