course/app/common/model/CaseShare.php

30 lines
455 B
PHP

<?php
namespace app\common\model;
use app\BaseModel;
use support\Model;
/**
*
*/
class CaseShare extends BaseModel
{
/**
* @desc 服务类别
* @return \think\model\relation\HasOne
*/
public function serviceType()
{
return $this->hasOne(ServiceType::class, 'id', 'service_type');
}
public function photographer()
{
return $this->hasOne(Photographer::class, 'id', 'photographer_id');
}
}