钱包数据

This commit is contained in:
chen wei bo
2025-08-25 18:19:05 +08:00
parent 1c4ee104a1
commit 1224423260
3 changed files with 59 additions and 0 deletions
@@ -9,6 +9,7 @@ import { AccountData } from "./AccountData";
import { MetaData } from "./MetaData";
import { NetTimeData } from "./NetTimeData";
import { ThemeData } from "./ThemeData";
import { WalletData } from "./WalletData";
/**
* 集中定义数据ID,避免写错字符串
@@ -20,6 +21,7 @@ export enum DataId {
Meta = "meta",
NetTime = "netTime",
Theme = "theme",
Wallet = "wallet",
}
/** 构造器类型 */
@@ -51,6 +53,7 @@ export class DataManager {
this.register(DataId.Meta, MetaData);
this.register(DataId.NetTime, NetTimeData);
this.register(DataId.Theme, ThemeData);
this.register(DataId.Wallet, WalletData);
}
/**