feat(shopro): 添加俱乐部、球馆的访客记录功能

- 在 Club 控制器中添加访客记录逻辑
- 在 Gym 控制器中添加访客记录逻辑
- 在 Sys 控制器中添加获取访客记录的功能
This commit is contained in:
2025-06-05 14:55:16 +08:00
parent 582c52e3a1
commit 9223c1b127
11 changed files with 431 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
<?php
namespace app\admin\model\zy\link;
use think\Model;
class Visitor extends Model
{
// 表名
public static $tableName = 'zy_visitor';
protected $table = 'zy_visitor';
// 自动写入时间戳字段
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);
}
}