authInitialize(); $this->his_client = app('HisHttpService'); } /** * 列表 * @throws GeneralException */ public function getLists() { $response = $this->his_client->getDictionaryLists(); if (!isset($response['success']) || !$response['success']) { throw new GeneralException($response['msg'] ?? '找不到缴费项目分类列表!', Response::HTTP_SERVICE_UNAVAILABLE); } return $response; } /** * 详情 * @param int $type_id * @return array * @throws GeneralException */ public function getDetails(int $type_id): array { $response = $this->his_client->getDictionaryDetails($type_id); if (!isset($response['success']) || !$response['success']) { throw new GeneralException($response['msg'] ?? '找不到缴费项目分类详情!', Response::HTTP_SERVICE_UNAVAILABLE); } return $response; } }