DataRepairApi.js 1.02 KB
import axiosInstance from "@/Request/PublicAxiosInstance"
import {filterEmptyValueInObject} from "@/PublicUtil/PublicUtil"

class DataRepairApi {
    getGateList(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/gates`,
                params: data
            }
        )
    }

    getChannelList(data) {
        return axiosInstance.request(
            {
                method: 'GET',
                url: `/channels`,
                params: data
            }
        )
    }

    preview(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/preview/viewCountData`,
                data: data
            }
        )
    }

    repair(data) {
        return axiosInstance.request(
            {
                method: 'POST',
                url: `/preview/updateCountData`,
                data: data
            }
        )
    }
}

const dataRepairApi = new DataRepairApi()

export default dataRepairApi