频道自动补全:channels 表(DBv2 回填去重) + GET /api/channels + 聊天卡片输入框下拉补全(键盘导航+点击选中)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user