import request from '@/utils/request'

export interface OrderCardVO {
  orderCardId: number
  status: string
  expireTime: string
  countdown: number
  orderName: string
  orderPrice: number
}

export const getOrderCardStatus = (orderCardId: number) => {
  return request({
    url: `/main/order-card/${orderCardId}`,
    method: 'get'
  })
}

export const payOrderCard = (orderCardId: number) => {
  return request({
    url: `/main/order-card/${orderCardId}/pay`,
    method: 'post'
  })
}
