This commit is contained in:
CHIEFSOFT\ameye
2023-05-11 07:31:27 -04:00
parent fd0bc9af69
commit 92c5e6ccb2
9 changed files with 51 additions and 10 deletions
+2
View File
@@ -95,6 +95,8 @@ define('EVENT_PRIORITY_HIGH', 10);
define('ADD_JOB', 10010);
define('UPDATE_JOB', 10020);
define('PHP_API_OK', 0);
define('PHP_LOGIN_OK', 100);
+3
View File
@@ -76,6 +76,9 @@ $routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageroffers', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagercreatejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerupdatejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familyadd', 'WrenchApi::apigate');
+10 -1
View File
@@ -82,6 +82,8 @@ class WrenchApi extends BaseController
'jobmanageragree' => ['POST'],
'jobmanagerlist' => ['POST'],
'jobmanageroffers'=> ['POST'],
'jobmanagercreatejob'=> ['POST'],
'jobmanagerupdatejob'=> ['POST'],
'profilepasschange' => ['POST'],
'starttopup' => ['POST'],
'familylist' => ['POST'],
@@ -109,7 +111,14 @@ class WrenchApi extends BaseController
case 'familymanage':
$in["action"] = WRENCHBOARD_FAMILY_MANAGE;
break;
case 'jobmanagercreatejob':
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = ADD_JOB;
break;
case 'jobmanagerupdatejob':
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = UPDATE_JOB;
break;
case 'jobmanageroffers':
$in["action"] = WRENCHBOARD_JOB_OFFERS;
break;
+1 -1
View File
@@ -100,7 +100,7 @@ class ResultFormatter extends Model
"age" => $out["age_${key}"],
"last_login" => '10-10-2024',
"task_count" => rand(0,20),
"added" => '10-10-2024'
"added" => $out["added_${key}"],
);
}
+2
View File
@@ -2,6 +2,8 @@
require_once 'config.php';
define('ADD_JOB', 10010);
define('UPDATE_JOB', 10020);
define('PHP_API_OK', 0);
define('PHP_LOGIN_OK', 100);
+1 -1
View File
@@ -94,7 +94,7 @@ function processOutJson($in, $out) {
"age" => $out["age_${key}"],
"last_login" => '10-10-2024',
"task_count" => rand(0,20),
"added" => '10-10-2024'
"added" => $out["added_${key}"],
);
}
+10 -1
View File
@@ -61,6 +61,8 @@ $endpoints = array(
'jobmanageragree' => array('POST'),
'jobmanagerlist' => array('POST'),
'jobmanageroffers'=> array('POST'),
'jobmanagercreatejob'=> array('POST'),
'jobmanagerupdatejob'=> array('POST'),
'profilepasschange' => array('POST'),
'starttopup' => array('POST'),
'familylist' => array('POST'),
@@ -144,7 +146,14 @@ switch ($endpoint) {
case 'familymanage':
$in["action"] = WRENCHBOARD_FAMILY_MANAGE;
break;
case 'jobmanagercreatejob':
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = ADD_JOB;
break;
case 'jobmanagerupdatejob':
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = UPDATE_JOB;
break;
case 'jobmanageroffers':
$in["action"] = WRENCHBOARD_JOB_OFFERS;
break;