import request from '@/router/axios';

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

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

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

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

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