频道自动补全:channels 表(DBv2 回填去重) + GET /api/channels + 聊天卡片输入框下拉补全(键盘导航+点击选中)
This commit is contained in:
7 files changed
+147
-2
No files matched your search
@@ -135,6 +135,10 @@ export function getBackendVersion(): Promise<{ version: string; commit: string }
|
||||
return getJSON<{ version: string; commit: string }>('/api/version')
|
||||
}
|
||||
|
||||
export function getChannels(): Promise<{ items: { channel_id: string }[] }> {
|
||||
return getJSON<{ items: { channel_id: string }[] }>('/api/channels')
|
||||
}
|
||||
|
||||
export function getHelpContent(): Promise<HelpContentResponse> {
|
||||
return getJSON<HelpContentResponse>('/api/help')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user