You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
416 B
PHTML
23 lines
416 B
PHTML
3 years ago
|
<?php
|
||
|
namespace app\common\model;
|
||
|
|
||
|
use think\Model;
|
||
|
|
||
|
class User extends Model
|
||
|
{
|
||
|
protected $table = 'wc_user';
|
||
|
|
||
|
// 状态:正常
|
||
|
const STATUS_ACTIVE = 1;
|
||
|
// 状态:禁用
|
||
|
const STATUS_INVALID = 2;
|
||
|
|
||
|
/**
|
||
|
* 关联好友列表
|
||
|
* @return \think\model\relation\HasMany
|
||
|
*/
|
||
|
public function userRelation()
|
||
|
{
|
||
|
return $this->hasMany('UserRelation', 'uid', 'id');
|
||
|
}
|
||
|
}
|