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
+24 -12
View File
@@ -2,8 +2,9 @@ import type { User } from "../types"
export const mockUsers: User[] = [
{
id: "u1",
id: "1001",
username: "xiao_chen2333",
email: "xiao_chen2333@example.com",
nickname: "小陈",
avatar: "/avatars/u1.jpg",
role: "consumer",
@@ -12,8 +13,9 @@ export const mockUsers: User[] = [
createdAt: "2024-07-12T10:23:00Z",
},
{
id: "u2",
id: "1002",
username: "lingling_up",
email: "lingling_up@example.com",
nickname: "玲玲",
avatar: "/avatars/u2.jpg",
role: "consumer",
@@ -22,16 +24,18 @@ export const mockUsers: User[] = [
createdAt: "2024-08-03T15:44:00Z",
},
{
id: "u3",
id: "1003",
username: "zz_noob99",
email: "zz_noob99@example.com",
nickname: "zz",
avatar: "/avatars/u3.jpg",
role: "consumer",
createdAt: "2024-09-20T09:11:00Z",
},
{
id: "u4",
id: "1004",
username: "MoMo_1107",
email: "MoMo_1107@example.com",
nickname: "莫莫",
avatar: "/avatars/u4.jpg",
role: "consumer",
@@ -40,8 +44,9 @@ export const mockUsers: User[] = [
createdAt: "2024-11-05T21:30:00Z",
},
{
id: "u5",
id: "1005",
username: "ace_junjun",
email: "ace_junjun@example.com",
nickname: "俊俊",
avatar: "/avatars/u5.jpg",
role: "player",
@@ -50,8 +55,9 @@ export const mockUsers: User[] = [
createdAt: "2024-06-18T13:00:00Z",
},
{
id: "u6",
id: "1006",
username: "w1nter_gg",
email: "w1nter_gg@example.com",
nickname: "Winter",
avatar: "/avatars/u1.jpg",
role: "player",
@@ -59,8 +65,9 @@ export const mockUsers: User[] = [
createdAt: "2024-07-29T18:55:00Z",
},
{
id: "u7",
id: "1007",
username: "qiqi_carry",
email: "qiqi_carry@example.com",
nickname: "琪琪",
avatar: "/avatars/u2.jpg",
role: "player",
@@ -69,16 +76,18 @@ export const mockUsers: User[] = [
createdAt: "2024-08-14T11:22:00Z",
},
{
id: "u8",
id: "1008",
username: "darkk_solo",
email: "darkk_solo@example.com",
nickname: "暗影",
avatar: "/avatars/u3.jpg",
role: "player",
createdAt: "2024-10-01T08:40:00Z",
},
{
id: "u9",
id: "1009",
username: "feifei_top1",
email: "feifei_top1@example.com",
nickname: "飞飞",
avatar: "/avatars/u4.jpg",
role: "player",
@@ -87,8 +96,9 @@ export const mockUsers: User[] = [
createdAt: "2024-12-09T20:15:00Z",
},
{
id: "u10",
id: "1010",
username: "boss_laowang",
email: "boss_laowang@example.com",
nickname: "老王",
avatar: "/avatars/u5.jpg",
role: "owner",
@@ -97,8 +107,9 @@ export const mockUsers: User[] = [
createdAt: "2024-06-01T09:00:00Z",
},
{
id: "u11",
id: "1011",
username: "yuki_studio",
email: "yuki_studio@example.com",
nickname: "Yuki",
avatar: "/avatars/u1.jpg",
role: "owner",
@@ -107,8 +118,9 @@ export const mockUsers: User[] = [
createdAt: "2024-09-07T14:30:00Z",
},
{
id: "u12",
id: "1012",
username: "hao_ge_gg",
email: "hao_ge_gg@example.com",
nickname: "浩哥",
avatar: "/avatars/u2.jpg",
role: "owner",