import request from '@/utils/request'

export function getLabelPreview(data: any) {
    return request({
        url: '/common/print/preview',
        method: 'post',
        data
    })
}

export function executePrint(data: any) {
    return request({
        url: '/common/print/execute',
        method: 'post',
        data
    })
}

export function getPrinterConfig() {
    return request({
        url: '/common/print/config',
        method: 'get'
    })
}

export function updatePrinterConfig(data: any) {
    return request({
        url: '/common/print/config',
        method: 'post',
        data
    })
}
