index.js 958 Bytes
import api from "../index";
import urls from "./urls";

export default {
  tableList(params) {
    return api.get(urls.tableList, params);
  },
  detailImg(params, id) {
    return api.get(urls.detailImg + id, params);
  },
  detailImgBatch(params) {
    return api.post(urls.detailImgBatch, params);
  },
  detailVideo(params, id) {
    return api.get(urls.detailvideo + id, params);
  },
  delVehicle(params, id) {
    // return出去了一个promise
    return api.delete(urls.delVehicle + id, params);
  },
  patchdel(params, id) {
    // return出去了一个promise
    return api.delete(urls.patchdel, params);
  },
  eventTypes(params, id) {
    return api.get(urls.eventTypes, params);
  },
  eventTableList(params, id) {
    return api.get(urls.eventTableList, params);
  },
  traficflow(params, id) {
    return api.get(urls.traficflow, params);
  },
  delEvents(params, id) {
    return api.delete(urls.eventTableList + "/" + id, params);
  }
};