first commit

This commit is contained in:
zufeng555
2019-02-28 19:48:21 +08:00
commit 26f08a2fc3
6720 changed files with 739359 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
<?php
/**
* tpshop
* ============================================================================
* 版权所有 2015-2027 深圳搜豹网络科技有限公司,并保留所有权利。
* 网站地址: http://www.tp-shop.cn
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
* 不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* @author: lhb
*/
namespace app\common\model\saas;
class ExtendService extends ServiceBase
{
public function terminal()
{
return $this->belongsTo('Terminal', 'terminal_id', 'extend_id');
}
public function module()
{
return $this->belongsTo('Module', 'module_id', 'extend_id');
}
public function miniappTemplate()
{
return $this->belongsTo('MiniappTemplate', 'template_id', 'extend_id');
}
public function entrust()
{
return $this->belongsTo('Entrust', 'entrust_id', 'extend_id');
}
public function moduleRights()
{
return $this->hasMany('ModuleRight', 'module_id', 'extend_id');
}
}