Files
juip-web/src/lib/models/httpRecharge.ts

23 lines
538 B
TypeScript
Raw Normal View History

2026-08-31 14:49:28 +08:00
export type HttpRechargeItem = {
id: string
user_id: string
ju_money: string | number
pay_money: string | number
2026-08-31 14:49:28 +08:00
pay_type: string
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
}