"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.listGas = listGas;
exports.getGas = getGas;
exports.addGas = addGas;
exports.updateGas = updateGas;
exports.delGas = delGas;
exports.plateNumberList = plateNumberList;
exports.importData = importData;
exports.signOutGas = signOutGas;

var _request = _interopRequireDefault(require("@/utils/request"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

// 查询加油卡信息列表
function listGas(query) {
  return (0, _request["default"])({
    url: '/clw/gas/list',
    method: 'get',
    params: query
  });
} // 查询加油卡信息详细


function getGas(gasId) {
  return (0, _request["default"])({
    url: '/clw/gas/' + gasId,
    method: 'get'
  });
} // 新增加油卡信息


function addGas(data) {
  return (0, _request["default"])({
    url: '/clw/gas',
    method: 'post',
    data: data
  });
} // 修改加油卡信息


function updateGas(data) {
  return (0, _request["default"])({
    url: '/clw/gas',
    method: 'put',
    data: data
  });
} // 删除加油卡信息


function delGas(gasId) {
  return (0, _request["default"])({
    url: '/clw/gas/' + gasId,
    method: 'delete'
  });
} // 车牌接口


function plateNumberList() {
  return (0, _request["default"])({
    url: '/clw/car/plateNumberList',
    method: 'get'
  });
}

function importData(data) {
  return (0, _request["default"])({
    url: '/clw/gas/importData',
    method: 'post',
    data: data
  });
}

function signOutGas(data) {
  return (0, _request["default"])({
    url: "/clw/gas/signOut/".concat(data.gasId),
    method: 'PUT',
    params: {
      logoutReason: data.logoutReason
    }
  });
}