Job stats
This commit is contained in:
@@ -333,6 +333,8 @@ enum { PARTNER_STRIPE };
|
|||||||
#define WRENCHBOARD_JOB_JOBGROUPADD 13046
|
#define WRENCHBOARD_JOB_JOBGROUPADD 13046
|
||||||
|
|
||||||
#define WRENCHBOARD_JOB_REPORT 13047
|
#define WRENCHBOARD_JOB_REPORT 13047
|
||||||
|
#define WRENCHBOARD_JOB_STATS_INTEREST 13048
|
||||||
|
|
||||||
|
|
||||||
#define WRENCHBOARD_JOBS_END 13999
|
#define WRENCHBOARD_JOBS_END 13999
|
||||||
//**************************************************************
|
//**************************************************************
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ long WrenchSendJobsOfferCreateAssign(CVars in, CVars &out);
|
|||||||
long WrenchJobsOfferInterestList(CVars in, CVars &out);
|
long WrenchJobsOfferInterestList(CVars in, CVars &out);
|
||||||
long WrenchUserJobsInterestList(CVars in, CVars &out);
|
long WrenchUserJobsInterestList(CVars in, CVars &out);
|
||||||
long WrenchJobsGroupList(CVars in, CVars &out);
|
long WrenchJobsGroupList(CVars in, CVars &out);
|
||||||
|
long WrenchJobsInterestStats(CVars in, CVars &out);
|
||||||
|
|
||||||
long jobs_calls(CVars in, CVars &out) {
|
long jobs_calls(CVars in, CVars &out) {
|
||||||
logfmt(logINFO, "jobs_calls()");
|
logfmt(logINFO, "jobs_calls()");
|
||||||
@@ -131,6 +131,10 @@ long jobs_calls(CVars in, CVars &out) {
|
|||||||
return WrenchJobsOfferInterest(in, out);
|
return WrenchJobsOfferInterest(in, out);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case WRENCHBOARD_JOB_STATS_INTEREST:
|
||||||
|
return WrenchJobsInterestStats(in, out);
|
||||||
|
break;
|
||||||
|
|
||||||
case WRENCHBOARD_JOB_PROC_INTEREST:
|
case WRENCHBOARD_JOB_PROC_INTEREST:
|
||||||
return WrenchJobsProcessInterest(in, out);
|
return WrenchJobsProcessInterest(in, out);
|
||||||
break;
|
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 WrenchJobsOfferInterestList(CVars in, CVars &out) {
|
||||||
long ret = PHP_API_BAD_PARAM;
|
long ret = PHP_API_BAD_PARAM;
|
||||||
char vname[30];
|
char vname[30];
|
||||||
|
|||||||
@@ -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/sendinterest', 'WrenchApi::apigate');
|
||||||
$routes->post('/en/wrench/api/v1/waitinginterest', '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/sendmoneyfee', 'WrenchApi::apigate');
|
||||||
$routes->post('/en/wrench/api/v1/getpendingjobs', 'WrenchApi::apigate');
|
$routes->post('/en/wrench/api/v1/getpendingjobs', 'WrenchApi::apigate');
|
||||||
|
|||||||
@@ -12,6 +12,17 @@ class WrenchJobs extends BaseController
|
|||||||
$this->request = $request = \Config\Services::request();
|
$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(){
|
public function contractHx(){
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
$in = json_decode($raw_json, true);
|
$in = json_decode($raw_json, true);
|
||||||
|
|||||||
@@ -165,6 +165,7 @@ define('WRENCHBOARD_JOB_OFFER_CONCLUDE',13035);
|
|||||||
define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
|
define('WRENCHBOARD_JOB_SEND_QUESTION',13036);
|
||||||
define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
|
define('WRENCHBOARD_JOB_MRKTINT_QUEST',13037);
|
||||||
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
||||||
|
const WRENCHBOARD_JOB_STATS_INTEREST = 13048;
|
||||||
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
//define('WRENCHBOARD_JOB_REPLY_QUESTION',13038);
|
||||||
|
|
||||||
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);
|
define('WRENCHBOARD_JOB_EXTEND_EXPIRE' ,13041);
|
||||||
|
|||||||
Reference in New Issue
Block a user