2026-08-31 14:49:28 +08:00
|
|
|
export type HttpRechargeItem = {
|
2026-09-15 17:39:51 +08:00
|
|
|
id: string
|
|
|
|
|
user_id: string
|
|
|
|
|
ju_money: string | number
|
|
|
|
|
pay_money: string | number
|
2026-08-31 14:49:28 +08:00
|
|
|
pay_type: string
|
2026-09-15 17:39:51 +08:00
|
|
|
pay_status: string | number
|
|
|
|
|
channel?: string | null
|
|
|
|
|
order_no: string
|
|
|
|
|
ali_wx_no: string
|
|
|
|
|
create_time: string
|
|
|
|
|
update_time: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const HTTP_RECHARGE_PAY_STATUS_LABELS: Record<number, string> = {
|
|
|
|
|
0: "未支付",
|
|
|
|
|
1: "支付成功",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function formatPayStatus(value: string | number): string {
|
|
|
|
|
return HTTP_RECHARGE_PAY_STATUS_LABELS[Number(value)] ?? String(value)
|
2026-08-31 14:49:28 +08:00
|
|
|
}
|