first commit
This commit is contained in:
42
application/common/model/saas/ExtendService.php
Normal file
42
application/common/model/saas/ExtendService.php
Normal 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');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user