新增退货流程

This commit is contained in:
唐明明
2023-08-28 17:51:33 +08:00
parent d9f7a0e1ef
commit 308aeeafb5
24 changed files with 380 additions and 21 deletions

50
api/interfaces/refund.js Normal file
View File

@@ -0,0 +1,50 @@
/*
* 手太欠
* 愿这世界都如故事里一样 美好而动人~
*/
import { req } from "../request"
// 售后服务
const list = data => req({
url : "mall/refunds",
data
})
// 用户退货
const deliver = (refund, data) => req({
url: "mall/refunds/" + refund + "/deliver",
method: "POST",
data
})
// 退货详情
const info = refund => req({
url: "mall/refunds/" + refund
})
// 退货日志
const log = refund => req({
url: "mall/refunds/" + refund + "/logs"
})
// 申请售后前置
const refundPreposition = id => req({
url: "mall/orders/" + id + "/refund"
})
// 提交退货
const submitRefund = (id, data) => req({
url : "mall/orders/" + id + "/refund",
method : "POST",
data
})
export default ({
list,
deliver,
info,
log,
refundPreposition,
submitRefund
})