| xqd
@@ -8,6 +8,7 @@
|
|
|
|
|
|
namespace App\Http\Controllers\Api\V1;
|
|
|
|
|
|
+use App\Models\Area;
|
|
|
use App\Models\Organization;
|
|
|
use DB;
|
|
|
|
| xqd
@@ -27,4 +28,13 @@ class OrganizationController extends AuthController
|
|
|
|
|
|
return out($data);
|
|
|
}
|
|
|
+
|
|
|
+ public function organizationCityList()
|
|
|
+ {
|
|
|
+ $city_ids = Organization::pluck('city_id')->toArray();
|
|
|
+
|
|
|
+ $data = Area::select(['id', 'name'])->whereIn('id', $city_ids)->get();
|
|
|
+
|
|
|
+ return out($data);
|
|
|
+ }
|
|
|
}
|