mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 12:33:56 +00:00
51 lines
1.6 KiB
PHP
51 lines
1.6 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Questionnaires;
|
|
|
|
use App\Classes\Modules\Questionnaires\ControllersLogic\FetchAdminWF1688BookingLogic;
|
|
use App\Classes\Modules\Questionnaires\ControllersLogic\FetchAdminWFModelAttributesLogic;
|
|
use App\Classes\Modules\Questionnaires\ControllersLogic\FetchAdminWFPendingApprovalPOLogic;
|
|
use App\Classes\Modules\Questionnaires\ControllersLogic\FetchAdminWFPendingFillPOLogic;
|
|
use Illuminate\Http\JsonResponse;
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
class AdminWorkflowBaseController
|
|
{
|
|
/**
|
|
* @param Request $request
|
|
* @param FetchAdminWF1688BookingLogic $logic
|
|
* @return JsonResponse
|
|
*/
|
|
public function fetchBooking(Request $request, FetchAdminWF1688BookingLogic $logic): JsonResponse {
|
|
return $logic->execute($request);
|
|
}
|
|
|
|
/**
|
|
* @param Request $request
|
|
* @param FetchAdminWFModelAttributesLogic $logic
|
|
* @return JsonResponse
|
|
*/
|
|
public function fetchModelAttributes(Request $request, FetchAdminWFModelAttributesLogic $logic): JsonResponse {
|
|
return $logic->execute($request);
|
|
}
|
|
|
|
/**
|
|
* @param Request $request
|
|
* @param FetchAdminWFPendingApprovalPOLogic $logic
|
|
* @return JsonResponse
|
|
*/
|
|
public function fetchPendingApprovalPO(Request $request, FetchAdminWFPendingApprovalPOLogic $logic): JsonResponse {
|
|
return $logic->execute($request);
|
|
}
|
|
|
|
/**
|
|
* @param Request $request
|
|
* @param FetchAdminWFPendingFillPOLogic $logic
|
|
* @return JsonResponse
|
|
*/
|
|
public function fetchPendingFillPO(Request $request, FetchAdminWFPendingFillPOLogic $logic): JsonResponse {
|
|
return $logic->execute($request);
|
|
}
|
|
}
|