import axios from "axios";

// const baseUri = "/api/waterFunctionArea/surfaceWaterEvaluationStandard";
// 分页
const pageSurfaceWaterStandardUrl = '/waterFunctionArea/surfaceWaterEvaluationStandard/page';
const pageSurfaceWaterStandardAllUrl = '/waterFunctionArea/surfaceWaterEvaluationStandard';
// 全部
const listAllSurfaceWaterStandard = function (){
    return axios .get("/waterFunctionArea/surfaceWaterEvaluationStandard")
}
// 添加
const saveSurfaceWaterStandard = function (data) {
    return axios.post("/waterFunctionArea/surfaceWaterEvaluationStandard",data)
}

// 删除
const removeSurfaceWaterStandard = function (id) {
    return axios.delete(`/waterFunctionArea/surfaceWaterEvaluationStandard/${id}`,)
}
// 批量删除
const removeBatchSurfaceWaterStandard = function (ids) {
    return axios.delete("/waterFunctionArea/surfaceWaterEvaluationStandard/batch",{data:ids})
}

// 修改
const updateSurfaceWaterStandard = function (data) {
    return axios.put("/waterFunctionArea/surfaceWaterEvaluationStandard",data)
}
export {
    pageSurfaceWaterStandardUrl,
    updateSurfaceWaterStandard,
    removeBatchSurfaceWaterStandard,
    removeSurfaceWaterStandard,
    listAllSurfaceWaterStandard,
    saveSurfaceWaterStandard,
    pageSurfaceWaterStandardAllUrl
}