spark-server/internal/module/conversation/logic/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

18 lines
609 B
Go

// Package logic is the conversation use-case layer.
package logic
import (
"context"
"spark-server/internal/module/conversation/entity"
)
type Repository interface {
Create(ctx context.Context, c *entity.Conversation) error
Get(ctx context.Context, id int64) (*entity.Conversation, error)
GetP2P(ctx context.Context, userA, userB int64) (*entity.Conversation, error)
UpdateLastMsg(ctx context.Context, id, msgID, atMS int64) error
GetMember(ctx context.Context, conversationID, userID int64) (*entity.Member, error)
UpdateLastRead(ctx context.Context, conversationID, userID, msgID int64) error
}