spark-server/internal/module/conversation/entity/conversation.go
zhr ae9a71034d feat: implement Spark IM V3 modular monolith
Add HTTP /v1 MVC, TCP send path, groups with server-side member-avatar collage, object-storage upload, and friends/favorites around the architecture-v3 layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-17 19:52:11 +08:00

16 lines
299 B
Go

// Package entity holds conversation domain types.
package entity
const (
TypeP2P = 1
TypeGroup = 2
)
// Conversation is a P2P or group chat. LastMsgID is the Snowflake cursor, not ConversationSeq.
type Conversation struct {
ID int64
Type int
LastMsgID int64
LastMsgAt int64
}