apiBase.js 403 B

123456789101112131415161718
  1. import { get, post } from "./http";
  2. const prefix = 'devicesApi/base/';
  3. export default {
  4. listChargeBox(search) {
  5. return get(prefix + "getChargeBoxes", {chargeBoxId: search})
  6. },
  7. listConnector(id) {
  8. return get(prefix + "getConnectors", {chargeBoxId: id})
  9. },
  10. checkUpdate() {
  11. return get(prefix + "checkAppVersion")
  12. },
  13. getPinMessage() {
  14. return get(prefix + "pin-message")
  15. }
  16. }