getProvince(); return $this->response->json($data); } /** * 获取城市信息 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function getCity(): ResponseInterface { $request = $this->container->get(AreaRequest::class); $request->scene('getCity')->validateResolved(); $areaService = new AreaService(); $data = $areaService->getCity(); return $this->response->json($data); } /** * 获取区县信息 * @return ResponseInterface * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function getCounty(): ResponseInterface { $request = $this->container->get(AreaRequest::class); $request->scene('getCounty')->validateResolved(); $areaService = new AreaService(); $data = $areaService->getCounty(); return $this->response->json($data); } }