feat: 重构对话功能

This commit is contained in:
DEV_DSW
2026-04-14 17:02:20 +08:00
parent b3f07c4cfe
commit c61e41049f
53 changed files with 5200 additions and 1982 deletions

View File

@@ -0,0 +1,13 @@
import { providerApiService } from '@electron/service/provider-api-service';
import type { GatewayRpcReturns } from '../types';
export function handleProviderList(): GatewayRpcReturns['provider.list'] {
return {
accounts: providerApiService.getAccounts(),
defaultAccountId: providerApiService.getDefault().accountId,
};
}
export function handleProviderGetDefault(): GatewayRpcReturns['provider.getDefault'] {
return providerApiService.getDefault();
}