import request from '@/router/axios';

export const getPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/map/leaveline/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const remove = (ids) => {
    return request({
        url: '/api/galaxy-business/map/leaveline/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}

export const getDetail = (id) => {
    return request({
        url: '/api/galaxy-business/map/leaveline/detail',
        method: 'get',
        params: {
            id
        }
    })
}

export const getImportPage = (current, size, params) => {
    return request({
        url: '/api/galaxy-business/map/leaveline/import/page',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}

export const getPolyline = (params) => {
    return request({
        url: '/api/galaxy-business/map/leaveline/polyline',
        method: 'get',
        params: {
            ...params,
        }
    })
}