import request from '@/router/axios';

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

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

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

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

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