feat(俱乐部和比赛模块): 增加俱乐部和比赛的相关功能和优化

- 在 Club 控制器中添加了对俱乐部列表的查询,包括俱乐部名称、场馆名称、俱乐部标签等信息
- 在 Game 控制器中增加了对比赛列表的查询,包括比赛名称、场馆名称、俱乐部名称、参赛选手头像等信息
- 优化了 Game 控制器中的比赛详情查询,增加了参赛选手头像的解析
- 在 Game、GameJoin 和 Participant 模型中添加了 tableName 静态属性,便于统一管理表名
This commit is contained in:
2025-05-16 11:16:29 +08:00
parent 8a68fb84af
commit 751c742726
5 changed files with 44 additions and 4 deletions

View File

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

View File

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

View File

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