Job agree

This commit is contained in:
CHIEFSOFT\ameye
2023-05-09 16:01:55 -04:00
parent 9528fd4e3c
commit 069d03bee9
6 changed files with 29 additions and 0 deletions
+20
View File
@@ -21,6 +21,8 @@
long WrenchJobsQuestion(CVars in, CVars &out);
long WrenchMarketInterestQuestion(CVars in, CVars &out);
long WrenchReplyMessage(CVars in, CVars &out);
long WrenchJobPostAgree(CVars in, CVars &out);
long jobs_calls(CVars in, CVars &out) {
logfmt(logINFO, "jobs_calls()");
@@ -28,6 +30,9 @@ long jobs_calls(CVars in, CVars &out) {
long action = REQ_LONG(in, "action", 0, -1);
logfmt(logINFO, "jobs_calls() action=%lu",action);
switch (action) {
case WRENCHBOARD_JOB_POSTAGREE:
return WrenchJobPostAgree(in, out);
break;
case WRENCHBOARD_JOB_LISTJOBS:
return WrenchJobManagerList(in, out);
break;
@@ -97,6 +102,21 @@ long jobs_calls(CVars in, CVars &out) {
return 0;
}
long WrenchJobPostAgree(CVars in, CVars &out) {
long member_id = REQ_LONG(in, "member_id", 1, -1);
long message_id = REQ_LONG(in, "message_id", 1, -1);
REQ_STRING(in, "yourmessage", 1, 500, "(.*)"); //offer_code
REQ_STRING(in, "memo", 1, 15, "(.*)"); //offer_code
logfmt(logINFO, "/WrenchReplyMessage()");
return 0;
}
long WrenchReplyMessage(CVars in, CVars &out) {
long member_id = REQ_LONG(in, "member_id", 1, -1);
long message_id = REQ_LONG(in, "message_id", 1, -1);