Files
xuan_wechat/api/interfaces/order.js
2023-08-15 17:18:15 +08:00

51 lines
909 B
JavaScript

/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import { req } from "../request"
// 订单首页
const list = data => req({
url : "mall/orders",
data: data
})
// 订单详情
const goodsDet = (order) => req({
url : "mall/orders/" + order
})
// 订单取消
const goodsCancel = (order) => req({
url : "mall/orders/" + order + "/cancel",
method: "PUT"
})
// 订单删除
const goodsDel = (order) => req({
url : "mall/orders/" + order,
method: "DELETE"
})
// 订单签收
const goodsSign = (order) => req({
url : "mall/orders/" + order + "/sign",
method: "PUT"
})
// 快递100-免费
const kuaiDi = (order, data) => req({
url : "mall/orders/" + order + "/logistic",
data: data
})
export default ({
list,
goodsDet,
goodsCancel,
goodsDel,
goodsSign,
kuaiDi
})