Files
juwan-frontend/lib/mock/transactions.ts
T

140 lines
2.7 KiB
TypeScript

import type { WalletTransaction } from "../types"
export const mockTransactions: WalletTransaction[] = [
{
id: "t1",
type: "topup",
amount: 500,
description: "充值",
createdAt: "2025-01-03T10:00:00Z",
},
{
id: "t2",
type: "payment",
amount: -75,
description: "支付订单 ord1",
createdAt: "2025-01-05T19:30:00Z",
},
{
id: "t3",
type: "payment",
amount: -54,
description: "支付订单 ord2",
createdAt: "2025-01-08T15:00:00Z",
},
{
id: "t4",
type: "topup",
amount: 300,
description: "充值",
createdAt: "2025-01-15T09:00:00Z",
},
{
id: "t5",
type: "payment",
amount: -60,
description: "支付订单 ord5",
createdAt: "2025-01-17T20:30:00Z",
},
{
id: "t6",
type: "payment",
amount: -90,
description: "支付订单 ord3",
createdAt: "2025-01-11T22:00:00Z",
},
{
id: "t7",
type: "payment",
amount: -44,
description: "支付订单 ord4",
createdAt: "2025-01-14T20:00:00Z",
},
{
id: "t8",
type: "refund",
amount: 44,
description: "订单 ord15 退款",
createdAt: "2025-02-16T18:10:00Z",
},
{
id: "t9",
type: "topup",
amount: 200,
description: "充值",
createdAt: "2025-02-01T09:00:00Z",
},
{
id: "t10",
type: "payment",
amount: -40,
description: "支付订单 ord8",
createdAt: "2025-02-01T20:00:00Z",
},
{
id: "t11",
type: "payment",
amount: -120,
description: "支付订单 ord9",
createdAt: "2025-02-03T22:30:00Z",
},
{
id: "t12",
type: "payment",
amount: -84,
description: "支付订单 ord10",
createdAt: "2025-02-06T19:00:00Z",
},
{
id: "t13",
type: "payment",
amount: -50,
description: "支付订单 ord11",
createdAt: "2025-02-08T21:00:00Z",
},
{
id: "t14",
type: "payment",
amount: -30,
description: "支付订单 ord12",
createdAt: "2025-02-10T20:00:00Z",
},
{
id: "t15",
type: "payment",
amount: -18,
description: "支付订单 ord13",
createdAt: "2025-02-12T14:00:00Z",
},
{
id: "t16",
type: "payment",
amount: -60,
description: "支付订单 ord14",
createdAt: "2025-02-14T21:00:00Z",
},
{
id: "t17",
type: "income",
amount: 63.75,
description: "订单 ord1 收入(扣除15%抽成)",
createdAt: "2025-01-05T22:30:00Z",
},
{
id: "t18",
type: "income",
amount: 47.52,
description: "订单 ord2 收入(扣除12%抽成)",
createdAt: "2025-01-08T18:00:00Z",
},
{
id: "t19",
type: "withdrawal",
amount: -100,
description: "提现到银行卡",
createdAt: "2025-01-20T14:00:00Z",
},
]
export const walletBalance = 275