新增银行列表接口
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user