spark-server/internal/module/inbox/entity/preview.go
2026-09-18 14:50:41 +08:00

22 lines
475 B
Go

package entity
type Preview struct {
ConversationID int64
MsgID int64
Snippet []byte
}
// DialogHit is a ZSET member updated after dialog_score.
type DialogHit struct {
ConversationID int64
Score int64
}
// Dialog is one conversation row for SYNC_INBOX.
type Dialog struct {
ConversationID int64 `json:"conversation_id"`
Score int64 `json:"score"`
Unread int64 `json:"unread"`
Preview []byte `json:"preview"`
}