Files
juip-web/src/lib/models/httpRecharge.ts
2026-09-15 17:39:51 +08:00

23 lines
538 B
TypeScript

export type HttpRechargeItem = {
id: string
user_id: string
ju_money: string | number
pay_money: string | number
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)
}