import axios from "@/utils/request";

export function deviceUpkeepPlanPage(query) {
    return axios(
        {
            url: "/udi/device/plan/page",
            method: "POST",
            data: query
        }
    )
}

export function deviceUpkeepPlanSave(query) {
    return axios(
        {
            url: "/udi/device/plan/save",
            method: "POST",
            data: query
        }
    )
}

export function devicePlanInfo(planId) {
    return axios(
        {
            url: `/udi/device/plan/info/${planId}`,
            method: "GET"
        }
    )
}

export function deviceUpkeepPlanDel(planId) {
    return axios(
        {
            url: `/udi/device/plan/del/${planId}`,
            method: "DELETE"
        }
    )
}

