spark-server/internal/module/deliver/logic/done.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

9 lines
213 B
Go

package logic
import "context"
// Deduper is SETNX deliver:done:{msgId} so a retried job cannot increment unread twice.
type Deduper interface {
Mark(ctx context.Context, msgID int64) (first bool, err error)
}