mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-11-04 03:13:15 +08:00 
			
		
		
		
	* fix: GroupApplicationAcceptedNotification * fix: GroupApplicationAcceptedNotification * fix: NotificationUserInfoUpdate * cicd: robot automated Change * fix: component * fix: getConversationInfo * feat: cron task * feat: cron task * feat: cron task * feat: cron task * feat: cron task * fix: minio config url recognition error * update gomake version * update gomake version * fix: seq conversion bug * fix: redis pipe exec * fix: ImportFriends * fix: A large number of logs keysAndValues length is not even * feat: mark read aggregate write * feat: online status supports redis cluster * feat: online status supports redis cluster * feat: online status supports redis cluster * merge * merge * read seq is written to mongo * read seq is written to mongo --------- Co-authored-by: withchao <withchao@users.noreply.github.com>
		
			
				
	
	
		
			17 lines
		
	
	
		
			966 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			966 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package cache
 | 
						|
 | 
						|
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
 | 
						|
	SetUserReadSeqToDB(ctx context.Context, conversationID string, userID string, seq int64) error
 | 
						|
	SetUserMinSeqs(ctx context.Context, userID string, seqs map[string]int64) error
 | 
						|
	SetUserReadSeqs(ctx context.Context, userID string, seqs map[string]int64) error
 | 
						|
	GetUserReadSeqs(ctx context.Context, userID string, conversationIDs []string) (map[string]int64, error)
 | 
						|
}
 |