refactor(mock): convert mock ids to numeric strings
This commit is contained in:
+6
-2
@@ -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[]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user