| 160 | * 账户 Store 接口 |
| 161 | */ |
| 162 | export 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 | } |
no outgoing calls
no test coverage detected