import request from '@/utils/request'

/** 确认订单预览（进入/改量/换地址） */
export function previewCheckout(data) {
  return request({
    url: '/api/checkout/preview',
    method: 'POST',
    data,
    header: { repeatSubmit: false }
  })
}

/** 提交订单 */
export function submitCheckout(data) {
  return request({
    url: '/api/checkout/submit',
    method: 'POST',
    data,
    header: { repeatSubmit: false }
  })
}
