TalentApi.js 770 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. const Api = require('../net/Api');
  2. class TalentApi {
  3. getTalentMissionList(success, fail) {
  4. let url = "/inviteReward/getInviteRewardInfo.do";
  5. let requestBody = {
  6. url: url,
  7. success: success,
  8. fail: fail,
  9. complete: () => {
  10. }
  11. };
  12. Api.httpGet(requestBody);
  13. }
  14. postGainAward(rid, success, fail) {
  15. let url = "/inviteReward/getInviteReward.do";
  16. let data = {
  17. rid: rid
  18. };
  19. let requestBody = {
  20. url: url,
  21. data: data,
  22. success: success,
  23. fail: fail,
  24. complete: () => {
  25. }
  26. };
  27. Api.httpPost(requestBody);
  28. }
  29. }
  30. module.exports = new TalentApi();