You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
681 B
14 lines
681 B
package database
|
|
|
|
import "context"
|
|
|
|
type SeqUser interface {
|
|
GetMaxSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetMaxSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetMinSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetMinSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetReadSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetReadSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetReadSeqs(ctx context.Context, userID string, conversationID []string) (map[string]int64, error)
|
|
}
|