import axios from 'axios';
const baseUri = "/sound/road/noiseLeqLevel";
const listAllUrl = baseUri + "";

// 添加
const saveLeqLevel = function (data) {
    return axios.post("/sound/road/noiseLeqLevel",data)
}

// 删除
const removeLeqLevel = function (id) {
    return axios.delete(`/sound/road/noiseLeqLevel/${id}`,)
}
// 批量删除
const removeBatchLeqLevel = function (ids) {
    return axios.delete("/sound/road/noiseLeqLevel/batch",{data:ids})
}

// 修改
const updateLeqLevel = function (data) {
    return axios.put("/sound/road/noiseLeqLevel",data)
}

const getColumnOptions = function(column){
    return axios.get("/sound/road/noiseLeqLevel/options",{params:{column}})
}
const copyBatchLeqLevel = function (data){
    return axios.post("/sound/road/noiseLeqLevel/copyBatch",data)
}



export {
    listAllUrl,
    saveLeqLevel,
    updateLeqLevel,
    removeBatchLeqLevel,
    removeLeqLevel,
    getColumnOptions,
    copyBatchLeqLevel

}
