/** * Web -zdx * moduleName: 线下业务订单类型 */ import { request } from '../index' // 获取业务类型 const customTypes = () =>{ return request({ url: "custom_type/index", }) } // 提交办理线下订单 const customTypeStore = (customType,data) => { return request({ url : `custom_type/${customType}/store`, method : "POST", data }) } // 取消线下订单 const customTypeCancel = (orderId, data) => { return request({ url : `custom_type/order/${orderId}/cancel`, method : 'DELETE', data }) } // 线下订单列表 const customTypelists = data => { return request({ url : 'custom_type/order/lists', data }) } export { customTypes, customTypeStore, customTypeCancel, customTypelists }