From 38fafdcb0b86260b6a4e642733037043b7d812bb Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Thu, 19 Sep 2024 19:06:32 -0400 Subject: [PATCH] job call --- wrenchboard/src/include/jobs.h | 18 ++++++++++++++++++ wrenchboard/src/shared_tool/account.cc | 22 +++++++++++++++++++++- wrenchboard/src/shared_tool/jobs.cc | 17 ----------------- 3 files changed, 39 insertions(+), 18 deletions(-) diff --git a/wrenchboard/src/include/jobs.h b/wrenchboard/src/include/jobs.h index 035d20b2..587f582b 100644 --- a/wrenchboard/src/include/jobs.h +++ b/wrenchboard/src/include/jobs.h @@ -24,5 +24,23 @@ long WrenchJobsOfferInterest( CVars in, CVars &out ); long WrenchJobsProcessInterest( CVars in, CVars &out ); long WrenchConcludeJobsOffer( CVars in, CVars &out ); + +long WrenchJobsQuestion(CVars in, CVars &out); +long WrenchMarketInterestQuestion(CVars in, CVars &out); +long WrenchMarketInterestQuestionList(CVars in, CVars &out); +long WrenchReplyMessage(CVars in, CVars &out); +long WrenchJobPostAgree(CVars in, CVars &out); +long WrenchJobPostExtendTime(CVars in, CVars &out); +long WrenchJobPostNotifyOffer(CVars in, CVars &out); +long WrenchJobPostCancelOffer(CVars in, CVars &out); +long WrenchJobOfferSystems(CVars in, CVars &out); +long WrenchSendJobsOfferFamily(CVars in, CVars &out); +long WrenchSendMediaOfferFamily(CVars in, CVars &out); +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); + #endif diff --git a/wrenchboard/src/shared_tool/account.cc b/wrenchboard/src/shared_tool/account.cc index 81926dac..982f76a3 100644 --- a/wrenchboard/src/shared_tool/account.cc +++ b/wrenchboard/src/shared_tool/account.cc @@ -2485,6 +2485,7 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){ CVars p; CVars z; CVars inx; + CVars inj; try { REQ_STRING(in, "promo_owner", 2, 149, "(.*)"); @@ -2546,7 +2547,26 @@ long LoginWrenchPromoAccount( CVars in, CVars &out ){ inx["sessionid"] = "THIS-IS-DUMMY-INSURANCE"; inx["sessionid"].set_valid( true ); inx["loc"] = loc; inx["loc"].set_valid( true ); inx["login_mode"] = LOGIN_MODE_GENERAL; inx["login_mode"].set_valid( true ); - return LoginWrenchBoardAccount(inx, out); + ret = LoginWrenchBoardAccount(inx, out); + logfmt(logINFO, "Auto Assign JOB LoginWrenchPromoAccount(CVars in, CVars &out)"); + + /* + + $data = array( + "member_id" => $member_id , + "sessionid" => $session_id , + "uid" => $uid, + "job_id" => '98', + "job_uid" => '473d3239-ecd7-4eb5-859c-78261720cb8e', + "email" => 'ses66181+3@gmail.com', + "job_description" => 'Nitetronic Z6 Anti Snoring Pillow, Best Snore Stopper Device, Clinically Proven Snoring Solution for Snorers, Smart Stop Snoring Technology Suitable for All Sleepers', + 'action'=>WRENCHBOARD_JOB_OFFER_SYSTEM, + 'assign_mode' => ASSIGN_MODE_EMAIL, + ); + */ + + // out["assign_id"] = WrenchJobOfferSystems(inj, out); + } diff --git a/wrenchboard/src/shared_tool/jobs.cc b/wrenchboard/src/shared_tool/jobs.cc index 43dedce7..904d1d40 100644 --- a/wrenchboard/src/shared_tool/jobs.cc +++ b/wrenchboard/src/shared_tool/jobs.cc @@ -18,23 +18,6 @@ #include "jobs_manager.h" -long WrenchJobsQuestion(CVars in, CVars &out); -long WrenchMarketInterestQuestion(CVars in, CVars &out); -long WrenchMarketInterestQuestionList(CVars in, CVars &out); -long WrenchReplyMessage(CVars in, CVars &out); -long WrenchJobPostAgree(CVars in, CVars &out); -long WrenchJobPostExtendTime(CVars in, CVars &out); -long WrenchJobPostNotifyOffer(CVars in, CVars &out); -long WrenchJobPostCancelOffer(CVars in, CVars &out); -long WrenchJobOfferSystems(CVars in, CVars &out); -long WrenchSendJobsOfferFamily(CVars in, CVars &out); -long WrenchSendMediaOfferFamily(CVars in, CVars &out); -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()"); out["result"] = "YES I GET TO BACK END";