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
+6 -2
View File
@@ -1,9 +1,13 @@
export type UserRole = "consumer" | "player" | "owner"
// All `id` fields come from backend snowflake int64.
// Frontend stores them as strings to avoid JS number precision issues.
export type UserRole = "consumer" | "player" | "owner" | "admin"
export type VerificationStatus = "pending" | "approved" | "rejected"
export interface User {
id: string
username: string
email?: string
nickname: string
avatar: string
role: UserRole
@@ -29,7 +33,7 @@ export interface PlayerService {
title: string
description: string
price: number
unit: "局" | "星" | "次"
unit: string
rankRange?: string
availability: string[]
}