Job manage

This commit is contained in:
CHIEFSOFT\ameye
2023-05-11 08:54:16 -04:00
parent bdd44f9bb1
commit e21fe33fc2
4 changed files with 59 additions and 16 deletions
+1
View File
@@ -78,6 +78,7 @@ $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/jobmanagerdeletejob', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/familylist', 'WrenchApi::apigate');
+4
View File
@@ -84,6 +84,7 @@ class WrenchApi extends BaseController
'jobmanageroffers'=> ['POST'],
'jobmanagercreatejob'=> ['POST'],
'jobmanagerupdatejob'=> ['POST'],
'jobmanagerdeletejob'=> ['POST'],
'profilepasschange' => ['POST'],
'starttopup' => ['POST'],
'familylist' => ['POST'],
@@ -119,6 +120,9 @@ class WrenchApi extends BaseController
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = UPDATE_JOB;
break;
case 'jobmanagerdeletejob':
$in["action"] = WRENCHBOARD_JOB_DELETEJOB;
break;
case 'jobmanageroffers':
$in["action"] = WRENCHBOARD_JOB_OFFERS;
break;
+4
View File
@@ -63,6 +63,7 @@ $endpoints = array(
'jobmanageroffers'=> array('POST'),
'jobmanagercreatejob'=> array('POST'),
'jobmanagerupdatejob'=> array('POST'),
'jobmanagerdeletejob'=> array('POST'),
'profilepasschange' => array('POST'),
'starttopup' => array('POST'),
'familylist' => array('POST'),
@@ -154,6 +155,9 @@ switch ($endpoint) {
$in["action"] = WRENCHBOARD_JOB_CREATEJOB;
$in["job_mode"] = UPDATE_JOB;
break;
case 'jobmanagerdeletejob':
$in["action"] = WRENCHBOARD_JOB_DELETEJOB;
break;
case 'jobmanageroffers':
$in["action"] = WRENCHBOARD_JOB_OFFERS;
break;