|
- <?php
-
- namespace App\Http\Controllers\Web\Custom\HelloTechno;
-
- use App\Codes\UserRole;
- use App\Http\Controllers\Web\IParam;
- use App\Util\Custom\HelloTechno\API;
- use Illuminate\Http\JsonResponse;
- use Illuminate\Http\Request;
-
- class ParkingsController extends HelloTechnoController
- {
- public function name(): string
- {
- return "[HelloTechno専用]駐車場情報取得";
- }
-
- public function description(): string
- {
- return "[HelloTechno専用]駐車場情報を取得する";
- }
-
- public function __construct(
- protected ParkingsParam $param,
- ) {
- parent::__construct();
- $this->roleAllow(UserRole::NORMAL_ADMIN);
- }
-
- protected function getParam(): IParam
- {
- return $this->param;
- }
-
- protected function run(Request $request): JsonResponse
- {
- $param = $this->param;
-
- $list = API::getParkings($param->customerCode, $param->parkingManagementCode);
-
- return $this->successResponse(['records' => $list]);
- }
- }
|