1
0

JobApi.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. const Api = require('./Api');
  2. class JobApi {
  3. static chooseJob(targetUid, jobId, success, fail) {
  4. Api.httpPost({
  5. url: '/job/selectJob.do',
  6. data: {
  7. targetUid: targetUid,
  8. jobId: jobId,
  9. },
  10. success: success,
  11. fail: fail,
  12. });
  13. }
  14. static changeJob(targetUid, jobId, success, fail) {
  15. Api.httpPost({
  16. url: '/job/changeJob.do',
  17. data: {
  18. targetUid: targetUid,
  19. jobId: jobId,
  20. },
  21. success: success,
  22. fail: fail,
  23. });
  24. }
  25. static levelUp(targetUid, success, fail) {
  26. Api.httpPost({
  27. url: '/job/upgradeJob.do',
  28. data: {
  29. targetUid: targetUid,
  30. },
  31. success: success,
  32. fail: fail,
  33. });
  34. }
  35. static changeJobList(targetUid, success, fail) {
  36. Api.httpGet({
  37. url: '/job/getChangeJobList.do',
  38. data: {
  39. targetUid: targetUid,
  40. },
  41. success: success,
  42. fail: fail,
  43. });
  44. }
  45. static levelUpInfo(targetUid, success, fail) {
  46. Api.httpGet({
  47. url: '/job/getUpgradeJobList.do',
  48. data: {
  49. targetUid: targetUid,
  50. },
  51. success: success,
  52. fail: fail,
  53. });
  54. }
  55. static actorsNoJob(success, fail) {
  56. Api.httpGet({
  57. url: '/job/getMyArtistsWithNoJob.do',
  58. data: {
  59. },
  60. success: success,
  61. fail: fail,
  62. });
  63. };
  64. }
  65. module.exports = JobApi;