Job stats

This commit is contained in:
CHIEFSOFT\ameye
2024-07-18 12:03:15 -04:00
parent 1185fb97ec
commit 9ec7f55046
5 changed files with 31 additions and 2 deletions
@@ -333,6 +333,8 @@ enum { PARTNER_STRIPE };
#define WRENCHBOARD_JOB_JOBGROUPADD 13046
#define WRENCHBOARD_JOB_REPORT 13047
#define WRENCHBOARD_JOB_STATS_INTEREST 13048
#define WRENCHBOARD_JOBS_END 13999
//**************************************************************
+16 -1
View File
@@ -33,7 +33,7 @@ long WrenchSendJobsOfferCreateAssign(CVars in, CVars &out);
long WrenchJobsOfferInterestList(CVars in, CVars &out);
long WrenchUserJobsInterestList(CVars in, CVars &out);
long WrenchJobsGroupList(CVars in, CVars &out);
long WrenchJobsInterestStats(CVars in, CVars &out);
long jobs_calls(CVars in, CVars &out) {
logfmt(logINFO, "jobs_calls()");
@@ -131,6 +131,10 @@ long jobs_calls(CVars in, CVars &out) {
return WrenchJobsOfferInterest(in, out);
break;
case WRENCHBOARD_JOB_STATS_INTEREST:
return WrenchJobsInterestStats(in, out);
break;
case WRENCHBOARD_JOB_PROC_INTEREST:
return WrenchJobsProcessInterest(in, out);
break;
@@ -500,6 +504,17 @@ long WrenchUserJobsInterestList(CVars in, CVars &out) {
}
long WrenchJobsInterestStats(CVars in, CVars &out) {
long ret = PHP_API_BAD_PARAM;
char vname[30];
out = in;
ret = PHP_CREATED_OK;
return ret;
}
long WrenchJobsOfferInterestList(CVars in, CVars &out) {
long ret = PHP_API_BAD_PARAM;
char vname[30];
+1 -1
View File
@@ -141,7 +141,7 @@ $routes->post('/en/wrench/api/v1/sendmoney', 'WrenchWallet::sendMoney')
$routes->post('/en/wrench/api/v1/sendinterest', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/waitinginterest', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/intereststats', 'WrenchJobs::interestStats');
$routes->post('/en/wrench/api/v1/sendmoneyfee', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/getpendingjobs', 'WrenchApi::apigate');
+11
View File
@@ -12,6 +12,17 @@ class WrenchJobs extends BaseController
$this->request = $request = \Config\Services::request();
}
public function interestStats(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$in["action"] = WRENCHBOARD_JOB_STATS_INTEREST;
$out=[];
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
log_message('critical', "***** ***** WrenchJobs::interestStats Ret = ".$ret );
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function contractHx(){
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
+1
View File
@@ -165,6 +165,7 @@ define('WRENCHBOARD_JOB_OFFER_CONCLUDE',13035);
define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
const WRENCHBOARD_JOB_STATS_INTEREST = 13048;
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);