refactor(mock): convert mock ids to numeric strings

This commit is contained in:
zetaloop
2026-02-28 07:26:15 +08:00
parent f5df00df4e
commit 527d08fb81
18 changed files with 464 additions and 447 deletions
+15 -15
View File
@@ -3,7 +3,7 @@ import { mockUsers } from "./users"
export const mockPosts: Post[] = [
{
id: "p1",
id: "9501",
author: mockUsers[10],
authorRole: "owner",
title: "Yuki小屋新年活动!1月全场8折,限时7天",
@@ -18,7 +18,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-02T10:00:00Z",
},
{
id: "p2",
id: "9502",
author: mockUsers[1],
authorRole: "consumer",
title: "跟俊俊打了三局LOL,赢了两把!",
@@ -26,7 +26,7 @@ export const mockPosts: Post[] = [
"之前一直输一直输,今天下单试了一下,俊俊打野,我打中单,配合还挺顺的。第一局有点磨合,后面两局就好多了。话不多但是打得认真,该抓的时候就来,不会乱。下次还找他。",
images: ["/posts/p2-1.jpg", "/posts/p2-2.jpg"],
tags: ["英雄联盟", "LOL", "秀单"],
linkedOrderId: "ord1",
linkedOrderId: "6001",
likeCount: 43,
commentCount: 8,
liked: true,
@@ -34,7 +34,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-06T09:15:00Z",
},
{
id: "p3",
id: "9503",
author: mockUsers[4],
authorRole: "player",
title: "LOL双排接单攻略——怎么配合你的打手赢更多",
@@ -49,7 +49,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-10T20:30:00Z",
},
{
id: "p4",
id: "9504",
author: mockUsers[2],
authorRole: "consumer",
title: "吐槽一下,有些打手真的不行",
@@ -64,7 +64,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-13T22:45:00Z",
},
{
id: "p5",
id: "9505",
author: mockUsers[0],
authorRole: "consumer",
title: "和Winter打王者,体验还不错",
@@ -72,7 +72,7 @@ export const mockPosts: Post[] = [
"我用鲁班,他配合我,打了三局赢了两局。主要是他不催,我手速慢他也没说什么,就正常打。上了两颗星,今天满足了。",
images: ["/posts/p5-1.jpg"],
tags: ["王者荣耀", "秀单", "Yuki小屋"],
linkedOrderId: "ord2",
linkedOrderId: "6002",
likeCount: 31,
commentCount: 5,
liked: false,
@@ -80,7 +80,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-09T18:20:00Z",
},
{
id: "p6",
id: "9506",
author: mockUsers[6],
authorRole: "player",
title: "和平精英吃鸡小技巧,稳健打法分享",
@@ -95,7 +95,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-18T15:00:00Z",
},
{
id: "p7",
id: "9507",
author: mockUsers[3],
authorRole: "consumer",
title: "琪琪带我打和平,枪法真的稳",
@@ -103,7 +103,7 @@ export const mockPosts: Post[] = [
"之前一直觉得女生打手可能没那么厉害,结果被打脸了。琪琪枪法比我认识的大多数男生都稳,决赛圈那把压枪压得我看呆了。两局都进了前三,第二局吃鸡。下次还找她。",
images: ["/posts/p7-1.jpg"],
tags: ["和平精英", "秀单", "老王游戏工作室"],
linkedOrderId: "ord4",
linkedOrderId: "6004",
likeCount: 67,
commentCount: 9,
liked: true,
@@ -111,7 +111,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-15T21:30:00Z",
},
{
id: "p8",
id: "9508",
author: mockUsers[9],
authorRole: "owner",
title: "老王工作室招新打手,有意向的来聊",
@@ -126,7 +126,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-22T11:00:00Z",
},
{
id: "p9",
id: "9509",
author: mockUsers[1],
authorRole: "consumer",
title: "飞飞LOL辅助真的很懂配合",
@@ -134,7 +134,7 @@ export const mockPosts: Post[] = [
"我打ADC,飞飞打辅助,三局全赢。他会看我的走位然后跟着保护,不会乱抢资源,视野也插得很好。感觉比我之前随机到的辅助强多了。而且说好几点上就几点上,没让我等。",
images: ["/posts/p9-1.jpg", "/posts/p9-2.jpg"],
tags: ["英雄联盟", "LOL", "秀单", "浩哥开黑"],
linkedOrderId: "ord5",
linkedOrderId: "6005",
likeCount: 49,
commentCount: 6,
liked: false,
@@ -142,7 +142,7 @@ export const mockPosts: Post[] = [
createdAt: "2025-01-18T23:45:00Z",
},
{
id: "p10",
id: "9510",
author: mockUsers[2],
authorRole: "consumer",
title: "回复p4,找打手真的要看评价",
@@ -150,7 +150,7 @@ export const mockPosts: Post[] = [
"看到之前那个吐槽帖,深有同感。我也踩过坑,后来学乖了,下单前一定先看评价,特别是最近一个月的。评价少的或者有差评的直接跳过,不值得赌。\n\n现在找到几个靠谱的了,暗影的无畏契约打得很好,推荐。",
images: [],
tags: ["陪玩体验", "避坑"],
quotedPostId: "p4",
quotedPostId: "9504",
likeCount: 38,
commentCount: 4,
liked: false,