import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { CreateOrderDTO } from './types';

/**
 * 创建订单
 * @param data 参数
 */
export const createOrder = (data: CreateOrderDTO): AxiosPromise<any> => {
    return request({
        url: '/order/order/create',
        method: 'post',
        data: data
    });
};
