1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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);
- }
- }
- module.exports = new InviteApi();
|