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
+21 -21
View File
@@ -2,52 +2,52 @@ import type { Notification } from "../types"
export const mockNotifications: Notification[] = [
{
id: "n1",
id: "9301",
type: "order",
title: "订单已接单",
content: "琪琪接了你的王者荣耀订单,去聊天约时间吧",
read: false,
link: "/order/ord10",
link: "/order/6010",
createdAt: "2025-02-06T19:08:00Z",
},
{
id: "n2",
id: "9302",
type: "order",
title: "订单已完成",
content: "你和俊俊的LOL订单已完成,快去评价吧",
read: false,
link: "/order/ord1",
link: "/order/6001",
createdAt: "2025-01-05T22:25:00Z",
},
{
id: "n3",
id: "9303",
type: "order",
title: "争议处理中",
content: "你提交的订单争议已进入审核,请耐心等待",
read: true,
link: "/dispute/ord14",
link: "/dispute/6014",
createdAt: "2025-02-15T10:05:00Z",
},
{
id: "n4",
id: "9304",
type: "community",
title: "帖子获得点赞",
content: "你的帖子「找了个LOL陪玩 三把全赢了」又多了87个赞",
read: false,
link: "/post/p1",
link: "/post/9501",
createdAt: "2025-01-08T20:00:00Z",
},
{
id: "n5",
id: "9305",
type: "community",
title: "新评论",
content: "俊俊评论了你的帖子",
read: false,
link: "/post/p2",
link: "/post/9502",
createdAt: "2025-01-06T10:00:00Z",
},
{
id: "n6",
id: "9306",
type: "system",
title: "平台公告",
content: "春节活动上线,2月1日至2月15日全场服务享9折优惠",
@@ -55,25 +55,25 @@ export const mockNotifications: Notification[] = [
createdAt: "2025-01-28T00:00:00Z",
},
{
id: "n7",
id: "9307",
type: "order",
title: "新订单待接单",
content: "莫莫下了一个原神深渊代打的单,快去看看",
read: false,
link: "/order/ord12",
link: "/order/6012",
createdAt: "2025-02-10T20:00:00Z",
},
{
id: "n8",
id: "9308",
type: "community",
title: "帖子被引用",
content: "zz引用了你的帖子「吐槽一下,有些打手真的不行」",
read: true,
link: "/post/p10",
link: "/post/9510",
createdAt: "2025-01-14T10:05:00Z",
},
{
id: "n9",
id: "9309",
type: "system",
title: "认证通过",
content: "你的打手认证已通过,现在可以发布服务了",
@@ -81,25 +81,25 @@ export const mockNotifications: Notification[] = [
createdAt: "2024-12-20T09:00:00Z",
},
{
id: "n10",
id: "9310",
type: "order",
title: "订单已取消",
content: "玲玲取消了CS2车队位的订单",
read: true,
link: "/order/ord15",
link: "/order/6015",
createdAt: "2025-02-16T18:05:00Z",
},
{
id: "n11",
id: "9311",
type: "community",
title: "新评论",
content: "Winter评论了你的帖子「LOL双排接单攻略」",
read: false,
link: "/post/p3",
link: "/post/9503",
createdAt: "2025-01-11T10:45:00Z",
},
{
id: "n12",
id: "9312",
type: "system",
title: "系统维护通知",
content: "2月20日凌晨2:00-4:00进行系统维护,届时无法下单",