对接接口

This commit is contained in:
wangxiaowei
2025-12-17 23:34:08 +08:00
parent 018a784a8c
commit df863a2f41
19 changed files with 792 additions and 389 deletions

View File

@ -46,4 +46,15 @@ export const PayList: PayMethod[] = [
value: PayValue.WeChatPay,
type: PayCategory.WeChatPay
}
]
]
export function getPayMethodByType(type: PayCategory): PayMethod | undefined {
return PayList.find(item => item.type === type)
}
// 获取支付方式对应的文本值
export const PayWayText: Record<PayValue, string> = {
[PayValue.PlatformBalance]: '平台余额',
[PayValue.StoreBalance]: '门店余额',
[PayValue.WeChatPay]: '微信支付',
}