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