频道自动补全:channels 表(DBv2 回填去重) + GET /api/channels + 聊天卡片输入框下拉补全(键盘导航+点击选中)

This commit is contained in:
2026-08-07 19:55:32 +08:00
parent 0e622329a7
commit 62b6ff44d1
7 changed files with 147 additions and 2 deletions
+5
View File
@@ -387,3 +387,8 @@ func (s *Store) listAppendRows(opts ListOptions, dest any) *gorm.DB {
}
return q.Find(dest)
}
func (s *Store) ListChannels() ([]ChannelRecord, error) {
var rows []ChannelRecord
return rows, s.db.Order("channel_id ASC").Find(&rows).Error
}