feat(user): 个人详情接口增加消息和俱乐部数量

- 在用户详情中添加未读消息数、俱乐部数和卡券数
- 新增 Message 模型用于消息相关操作
- 使用 Menber 模型统计用户在俱乐部的角色数量
This commit is contained in:
2025-05-16 11:33:13 +08:00
parent 751c742726
commit e420668a44
2 changed files with 6 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ class Message extends Model
// 表名
public static $tableName = 'zy_message';
protected $table = 'zy_message';
// 自动写入时间戳字段