style: 代码格式优化

This commit is contained in:
digua
2026-04-06 21:04:05 +08:00
committed by digua
parent bfc96a723d
commit 3189de3a6e
34 changed files with 218 additions and 261 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ export const apiServerApi = {
return ipcRenderer.invoke('api:getDataSources')
},
addDataSource: (partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>): Promise<DataSource> => {
addDataSource: (
partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>
): Promise<DataSource> => {
return ipcRenderer.invoke('api:addDataSource', partial)
},
+3 -1
View File
@@ -916,7 +916,9 @@ interface ApiServerApi {
regenerateToken: () => Promise<ApiServerConfig>
onStartupError: (callback: (data: { error: string }) => void) => () => void
getDataSources: () => Promise<DataSource[]>
addDataSource: (partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>) => Promise<DataSource>
addDataSource: (
partial: Omit<DataSource, 'id' | 'createdAt' | 'lastPullAt' | 'lastStatus' | 'lastError' | 'lastNewMessages'>
) => Promise<DataSource>
updateDataSource: (id: string, updates: Partial<DataSource>) => Promise<DataSource | null>
deleteDataSource: (id: string) => Promise<boolean>
triggerPull: (id: string) => Promise<{ success: boolean; error?: string }>