first batch
This commit is contained in:
+2
-2
@@ -122,8 +122,8 @@ export const apiConst = {
|
||||
|
||||
WRENCHBOARD_ACCOUNT_PRICE_COMBO: 11171,
|
||||
WRENCHBOARD_ACCOUNT_JOBPOST_DURATION: 11173,
|
||||
WRENCHBOARD_ACCOUNT_USER_RECIPEINT: 11175,
|
||||
WRENCHBOARD_ACCOUNT_ADD_RECIPEINT: 11176,
|
||||
WRENCHBOARD_ACCOUNT_USER_RECIPIENT: 11175,
|
||||
WRENCHBOARD_ACCOUNT_ADD_RECIPIENT: 11176,
|
||||
WRENCHBOARD_ACCOUNT_ACCOUNT_TYPES: 11177,
|
||||
WRENCHBOARD_ACCOUNT_COUNTRY_COMBO: 11179,
|
||||
WRENCHBOARD_ACCOUNT_JOB_COUNTRY: 11181,
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import Axios from "axios";
|
||||
import { apiConst } from "../lib/apiConst";
|
||||
|
||||
class usersService {
|
||||
constructor() {
|
||||
@@ -20,7 +21,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11070
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_MYPAGE
|
||||
};
|
||||
return this.postAuxEnd("/mypageload", postData);
|
||||
}
|
||||
@@ -65,7 +66,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11202,
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_RECENTS,
|
||||
};
|
||||
return this.postAuxEnd("/recentactivities", postData);
|
||||
}
|
||||
@@ -133,7 +134,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
page: 1,
|
||||
limit: 20,
|
||||
action: 11309,
|
||||
action: apiConst.WRENCHBOARD_MYFILES_LIST,
|
||||
};
|
||||
return this.postAuxEnd("/myfiles", postData);
|
||||
}
|
||||
@@ -250,7 +251,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
page: 1,
|
||||
limit: 20,
|
||||
action: 11175,
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_USER_RECIPIENT
|
||||
};
|
||||
return this.postAuxEnd("/recipients", postData);
|
||||
}
|
||||
@@ -273,7 +274,7 @@ class usersService {
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
amount,
|
||||
action: 33025,
|
||||
action: apiConst.WRENCHBOARD_SMONEY_PROCFEE
|
||||
};
|
||||
return this.postAuxEnd("/sendmoneyfee", postData);
|
||||
}
|
||||
@@ -284,7 +285,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11053,
|
||||
action: apiConst.WRENCHBOARD_USER_STARTCREDIT,
|
||||
...value,
|
||||
};
|
||||
return this.postAuxEnd("/startcredit", postData);
|
||||
@@ -296,7 +297,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11056,
|
||||
action: apiConst.WRENCHBOARD_USER_USESAVEDCC,
|
||||
...value,
|
||||
};
|
||||
return this.postAuxEnd("/payprevcard", postData);
|
||||
@@ -308,7 +309,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11054,
|
||||
action: apiConst.WRENCHBOARD_USER_ADNEWCC,
|
||||
...value,
|
||||
};
|
||||
return this.postAuxEnd("/paynewcard", postData);
|
||||
@@ -321,7 +322,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
limit: 30,
|
||||
offset: 0,
|
||||
action: 22027,
|
||||
action: apiConst.WRENCHBOARD_FAMILY_SAMPLETASKS
|
||||
};
|
||||
return this.postAuxEnd("/familysampletasks", postData);
|
||||
}
|
||||
@@ -331,7 +332,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 13010,
|
||||
action: apiConst.WRENCHBOARD_JOB_CREATEJOB,
|
||||
...reqData,
|
||||
};
|
||||
return this.postAuxEnd("/familysuggesttasks", postData);
|
||||
@@ -343,7 +344,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 22025,
|
||||
action: apiConst.WRENCHBOARD_FAMILY_MANAGE,
|
||||
...reqData,
|
||||
};
|
||||
return this.postAuxEnd("/familymanage", postData);
|
||||
@@ -358,7 +359,7 @@ class usersService {
|
||||
job_mode: "ACTIVE",
|
||||
limit: 30,
|
||||
offset: 0,
|
||||
action: 13008,
|
||||
action: apiConst.WRENCHBOARD_JOB_ACTIVE,
|
||||
...reqData,
|
||||
};
|
||||
return this.postAuxEnd("/jobmanageractive", postData);
|
||||
@@ -370,7 +371,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 13010,
|
||||
action: apiConst.WRENCHBOARD_JOB_CREATEJOB,
|
||||
limit: 30,
|
||||
offset: 0,
|
||||
};
|
||||
@@ -471,7 +472,7 @@ class usersService {
|
||||
uuid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 22010,
|
||||
action: apiConst.WRENCHBOARD_FAMILY_LIST,
|
||||
...reqData,
|
||||
};
|
||||
return this.postAuxEnd("/askresources", postData);
|
||||
@@ -509,7 +510,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
page: 1,
|
||||
limit: 20,
|
||||
action: 85025,
|
||||
action: apiConst.WRENCHBOARD_COUPON_MEMLIST,
|
||||
};
|
||||
return this.postAuxEnd("/couponhx", postData);
|
||||
}
|
||||
@@ -521,7 +522,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
page: 1,
|
||||
limit: 20,
|
||||
action: 15049,
|
||||
action: apiConst.WRENCHBOARD_MOBILE_PURCHASEHX
|
||||
};
|
||||
return this.postAuxEnd("/purchasehx", postData);
|
||||
}
|
||||
@@ -534,7 +535,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
offset: 1,
|
||||
limit: 20,
|
||||
action: 22011,
|
||||
action: apiConst.WRENCHBOARD_FAMILY_TRANSFERHX
|
||||
};
|
||||
return this.postAuxEnd("/familyrewardhx", postData);
|
||||
}
|
||||
@@ -547,7 +548,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
page: 1,
|
||||
limit: 20,
|
||||
action: 15046,
|
||||
action: apiConst.WRENCHBOARD_MOBILE_PAYMENTHX
|
||||
};
|
||||
return this.postAuxEnd("/paymenthx", postData);
|
||||
}
|
||||
@@ -558,7 +559,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 33020,
|
||||
action: apiConst.WRENCHBOARD_SMONEY_MEMBER,
|
||||
...reqData,
|
||||
};
|
||||
return this.postAuxEnd("/sendmoney", postData);
|
||||
@@ -572,7 +573,7 @@ class usersService {
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
offset: 1,
|
||||
limit: 100,
|
||||
action: 11064,
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_REFFERHX
|
||||
};
|
||||
return this.postAuxEnd("/refferhx", postData);
|
||||
}
|
||||
@@ -583,7 +584,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 5031,
|
||||
action: apiConst.WRENCHBOARD_MOBILE_UPDATEPROFILE,
|
||||
...post,
|
||||
};
|
||||
return this.postAuxEnd("/updateprofile", postData);
|
||||
@@ -663,10 +664,10 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: Number(localStorage.getItem("member_id")),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11061,
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_TOPUP_RESULT,
|
||||
...post,
|
||||
};
|
||||
console.log("topupresult", postData);
|
||||
// console.log("topupresult", postData);
|
||||
return this.postAuxEnd("/topupresult", postData);
|
||||
}
|
||||
|
||||
@@ -676,7 +677,7 @@ class usersService {
|
||||
uid: localStorage.getItem("uid"),
|
||||
member_id: localStorage.getItem("member_id"),
|
||||
sessionid: localStorage.getItem("session_token"),
|
||||
action: 11032,
|
||||
action: apiConst.WRENCHBOARD_ACCOUNT_SENDREFER,
|
||||
...postData,
|
||||
};
|
||||
return this.postAuxEnd("/sendreferral", reqData);
|
||||
|
||||
Reference in New Issue
Block a user