add:关系互动

- 入会申请
 - 好友申请
 - 报名邀请
 - 投诉举报
 - 好友关系
This commit is contained in:
2025-05-02 11:32:40 +08:00
parent 6b3c4782a1
commit 7101db7e5c
24 changed files with 1125 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
namespace app\admin\model\zy\link;
use think\Model;
class Complaint extends Model
{
// 表名
protected $table = 'zy_complaint';
// 自动写入时间戳字段
protected $autoWriteTimestamp = false;
// 定义时间戳字段名
protected $createTime = false;
protected $updateTime = false;
protected $deleteTime = false;
// 追加属性
protected $append = [
];
public function user()
{
return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
public function circle()
{
return $this->belongsTo('app\admin\model\zy\circle\Circle', 'target_id', 'id', [], 'LEFT')->setEagerlyType(0);
}
}