init
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace plugin\admin\app\service;
|
||||
|
||||
use plugin\admin\app\repository\DepartmentRepository;
|
||||
|
||||
class DepartmentService extends BaseService
|
||||
{
|
||||
private DepartmentRepository $repository;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->repository = DepartmentRepository::new();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取指定医院下的科室选项
|
||||
*/
|
||||
public function getDepartmentOptions(int $hospitalId): array
|
||||
{
|
||||
return $this->repository->getDepartmentsByHospital($hospitalId);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user