import axios from "../../utils/axios";


export function filterProducts(query) {
    return axios({
        url: "/spms/prein/inv/products/filter",
        method: "get",
        params: query
    });
}

export function filterDetailProducts(query) {
    return axios({
        url: "/spms/prein/inv/products/filterDetail",
        method: "get",
        params: query
    });
}

export function deleteProducts(query) {
    return axios(
        {
            url: "/spms/prein/inv/products/delete",
            method: "post",
            data: query
        }
    )
}
export function statDetailProducts(query) {
    return axios({
        url: "/spms/prein/inv/products/stat",
        method: "get",
        params: query
    });
}

export function clearAllProducts(data) {
    return axios({
        url: "/spms/prein/inv/products/clearAll",
        method: "post",
        data: data
    });
}

