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

export function getCountCodesList(params) {
    return axios({
        url: "/inv/count/codes/filter",
        method: "get",
        params: params
    });
}

export function deleteCode(data) {
    return axios({
        url: "/inv/count/codes/deleteCode",
        method: "post",
        data: data
    });
}

export function addCode(data) {
    return axios({
        url: "/inv/count/codes/addCode",
        method: "post",
        data: data
    });
}

export function getCodesNum(params) {
    return axios({
        url: "/inv/count/codes/getCountOrderCodesNum",
        method: "get",
        params: params
    });
}
