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