新增关注、取消关注问诊医生
This commit is contained in:
@@ -77,6 +77,25 @@ class PatientFollow extends Model
|
||||
return self::where($params)->exists();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增
|
||||
* @param array $data
|
||||
* @return \Hyperf\Database\Model\Model|PatientFollow
|
||||
*/
|
||||
public static function addPatientFollow(array $data): \Hyperf\Database\Model\Model|PatientFollow
|
||||
{
|
||||
return self::create($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array $params
|
||||
* @return int|mixed
|
||||
*/
|
||||
public static function deletePatientFollow(array $params = []): mixed
|
||||
{
|
||||
return self::where($params)->delete();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取分页数据
|
||||
* @param array $params
|
||||
|
||||
Reference in New Issue
Block a user