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
709 B
14 lines
709 B
package database
|
|
|
|
import "context"
|
|
|
|
type SeqUser interface {
|
|
GetUserMaxSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetUserMaxSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetUserMinSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetUserMinSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetUserReadSeq(ctx context.Context, conversationID string, userID string) (int64, error)
|
|
SetUserReadSeq(ctx context.Context, conversationID string, userID string, seq int64) error
|
|
GetUserReadSeqs(ctx context.Context, userID string, conversationID []string) (map[string]int64, error)
|
|
}
|