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
+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);