新增关注、取消关注问诊医生

This commit is contained in:
2023-03-17 13:26:50 +08:00
parent a3eb0e3dd0
commit 7d57d2f94a
4 changed files with 104 additions and 8 deletions
+19
View File
@@ -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