MCPcopy Create free account
hub / github.com/experdot/pointer / IAccountStore

Interface IAccountStore

src/renderer/src/stores/interfaces/entities.ts:162–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160 * 账户 Store 接口
161 */
162export interface IAccountStore extends IEntityStore<Account, AccountCreateDTO> {
163 /**
164 * 当前账户列表(只读)
165 */
166 readonly accounts: Account[]
167
168 /**
169 * 当前激活的账户 ID
170 */
171 readonly currentAccountId: string | null
172
173 /**
174 * 设置当前账户
175 */
176 setCurrentAccountId(id: string | null): Promise<void>
177
178 /**
179 * 设置初始化状态
180 * 用于标记整个账户系统(包括所有相关 stores)是否完成初始化
181 */
182 setInitialized(initialized: boolean): void
183}

Callers 6

accountStore.tsFile · 0.65
getAccountStoreInterfaceFunction · 0.65
initializeAccountSystemFunction · 0.65
switchAccountFunction · 0.65
getAccountStoreInterfaceFunction · 0.80
initializeAccountSystemFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected