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

Interface AccountActions

src/renderer/src/stores/accountStore.ts:18–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18interface AccountActions {
19 // IEntityStore 接口方法
20 init: () => Promise<void>
21 getById: (id: string) => Account | undefined
22 getAll: () => Account[]
23 create: (data: AccountCreateDTO) => Promise<Account>
24 createMany: (data: AccountCreateDTO[]) => Promise<Account[]>
25 update: (id: string, changes: Partial<Account>) => Promise<void>
26 updateMany: (updates: Array<{ id: string; changes: Partial<Account> }>) => Promise<void>
27 delete: (id: string) => Promise<void>
28 deleteMany: (ids: string[]) => Promise<void>
29 reset: () => Promise<void>
30 // 扩展方法
31 setCurrentAccountId: (id: string | null) => Promise<void>
32 setInitialized: (initialized: boolean) => void
33}
34
35type AccountStore = AccountState & AccountActions
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected