refactor(mock): convert mock ids to numeric strings
This commit is contained in:
+34
-34
@@ -2,133 +2,133 @@ import type { WalletTransaction } from "../types"
|
||||
|
||||
export const mockTransactions: WalletTransaction[] = [
|
||||
{
|
||||
id: "t1",
|
||||
id: "9401",
|
||||
type: "topup",
|
||||
amount: 500,
|
||||
description: "充值",
|
||||
createdAt: "2025-01-03T10:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t2",
|
||||
id: "9402",
|
||||
type: "payment",
|
||||
amount: -75,
|
||||
description: "支付订单 ord1",
|
||||
description: "支付订单 6001",
|
||||
createdAt: "2025-01-05T19:30:00Z",
|
||||
},
|
||||
{
|
||||
id: "t3",
|
||||
id: "9403",
|
||||
type: "payment",
|
||||
amount: -54,
|
||||
description: "支付订单 ord2",
|
||||
description: "支付订单 6002",
|
||||
createdAt: "2025-01-08T15:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t4",
|
||||
id: "9404",
|
||||
type: "topup",
|
||||
amount: 300,
|
||||
description: "充值",
|
||||
createdAt: "2025-01-15T09:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t5",
|
||||
id: "9405",
|
||||
type: "payment",
|
||||
amount: -60,
|
||||
description: "支付订单 ord5",
|
||||
description: "支付订单 6005",
|
||||
createdAt: "2025-01-17T20:30:00Z",
|
||||
},
|
||||
{
|
||||
id: "t6",
|
||||
id: "9406",
|
||||
type: "payment",
|
||||
amount: -90,
|
||||
description: "支付订单 ord3",
|
||||
description: "支付订单 6003",
|
||||
createdAt: "2025-01-11T22:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t7",
|
||||
id: "9407",
|
||||
type: "payment",
|
||||
amount: -44,
|
||||
description: "支付订单 ord4",
|
||||
description: "支付订单 6004",
|
||||
createdAt: "2025-01-14T20:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t8",
|
||||
id: "9408",
|
||||
type: "refund",
|
||||
amount: 44,
|
||||
description: "订单 ord15 退款",
|
||||
description: "订单 6015 退款",
|
||||
createdAt: "2025-02-16T18:10:00Z",
|
||||
},
|
||||
{
|
||||
id: "t9",
|
||||
id: "9409",
|
||||
type: "topup",
|
||||
amount: 200,
|
||||
description: "充值",
|
||||
createdAt: "2025-02-01T09:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t10",
|
||||
id: "9410",
|
||||
type: "payment",
|
||||
amount: -40,
|
||||
description: "支付订单 ord8",
|
||||
description: "支付订单 6008",
|
||||
createdAt: "2025-02-01T20:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t11",
|
||||
id: "9411",
|
||||
type: "payment",
|
||||
amount: -120,
|
||||
description: "支付订单 ord9",
|
||||
description: "支付订单 6009",
|
||||
createdAt: "2025-02-03T22:30:00Z",
|
||||
},
|
||||
{
|
||||
id: "t12",
|
||||
id: "9412",
|
||||
type: "payment",
|
||||
amount: -84,
|
||||
description: "支付订单 ord10",
|
||||
description: "支付订单 6010",
|
||||
createdAt: "2025-02-06T19:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t13",
|
||||
id: "9413",
|
||||
type: "payment",
|
||||
amount: -50,
|
||||
description: "支付订单 ord11",
|
||||
description: "支付订单 6011",
|
||||
createdAt: "2025-02-08T21:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t14",
|
||||
id: "9414",
|
||||
type: "payment",
|
||||
amount: -30,
|
||||
description: "支付订单 ord12",
|
||||
description: "支付订单 6012",
|
||||
createdAt: "2025-02-10T20:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t15",
|
||||
id: "9415",
|
||||
type: "payment",
|
||||
amount: -18,
|
||||
description: "支付订单 ord13",
|
||||
description: "支付订单 6013",
|
||||
createdAt: "2025-02-12T14:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t16",
|
||||
id: "9416",
|
||||
type: "payment",
|
||||
amount: -60,
|
||||
description: "支付订单 ord14",
|
||||
description: "支付订单 6014",
|
||||
createdAt: "2025-02-14T21:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t17",
|
||||
id: "9417",
|
||||
type: "income",
|
||||
amount: 63.75,
|
||||
description: "订单 ord1 收入(扣除15%抽成)",
|
||||
description: "订单 6001 收入(扣除15%抽成)",
|
||||
createdAt: "2025-01-05T22:30:00Z",
|
||||
},
|
||||
{
|
||||
id: "t18",
|
||||
id: "9418",
|
||||
type: "income",
|
||||
amount: 47.52,
|
||||
description: "订单 ord2 收入(扣除12%抽成)",
|
||||
description: "订单 6002 收入(扣除12%抽成)",
|
||||
createdAt: "2025-01-08T18:00:00Z",
|
||||
},
|
||||
{
|
||||
id: "t19",
|
||||
id: "9419",
|
||||
type: "withdrawal",
|
||||
amount: -100,
|
||||
description: "提现到银行卡",
|
||||
|
||||
Reference in New Issue
Block a user