This commit is contained in:
CHIEFSOFT\ameye
2024-08-17 06:25:55 -04:00
parent c1f18a187e
commit 5ebfc2ed0c
2 changed files with 17 additions and 3 deletions
@@ -460,6 +460,22 @@ abstract class BaseController extends Controller
array("ty"=>"Completed Jobs", "id"=>"COMPLETED_JOBS", "tag"=>"hist_type_completed_jobs"),
];
}
public function generativeTypes(){
/*
SELECT * from generative_activities;
id | uid | title | search_text | status | added
----+--------------------------------------+----------------------+------------------------------------------+--------+----------------------------
1 | 4733e96b-7031-4684-bec3-f63da4417707 | General maths quiz | create 10 maths questions with answers | 1 | 2024-08-17 10:20:56.312351
2 | 149b7a30-f089-48c3-b351-3eb90e417c4c | General science quiz | create 10 science questions with answers | 1 | 2024-08-17 10:21:08.790259
(2 rows)
wrenchboard=#
*/
return [
array("uid"=>"4733e96b-7031-4684-bec3-f63da4417707", "title"=>"General maths quiz"),
array("uid"=>"149b7a30-f089-48c3-b351-3eb90e417c4c", "title"=>" General science quiz"),
];
}
public function summaryReturnData($in,$out){
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
$final_out["environment"] = $this->current_env + 0;
@@ -470,6 +486,7 @@ abstract class BaseController extends Controller
$final_out["current_version"] = 20240306;
$final_out["family_types"] = $this->familyTypes();
$final_out["history_types"] = $this->historyTypes();
$final_out["generative_types"] = $this->generativeTypes();
$final_out["refer_link"] = "https://www.wrenchboard.com";
return json_encode( $final_out );
}