import service from '@/utils/request'

// @tag Order
// @summary 获取订单列表
// @param {object} params
// @return {object} data
// @router get /order/list
export const list = (params) => {
    return service({
      url: '/order/list',
      method: 'get',
      params
    })
}

// @tag Order
// @summary 获取订单详情
// @param {object} params
// @return {object} data
// @router get /order/:id
export const detail = (id) => {
    return service({
      url: '/order/' + id,
      method: 'get',
    })
}
