first commit
This commit is contained in:
35
application/common/model/AuthUser.php
Normal file
35
application/common/model/AuthUser.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
// +------------------------------------------------+
|
||||
// |http://www.cjango.com |
|
||||
// +------------------------------------------------+
|
||||
// | 修复BUG不是一朝一夕的事情,等我喝醉了再说吧! |
|
||||
// +------------------------------------------------+
|
||||
// | Author: 小陈叔叔 <Jason.Chen> |
|
||||
// +------------------------------------------------+
|
||||
namespace app\common\model;
|
||||
|
||||
class AuthUser extends _Init
|
||||
{
|
||||
/**
|
||||
* 关闭更新时间写入
|
||||
*/
|
||||
protected $updateTime = false;
|
||||
|
||||
/**
|
||||
* 关联用户模型
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function user()
|
||||
{
|
||||
return $this->hasOne('Member', 'id', 'uid');
|
||||
}
|
||||
|
||||
/**
|
||||
* 关联分组
|
||||
* @return [type] [description]
|
||||
*/
|
||||
public function auth()
|
||||
{
|
||||
return $this->belongsTo('Auth');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user