Pending Job Manage

This commit is contained in:
CHIEFSOFT\ameye
2023-05-19 12:35:33 -04:00
parent a2bbef8a1e
commit 331cc1a878
6 changed files with 42 additions and 1 deletions
+4
View File
@@ -242,6 +242,10 @@ define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);
define('WRENCHBOARD_JOB_RESEND_MESSAGE',13042);
define('WRENCHBOARD_JOB_CANCEL_OFFER' ,13043);
//define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
define('WRENCHBOARD_GROUP_START', 12000);
+3
View File
@@ -121,6 +121,9 @@ $routes->post('/en/wrench/api/v1/replyinterestmessage', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/disableaccount', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/myjobs', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjobextend', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjobsendtome','WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/pendingjobcancel', 'WrenchApi::apigate');
//$routes->post('/en/wrench/api/v1/blogdata', 'WrenchBlog::apigate');
//$routes->post('/en/wrench/api/v1/blogitem', 'WrenchBlog::apigate');
+15
View File
@@ -94,12 +94,27 @@ class WrenchApi extends BaseController
'familyadd' => ['POST'],
'familyupdate' => ['POST'],
'familymanage' => ['POST'],
'pendingjobextend' => ['POST'],
'pendingjobsendtome' => ['POST'],
'pendingjobcancel' => ['POST'],
];
return $endpoints;
}
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
switch ($endpoint) {
case 'pendingjobextend':
$in["action"] = WRENCHBOARD_JOB_EXTEND_EXPIRE;
break;
case 'pendingjobsendtome':
$in["action"] = WRENCHBOARD_JOB_RESEND_MESSAGE;
break;
case 'pendingjobcancel':
$in["action"] = WRENCHBOARD_JOB_CANCEL_OFFER;
break;
case 'familylist':
$in["action"] = WRENCHBOARD_FAMILY_LIST;
break;
+4
View File
@@ -148,6 +148,10 @@ define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);
define('WRENCHBOARD_JOB_RESEND_MESSAGE',13042);
define('WRENCHBOARD_JOB_CANCEL_OFFER' ,13043);
//define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
define('WRENCHBOARD_GROUP_START', 12000);
+1 -1
View File
@@ -97,7 +97,7 @@ function processOutJson($in, $out) {
);
}
break;
case WRENCHBOARD_FAMILY_LIST:
$total = $out["total_record"];
+15
View File
@@ -73,6 +73,9 @@ $endpoints = array(
'familyadd' => array('POST'),
'familyupdate' => array('POST'),
'familymanage' => array('POST'),
'pendingjobextend' => array('POST'),
'pendingjobsendtome' => array('POST'),
'pendingjobcancel' => array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -135,6 +138,18 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'pendingjobextend':
$in["action"] = WRENCHBOARD_JOB_EXTEND_EXPIRE;
break;
case 'pendingjobsendtome':
$in["action"] = WRENCHBOARD_JOB_RESEND_MESSAGE;
break;
case 'pendingjobcancel':
$in["action"] = WRENCHBOARD_JOB_CANCEL_OFFER;
break;
case 'familylist':
$in["action"] = WRENCHBOARD_FAMILY_LIST;
break;