diff --git a/app/Model/DoctorIdenFail.php b/app/Model/DoctorIdenFail.php new file mode 100644 index 0000000..d524673 --- /dev/null +++ b/app/Model/DoctorIdenFail.php @@ -0,0 +1,62 @@ + 'integer', 'doctor_id' => 'integer', 'created_at' => 'datetime', 'updated_at' => 'datetime']; + + protected string $primaryKey = "iden_fail_id"; + + /** + * 获取信息-单条 + * @param array $params + * @param array $fields + * @return object|null + */ + public static function getOne(array $params, array $fields = ['*']): object|null + { + return self::where($params)->first($fields); + } + + /** + * 多条 + * @param array $params + * @param array $fields + * @return Collection|array + */ + public static function getList(array $params, array $fields = ['*']): Collection|array + { + return self::where($params)->get($fields); + } +}