新增银行列表接口

This commit is contained in:
2023-02-21 11:51:51 +08:00
parent 757cd2e76e
commit ad24a7ce91
4 changed files with 32 additions and 2 deletions
+15
View File
@@ -2,6 +2,7 @@
namespace App\Services;
use App\Model\BasicBank;
use App\Model\Hospital;
use App\Model\HospitalDepartmentCustom;
@@ -73,4 +74,18 @@ class BasicDataService extends BaseService
return success($hospital_department_custom->toArray());
}
/**
* 获取银行列表
* @return array
*/
public function getBank(): array
{
$basic_bank = BasicBank::getList([]);
if (empty($basic_bank)){
return success();
}
return success($basic_bank->toArray());
}
}