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