1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- /**
- * DayGameAgentModel.php UTF-8
- * 每日游戏渠道表
- *
- * @date : 2018/5/21 18:58
- *
- * @license 这不是一个自由软件,未经授权不许任何使用和传播。
- * @author : wuyonghong <wyh@huosdk.com>
- * @version : HUOSDK 8.0
- */
- namespace huo\model\data;
- use huo\model\common\CommonModel;
- use huo\model\game\GameModel;
- use huo\model\user\UserModel;
- class DayGameAgentModel extends DayBaseModel {
- #protected $name = 'day_game_agent';
- protected $table = 'dw_day_game_agent';
- /**
- * @return \think\model\relation\BelongsTo
- */
- public function game() {
- return $this->belongsTo(GameModel::className(), 'app_id', 'id')->field('id,name,classify');
- }
- /**
- * @return \think\model\relation\BelongsTo
- */
- public function agent() {
- return $this->belongsTo(UserModel::className(), 'agent_id', 'id')->field('id,user_login,user_nicename,role_id');
- }
- }
|