123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- const Api = require('./Api');
- class JobApi {
- static chooseJob(targetUid, jobId, success, fail) {
- Api.httpPost({
- url: '/job/selectJob.do',
- data: {
- targetUid: targetUid,
- jobId: jobId,
- },
- success: success,
- fail: fail,
- });
- }
- static changeJob(targetUid, jobId, success, fail) {
- Api.httpPost({
- url: '/job/changeJob.do',
- data: {
- targetUid: targetUid,
- jobId: jobId,
- },
- success: success,
- fail: fail,
- });
- }
- static levelUp(targetUid, success, fail) {
- Api.httpPost({
- url: '/job/upgradeJob.do',
- data: {
- targetUid: targetUid,
- },
- success: success,
- fail: fail,
- });
- }
- static changeJobList(targetUid, success, fail) {
- Api.httpGet({
- url: '/job/getChangeJobList.do',
- data: {
- targetUid: targetUid,
- },
- success: success,
- fail: fail,
- });
- }
- static levelUpInfo(targetUid, success, fail) {
- Api.httpGet({
- url: '/job/getUpgradeJobList.do',
- data: {
- targetUid: targetUid,
- },
- success: success,
- fail: fail,
- });
- }
- static actorsNoJob(success, fail) {
- Api.httpGet({
- url: '/job/getMyArtistsWithNoJob.do',
- data: {
- },
- success: success,
- fail: fail,
- });
- };
- }
- module.exports = JobApi;
|