import request from '@/utils/request'

export function pointsProducts() {
    return request.get({ url: '/points_order/products' }, { isAuth: true })
}

export function pointsPreOrder(data: any) {
    return request.post({ url: '/points_order/preOrder', data }, { isAuth: true })
}

export function pointsCreateOrder(data: any) {
    return request.post({ url: '/points_order/createOrder', data }, { isAuth: true })
}

export function pointsOrderDetail(data: any) {
    return request.get({ url: '/points_order/detail', data }, { isAuth: true })
}
