This commit is contained in:
CHIEFSOFT\ameye
2024-01-20 13:33:26 -05:00
parent e7f7b32fc3
commit be98c9681e
4 changed files with 61 additions and 78 deletions
+6
View File
@@ -647,6 +647,7 @@ class WrenchApi extends BaseController
$final_out["language"] = "en";
$final_out["ip_loc"] = $ip_loc;
$final_out["family_types"] = $this->familyTypes();
$final_out["history_types"] = $this->historyTypes();
//return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
return json_encode( $final_out );
}
@@ -658,5 +659,10 @@ class WrenchApi extends BaseController
array("ty"=>"Others", "id"=>"Others", "tag"=>"fam_type_others")
];
}
private function historyTypes(){
return [
array("ty"=>"Completed Jobs", "id"=>"COMPLETED_JOBS", "tag"=>"hist_type_completed_jobs"),
];
}
}