提交其他文件
This commit is contained in:
10
app/common/model/teamaster/Tea.php
Normal file
10
app/common/model/teamaster/Tea.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class Tea extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
34
app/common/model/teamaster/Teamaster.php
Normal file
34
app/common/model/teamaster/Teamaster.php
Normal file
@ -0,0 +1,34 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
use think\facade\{Db, Config};
|
||||
/**
|
||||
* 茶艺师列表模型
|
||||
* Class TeaUser
|
||||
* @package app\common\model\teamaster
|
||||
*/
|
||||
class Teamaster extends BaseModel
|
||||
{
|
||||
public function teamasterLevel()
|
||||
{
|
||||
return $this->hasMany('teamaster_level', 'id', 'level_id')
|
||||
->field("id,level_name")
|
||||
->where('status', 1);
|
||||
}
|
||||
public static function teamasterReal($real_id)
|
||||
{
|
||||
return TeamasterReal::where('id', $real_id)
|
||||
->field("nickname,interests,gender,age,height,weight")
|
||||
->find();
|
||||
}
|
||||
|
||||
public static function teamasterCollect($teamaster_id,$user_id)
|
||||
{
|
||||
return TeamasterCollect::where('teamaster_id', $teamaster_id)
|
||||
->where("user_id",$user_id)
|
||||
->where("status",1)
|
||||
->find();
|
||||
}
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterAccountLog.php
Normal file
10
app/common/model/teamaster/TeamasterAccountLog.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterAccountLog extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterAddress.php
Normal file
10
app/common/model/teamaster/TeamasterAddress.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterAddress extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterCert.php
Normal file
10
app/common/model/teamaster/TeamasterCert.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterCert extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
15
app/common/model/teamaster/TeamasterCollect.php
Normal file
15
app/common/model/teamaster/TeamasterCollect.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterCollect extends BaseModel
|
||||
{
|
||||
public function teamaster()
|
||||
{
|
||||
return $this->hasMany('teamaster', 'id', 'teamaster_id')
|
||||
->where("del",0)
|
||||
->where('status', 1);
|
||||
}
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterGroupReservation.php
Normal file
10
app/common/model/teamaster/TeamasterGroupReservation.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterGroupReservation extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterInvitation.php
Normal file
10
app/common/model/teamaster/TeamasterInvitation.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterInvitation extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
14
app/common/model/teamaster/TeamasterLabel.php
Normal file
14
app/common/model/teamaster/TeamasterLabel.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
/**
|
||||
* 茶艺师标签模型
|
||||
* Class TeaUser
|
||||
* @package app\common\model\TeamasterLabel
|
||||
*/
|
||||
class TeamasterLabel extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterLeaf.php
Normal file
10
app/common/model/teamaster/TeamasterLeaf.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterLeaf extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
15
app/common/model/teamaster/TeamasterLevel.php
Normal file
15
app/common/model/teamaster/TeamasterLevel.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
/**
|
||||
* 茶艺师等级模型
|
||||
* Class TeaUser
|
||||
* @package app\common\model\TeamasterLevel
|
||||
*/
|
||||
class TeamasterLevel extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterReal.php
Normal file
10
app/common/model/teamaster/TeamasterReal.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterReal extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterSet.php
Normal file
10
app/common/model/teamaster/TeamasterSet.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterSet extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterTipAmount.php
Normal file
10
app/common/model/teamaster/TeamasterTipAmount.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterTipAmount extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterTipAmountLog.php
Normal file
10
app/common/model/teamaster/TeamasterTipAmountLog.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterTipAmountLog extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterUser.php
Normal file
10
app/common/model/teamaster/TeamasterUser.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterUser extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterUserBank.php
Normal file
10
app/common/model/teamaster/TeamasterUserBank.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterUserBank extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterUserReflect.php
Normal file
10
app/common/model/teamaster/TeamasterUserReflect.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterUserReflect extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
10
app/common/model/teamaster/TeamasterUserSession.php
Normal file
10
app/common/model/teamaster/TeamasterUserSession.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
namespace app\common\model\teamaster;
|
||||
|
||||
use app\common\model\BaseModel;
|
||||
|
||||
class TeamasterUserSession extends BaseModel
|
||||
{
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user