123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132 |
- const Api = require('../net/Api');
- class InviteApi {
- getInviteMissionList(success, fail) {
- let url = "/inviteReward/getInviteRewardInfo.do";
- let requestBody = {
- url: url,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpGet(requestBody);
- }
- postGainAward(rid, success, fail) {
- let url = "/inviteReward/getInviteReward.do";
- let data = {
- rid: rid
- };
- let requestBody = {
- url: url,
- data: data,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpPost(requestBody);
- }
- postInviteFriend(fid, success, fail) {
- let url = "/inviteReward/addInviteReward.do";
- let data = {
- fid: fid
- };
- let requestBody = {
- url: url,
- data: data,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpPost(requestBody);
- }
- postLoginReward(rewardId, isShare, success, fail) {
- let url = "/lReward/getLoginReward.do";
- let data = {
- rewardId: rewardId,
- isShare: isShare
- };
- let requestBody = {
- url: url,
- data: data,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpPost(requestBody);
- }
- postFriendRewardAdd(fid, success, fail) {
- let url = "/friendReward/add.do";
- let data = {
- fid: fid
- };
- let requestBody = {
- url: url,
- data: data,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpPost(requestBody);
- }
- getFriendRewardList(success, fail) {
- let url = "/friendReward/getList.do";
- let requestBody = {
- url: url,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpGet(requestBody);
- }
- postFriendGainAward(rewardId, success, fail) {
- let url = "/friendReward/reward.do";
- let data = {
- rewardId: rewardId
- };
- let requestBody = {
- url: url,
- data: data,
- success: success,
- fail: fail,
- complete: () => {
- }
- };
- Api.httpPost(requestBody);
- }
- }
- module.exports = new InviteApi();
|