php parts

This commit is contained in:
CHIEFSOFT\ameye
2024-09-30 11:26:09 -04:00
parent 38a5c6c58f
commit 49fd3fa3cd
3 changed files with 25 additions and 0 deletions
+1
View File
@@ -301,6 +301,7 @@ define('WRENCHBOARD_JOB_USERACTIVE',13009);
define('WRENCHBOARD_JOB_CREATEJOB',13010 );
define('WRENCHBOARD_JOB_DELETEJOB',13011 );
define('WRENCHBOARD_JOB_RECENTPASTDUE',13019 );
define('WRENCHBOARD_JOB_GROUP_MEMBER', 13015) ;
define('WRENCHBOARD_JOB_DELETE_GROUPMEMBER',13017);
+3
View File
@@ -49,6 +49,9 @@ $routes->post('/en/wrench/api/v1/dashdata', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getjobsdata', 'WrenchJobs::getJobsData'); //WrenchJobs WrenchApi apigate
$routes->post('/en/wrench/api/v1/verifycompleted', 'WrenchJobs::verifyCompletedHx');
$routes->post('/en/wrench/api/v1/recentpastdue', 'WrenchJobs::recentPastDueJobs');
$routes->post('/en/wrench/api/v1/offerslist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offersresponse', 'WrenchApi::apigate');
+21
View File
@@ -105,6 +105,27 @@ class WrenchJobs extends BaseController
return $this->respond( $this->summaryReturnData($in,$out), 3000);
}
public function recentPastDueJobs(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$in["action"] = WRENCHBOARD_JOB_RECENTPASTDUE;
$in["nocache"] = $in["nocache"] ?? false;
$out =[];
//$wrenchboard = new \App\Models\BackendModel();
$in["limit"] = 10;
$in["page"] = 0;
$in["offset"] = 0;
$in["allstatus"] =0;
$ret= $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
$res = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
return $res['result_list'];
}
public function sendJobInterest(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);