mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-08-12 20:03:40 +08:00
fix: unable to get owner in chat and search (#17244)
### Summary As title
This commit is contained in:
@@ -55,6 +55,13 @@ func (Chat) TableName() string {
|
||||
return "dialog"
|
||||
}
|
||||
|
||||
// ChatListItem represents a chat list row with owner profile fields.
|
||||
type ChatListItem struct {
|
||||
Chat
|
||||
Nickname *string `gorm:"column:nickname" json:"nickname,omitempty"`
|
||||
TenantAvatar *string `gorm:"column:tenant_avatar" json:"tenant_avatar,omitempty"`
|
||||
}
|
||||
|
||||
// Conversation conversation model
|
||||
type ChatSession struct {
|
||||
ID string `gorm:"column:id;primaryKey;size:32" json:"id"`
|
||||
|
||||
@@ -33,3 +33,10 @@ type Search struct {
|
||||
func (Search) TableName() string {
|
||||
return "search"
|
||||
}
|
||||
|
||||
// SearchListItem represents a search list row with owner profile fields.
|
||||
type SearchListItem struct {
|
||||
Search
|
||||
Nickname *string `gorm:"column:nickname" json:"nickname,omitempty"`
|
||||
TenantAvatar *string `gorm:"column:tenant_avatar" json:"tenant_avatar,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user