apiBase.js 917 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { get } from '../http/http'
  2. const prefix = "dawn/api/v1/"
  3. const apiBase = {
  4. getAssignStatusOptions() {
  5. return get(prefix + "assignment-status-select")
  6. },
  7. getChargerTypeOptions() {
  8. return get(prefix + "charger-type-select")
  9. },
  10. getDataStatusOptions() {
  11. return get(prefix + "data-status-select")
  12. },
  13. getAuditStatusOptions() {
  14. return get(prefix + "audit-status-select")
  15. },
  16. getUserGroupOptions(groupType) {
  17. return get(prefix + "group-select", {groupType: groupType})
  18. },
  19. getUserTypeOptions() {
  20. return get(prefix + "user-type-select")
  21. },
  22. /**
  23. * 获取用户列表(模糊查询)
  24. * @param {Object} data {email}
  25. */
  26. getUserOptions(data) {
  27. return get(prefix + "user-select", data)
  28. },
  29. getCountryList() {
  30. return get(prefix + "country-select")
  31. },
  32. getProviderList() {
  33. return get(prefix + "service-provider-select")
  34. }
  35. }
  36. export default apiBase;