withchao 8e3890ed88 seq
2024-06-21 18:24:30 +08:00

13 lines
581 B
Go

package database
import "context"
type SeqUser interface {
GetMaxSeq(ctx context.Context, userID string, conversationID string) (int64, error)
SetMaxSeq(ctx context.Context, userID string, conversationID string, seq int64) error
GetMinSeq(ctx context.Context, userID string, conversationID string) (int64, error)
SetMinSeq(ctx context.Context, userID string, conversationID string, seq int64) error
GetReadSeq(ctx context.Context, userID string, conversationID string) (int64, error)
SetReadSeq(ctx context.Context, userID string, conversationID string, seq int64) error
}