upd:调整菜单
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\zy;
|
||||
namespace app\admin\model\zy\game;
|
||||
|
||||
use think\Model;
|
||||
|
||||
@@ -36,13 +36,13 @@ class Activity extends Model
|
||||
|
||||
public function stadium()
|
||||
{
|
||||
return $this->belongsTo('Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
public function club()
|
||||
{
|
||||
return $this->belongsTo('Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\zy;
|
||||
namespace app\admin\model\zy\game;
|
||||
|
||||
use think\Model;
|
||||
|
||||
@@ -45,13 +45,13 @@ class Game extends Model
|
||||
|
||||
public function stadium()
|
||||
{
|
||||
return $this->belongsTo('Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
public function club()
|
||||
{
|
||||
return $this->belongsTo('Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\zy;
|
||||
namespace app\admin\model\zy\game;
|
||||
|
||||
use think\Model;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\zy;
|
||||
namespace app\admin\model\zy\game;
|
||||
|
||||
use think\Model;
|
||||
|
||||
@@ -39,13 +39,13 @@ class GameMatch extends Model
|
||||
|
||||
public function stadium()
|
||||
{
|
||||
return $this->belongsTo('Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Stadium', 'gym_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
public function club()
|
||||
{
|
||||
return $this->belongsTo('Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('app\admin\model\zy\Club', 'club_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
namespace app\admin\model\zy;
|
||||
namespace app\admin\model\zy\game;
|
||||
|
||||
use think\Model;
|
||||
|
||||
@@ -45,7 +45,7 @@ class Participant extends Model
|
||||
|
||||
public function join()
|
||||
{
|
||||
return $this->belongsTo('app\admin\model\zy\GameJoin', 'game_join_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
return $this->belongsTo('GameJoin', 'game_join_id', 'id', [], 'LEFT')->setEagerlyType(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user