【操盘手】 流量分发列表+新建功能
This commit is contained in:
25
Server/application/cunkebao/model/WorkbenchTrafficConfig.php
Normal file
25
Server/application/cunkebao/model/WorkbenchTrafficConfig.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace app\cunkebao\model;
|
||||
|
||||
use think\Model;
|
||||
|
||||
/**
|
||||
* 自动点赞工作台模型
|
||||
*/
|
||||
class WorkbenchTrafficConfig extends Model
|
||||
{
|
||||
protected $pk = 'id';
|
||||
protected $name = 'workbench_traffic_config';
|
||||
|
||||
// 自动写入时间戳
|
||||
protected $autoWriteTimestamp = true;
|
||||
protected $createTime = 'createTime';
|
||||
protected $updateTime = 'updateTime';
|
||||
|
||||
// 定义关联的工作台
|
||||
public function workbench()
|
||||
{
|
||||
return $this->belongsTo('Workbench', 'workbenchId', 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user