Offers response

This commit is contained in:
CHIEFSOFT\ameye
2023-05-28 08:17:03 -04:00
parent 7b9b5db617
commit f381ffc9f6
7 changed files with 21 additions and 0 deletions
@@ -283,6 +283,7 @@ enum { PARTNER_STRIPE };
#define WRENCHBOARD_MOBILE_START 15000
#define WRENCHBOARD_MOBILE_OFFERSLIST 15010
#define WRENCHBOARD_MOBILE_OFFERSRESP 15012
#define WRENCHBOARD_MOBILE_ACTIVEJOB 15020
#define WRENCHBOARD_MOBILE_LOADPROFILE 15030
#define WRENCHBOARD_MOBILE_UPDATEPROFILE 15031
+11
View File
@@ -18,6 +18,7 @@
#include "contract.h"
long WrenchReturnTaskMessage(CVars in, CVars &out);
long WrenchReturnOffersResponse(CVars in, CVars &out);
long mobile_calls(CVars in, CVars &out) {
logfmt(logINFO, "mobile_calls()");
@@ -32,6 +33,10 @@ long mobile_calls(CVars in, CVars &out) {
return WrenchReturnJobOffersList(in, out);
break;
case WRENCHBOARD_MOBILE_OFFERSRESP:
return WrenchReturnOffersResponse(in, out);
break;
case WRENCHBOARD_MOBILE_LOADPROFILE:
return WrenchReturnUserProfile(in, out);
break;
@@ -309,4 +314,10 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
long WrenchReturnActiveJobsList(CVars in, CVars &out) {
// return WrenchUsersTasksList(in, out);
return WrenchMemberActiveJobs(in, out);
}
/* This return the list of jobs on the home page of the apps*/
long WrenchReturnOffersResponse(CVars in, CVars &out) {
// return WrenchUsersTasksList(in, out);
return 0
}
+2
View File
@@ -269,6 +269,8 @@ define('WRENCHBOARD_CONTRACT_STATUS', 14015);
define('WRENCHBOARD_MOBILE_OFFERSLIST', 15010);
define('WRENCHBOARD_MOBILE_OFFERSRESP', 15012);
define('WRENCHBOARD_MOBILE_ACTIVEJOB', 15020);
define('WRENCHBOARD_MOBILE_LOADPROFILE', 15030);
define('WRENCHBOARD_MOBILE_UPDATEPROFILE',15031);
+3
View File
@@ -61,7 +61,10 @@ $routes->post('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate');
$routes->get('/en/wrench/api/v1/startjoblist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/dashdata', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getjobsdata', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offerslist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/offersresponse', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/activejoblist', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/loadprofile', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/updateprofile', 'WrenchApi::apigate');
+1
View File
@@ -45,6 +45,7 @@ class WrenchApi extends BaseController
'dashdata' => ['POST'],
'getjobsdata' => ['POST'],
'offerslist' => ['POST'],
'offersresponse' => ['POST'],
'activejoblist' => ['POST'],
'loadprofile' => ['POST'],
'updateprofile' => ['POST'],
+2
View File
@@ -181,6 +181,8 @@ define('WRENCHBOARD_CONTRACT_STATUS', 14015);
define('WRENCHBOARD_MOBILE_OFFERSLIST', 15010);
define('WRENCHBOARD_MOBILE_OFFERSRESP', 15012);
define('WRENCHBOARD_MOBILE_ACTIVEJOB', 15020);
define('WRENCHBOARD_MOBILE_LOADPROFILE', 15030);
define('WRENCHBOARD_MOBILE_UPDATEPROFILE',15031);
+1
View File
@@ -24,6 +24,7 @@ $endpoints = array(
'dashdata' => array('POST'),
'getjobsdata' => array('POST'),
'offerslist' => array('POST'),
'offersresponse' => array('POST'),
'activejoblist' => array('POST'),
'loadprofile' => array('POST'),
'updateprofile'=> array('POST'),