campusModel->level(1) ->enabled() ->orderBy('name') ->get(['id', 'name', 'province']) ->toArray(); } /** * 根据省份获取城市列表. * @throws BusinessException */ public function getCitiesByProvince(string $province): array { return $this->campusModel->level(2) ->province($province) ->enabled() ->orderBy('name') ->get(['id', 'name', 'city']) ->toArray(); } protected function getModel(): AetherModel { return $this->campusModel; } protected function getValidator(): AetherValidator { return $this->campusValidator; } }