CityMapApi.js 762 B

12345678910111213141516171819202122232425262728293031323334
  1. const Api = require('./Api');
  2. class CityMapApi {
  3. static getMapInfo(success, fail) {
  4. Api.httpGet({
  5. url: '/city/getUserCityInfo.do',
  6. data: {},
  7. success: success,
  8. fail: fail,
  9. });
  10. }
  11. static openNewCity(success, fail) {
  12. Api.httpPost({
  13. url: '/city/openNextCity.do',
  14. data: {},
  15. success: success,
  16. fail: fail,
  17. });
  18. }
  19. static reportCityIncome() {
  20. // Api.httpPost({
  21. // url: '/city/reportCityIncome.do',
  22. // data: {},
  23. // success: success,
  24. // fail: fail,
  25. // });
  26. return Api.httpPostPromise('/city/reportCityIncome.do');
  27. }
  28. }
  29. module.exports = CityMapApi;