新增职业、民族数据接口
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
namespace App\Services;
|
||||
|
||||
use App\Model\BasicBank;
|
||||
use App\Model\BasicJob;
|
||||
use App\Model\BasicNation;
|
||||
use App\Model\DiseaseClass;
|
||||
use App\Model\DiseaseClassExpertise;
|
||||
use App\Model\DiseaseClassIcd;
|
||||
@@ -263,4 +265,32 @@ class BasicDataService extends BaseService
|
||||
return success($disease_class_icd->toArray());
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取民族数据
|
||||
* @return array
|
||||
*/
|
||||
public function getNation(): array
|
||||
{
|
||||
$params = array();
|
||||
$basic_nation = BasicNation::getList($params);
|
||||
if (empty($basic_nation)){
|
||||
return success();
|
||||
}
|
||||
return success($basic_nation->toArray());
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取职业数据
|
||||
* @return array
|
||||
*/
|
||||
public function getJob(): array
|
||||
{
|
||||
$params = array();
|
||||
$basic_job = BasicJob::getList($params);
|
||||
if (empty($basic_job)){
|
||||
return success();
|
||||
}
|
||||
return success($basic_job->toArray());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user