refactor: rewrite and expand mock data into modular files

This commit is contained in:
zetaloop
2026-02-21 00:24:03 +08:00
parent 44669d5606
commit 7ed7bad975
47 changed files with 1891 additions and 767 deletions
+235
View File
@@ -0,0 +1,235 @@
import type { Order } from "../types"
import { mockServices } from "./services"
export const mockOrders: Order[] = [
{
id: "ord1",
consumerId: "u2",
consumerName: "玲玲",
playerId: "u5",
playerName: "俊俊",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[0],
status: "completed",
totalPrice: 75,
note: "麻烦打3局,我今天状态不好一直输",
createdAt: "2025-01-05T19:30:00Z",
acceptedAt: "2025-01-05T19:45:00Z",
closedAt: "2025-01-05T22:10:00Z",
completedAt: "2025-01-05T22:25:00Z",
},
{
id: "ord2",
consumerId: "u1",
consumerName: "小陈",
playerId: "u6",
playerName: "Winter",
shopId: "shop2",
shopName: "Yuki 小屋",
service: mockServices[3],
status: "completed",
totalPrice: 54,
note: "3星,我用鲁班",
createdAt: "2025-01-08T15:00:00Z",
acceptedAt: "2025-01-08T15:12:00Z",
closedAt: "2025-01-08T17:40:00Z",
completedAt: "2025-01-08T17:55:00Z",
},
{
id: "ord3",
consumerId: "u3",
consumerName: "zz",
playerId: "u8",
playerName: "暗影",
service: mockServices[9],
status: "completed",
totalPrice: 90,
createdAt: "2025-01-11T22:00:00Z",
acceptedAt: "2025-01-11T22:05:00Z",
closedAt: "2025-01-12T00:30:00Z",
completedAt: "2025-01-12T00:45:00Z",
},
{
id: "ord4",
consumerId: "u4",
consumerName: "莫莫",
playerId: "u7",
playerName: "琪琪",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[7],
status: "completed",
totalPrice: 44,
note: "2局就行,主要想练练枪法",
createdAt: "2025-01-14T20:00:00Z",
acceptedAt: "2025-01-14T20:08:00Z",
closedAt: "2025-01-14T21:50:00Z",
completedAt: "2025-01-14T22:05:00Z",
},
{
id: "ord5",
consumerId: "u1",
consumerName: "小陈",
playerId: "u9",
playerName: "飞飞",
shopId: "shop3",
shopName: "浩哥开黑",
service: mockServices[12],
status: "completed",
totalPrice: 60,
note: "3局,打辅助配合我就行",
createdAt: "2025-01-17T20:30:00Z",
acceptedAt: "2025-01-17T20:35:00Z",
closedAt: "2025-01-17T23:00:00Z",
completedAt: "2025-01-17T23:15:00Z",
},
{
id: "ord6",
consumerId: "u3",
consumerName: "zz",
playerId: "u6",
playerName: "Winter",
shopId: "shop2",
shopName: "Yuki 小屋",
service: mockServices[5],
status: "completed",
totalPrice: 40,
note: "2局,我是新手别嫌弃",
createdAt: "2025-01-20T21:00:00Z",
acceptedAt: "2025-01-20T21:10:00Z",
closedAt: "2025-01-20T23:20:00Z",
completedAt: "2025-01-20T23:35:00Z",
},
{
id: "ord7",
consumerId: "u2",
consumerName: "玲玲",
playerId: "u9",
playerName: "飞飞",
shopId: "shop3",
shopName: "浩哥开黑",
service: mockServices[13],
status: "completed",
totalPrice: 30,
createdAt: "2025-01-23T10:00:00Z",
acceptedAt: "2025-01-23T10:15:00Z",
closedAt: "2025-01-23T11:00:00Z",
completedAt: "2025-01-23T11:20:00Z",
},
{
id: "ord8",
consumerId: "u4",
consumerName: "莫莫",
playerId: "u5",
playerName: "俊俊",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[1],
status: "pending_review",
totalPrice: 40,
note: "2局,随便打打",
createdAt: "2025-02-01T20:00:00Z",
acceptedAt: "2025-02-01T20:10:00Z",
closedAt: "2025-02-01T22:00:00Z",
},
{
id: "ord9",
consumerId: "u1",
consumerName: "小陈",
playerId: "u8",
playerName: "暗影",
service: mockServices[11],
status: "pending_review",
totalPrice: 120,
createdAt: "2025-02-03T22:30:00Z",
acceptedAt: "2025-02-03T22:35:00Z",
closedAt: "2025-02-04T01:00:00Z",
},
{
id: "ord10",
consumerId: "u2",
consumerName: "玲玲",
playerId: "u7",
playerName: "琪琪",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[6],
status: "in_progress",
totalPrice: 84,
note: "3星,我段位铂金2",
createdAt: "2025-02-06T19:00:00Z",
acceptedAt: "2025-02-06T19:08:00Z",
},
{
id: "ord11",
consumerId: "u3",
consumerName: "zz",
playerId: "u9",
playerName: "飞飞",
shopId: "shop3",
shopName: "浩哥开黑",
service: mockServices[14],
status: "in_progress",
totalPrice: 50,
createdAt: "2025-02-08T21:00:00Z",
acceptedAt: "2025-02-08T21:05:00Z",
},
{
id: "ord12",
consumerId: "u4",
consumerName: "莫莫",
playerId: "u6",
playerName: "Winter",
shopId: "shop2",
shopName: "Yuki 小屋",
service: mockServices[4],
status: "pending_accept",
totalPrice: 30,
note: "2局轻松局,不用太认真",
createdAt: "2025-02-10T20:00:00Z",
},
{
id: "ord13",
consumerId: "u1",
consumerName: "小陈",
playerId: "u7",
playerName: "琪琪",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[8],
status: "pending_close",
totalPrice: 18,
createdAt: "2025-02-12T14:00:00Z",
acceptedAt: "2025-02-12T14:10:00Z",
closedAt: "2025-02-12T15:30:00Z",
},
{
id: "ord14",
consumerId: "u3",
consumerName: "zz",
playerId: "u8",
playerName: "暗影",
service: mockServices[10],
status: "disputed",
totalPrice: 60,
note: "2局DOTA,我是herald别介意",
createdAt: "2025-02-14T21:00:00Z",
acceptedAt: "2025-02-14T21:08:00Z",
closedAt: "2025-02-14T23:30:00Z",
},
{
id: "ord15",
consumerId: "u2",
consumerName: "玲玲",
playerId: "u5",
playerName: "俊俊",
shopId: "shop1",
shopName: "老王游戏工作室",
service: mockServices[2],
status: "cancelled",
totalPrice: 44,
note: "临时有事取消了,下次再约",
createdAt: "2025-02-16T18:00:00Z",
},
]