调试接口

This commit is contained in:
wangxiaowei
2025-12-22 04:48:05 +08:00
parent 24b7f61c98
commit ca0d16cf05
41 changed files with 750 additions and 345 deletions

View File

@ -301,17 +301,65 @@ export const TeaRoomPackageOrderStatusTextValue: Record<TeaRoomPackageOrderStatu
},
}
// 本地-团购套餐订单状态
export enum GroupComboOrderStatus {
ToUse = 0, // 待使用
Used = 1, // 已使用
Refunded = 2, // 已退款
}
// 本地-团购套餐订单状态
export enum GroupComboOrderStatusText {
All = 'all', // 全部
ToUse = 'toUse', // 待使用
Used = 'used', // 已使用
Refunded = 'refunded', // 已退款
}
export const GroupComboOrderStatusValue: Record<GroupComboOrderStatusText, string | number> = {
[GroupComboOrderStatusText.All]: '',
[GroupComboOrderStatusText.ToUse]: 0,
[GroupComboOrderStatusText.Used]: 1,
[GroupComboOrderStatusText.Refunded]: 2,
}
export const GroupComboOrderStatusTextValue: Record<GroupComboOrderStatus, any> = {
[GroupComboOrderStatus.ToUse]: {
title: '待使用'
},
[GroupComboOrderStatus.Used]: {
title: '交易完成'
},
[GroupComboOrderStatus.Refunded]: {
title: '退款成功'
},
}
// 抖音状态
export enum DouYinOrderStatus {
ToUse = 0, // 待使用
Used = 1, // 已使用
}
// 抖音订单状态文本
export enum DouYinOrderStatusText {
All = 'all', // 全部
ToUse = 'tousee', // 待使用
ToUse = 'toUse', // 待使用
Used = 'used', // 已使用
}
export enum DouYinOrderStatus {
Pending = 0, // 待付款
ToUse = 1, // 待使用
Used = 2, // 已使用
Refunded = 3, // 已退款
}
export const DouYinOrderStatusValue: Record<DouYinOrderStatusText, string | number> = {
[DouYinOrderStatusText.All]: '',
[DouYinOrderStatusText.ToUse]: 0,
[DouYinOrderStatusText.Used]: 1,
}
export const DouYinOrderStatusTextValue: Record<DouYinOrderStatus, any> = {
[DouYinOrderStatus.ToUse]: {
title: '待使用'
},
[DouYinOrderStatus.Used]: {
title: '交易完成'
},
}

View File

@ -52,4 +52,22 @@ export const PayList: PayMethod[] = [
value: PayValue.WeChatPay,
type: PayCategory.WeChatPay
}
]
]
// 支付订单类型
export enum PayOrderType {
TeaSpecialis = 0, // 茶艺师
TeaRoom = 1, // 茶室支付
BuyCombo = 2, // 购买套餐
BuyVip = 3, // 购买会员
Recharge = 4, // 充值
ComboRefund = 5, // 套餐退款
TeaRoomRefund = 6, // 茶室退款
}
// 支付订单来源
export enum PayOrderSource {
MINI = 1, // 小程序
H5 = 2, // H5
APP = 3, // APP
}