import request from '@/utils/request'

// 执行角度度分秒转换
export function calculate(data) {
    return request({
        url: `/calculate/degreeToDMS/calculate`,
        method: 'post',
        data: data
    })
}

// 导入 Excel
export function importExcel(data) {
    return request({
        url: `/calculate/degreeToDMS/import`,
        method: 'post',
        data: data,
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

// 导出角度度分秒转换结果
export function exportExcel(data) {
    return request({
        url: `/calculate/degreeToDMS/export`,
        method: 'post',
        data: data,
        responseType: 'blob'
    })
}