mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-26 21:22:16 +08:00 
			
		
		
		
	* update wip contents. * update protocol pkg. * feat: add BatchOption struct and method. * fix: remove unnecessary field. * feat: implement true BatchGetIncrGroupMember RPC method and corresponding dependency methods. * fix: update mongo version collection have unique index. * optimize method structures. * update resp in add sortVersion field. * fix uncorrect condition. * add errs pkg.
		
			
				
	
	
		
			22 lines
		
	
	
		
			625 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			625 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package database
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"time"
 | |
| 
 | |
| 	"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
 | |
| )
 | |
| 
 | |
| const (
 | |
| 	FirstVersion         = 1
 | |
| 	DefaultDeleteVersion = 0
 | |
| )
 | |
| 
 | |
| type VersionLog interface {
 | |
| 	IncrVersion(ctx context.Context, dId string, eIds []string, state int32) error
 | |
| 	FindChangeLog(ctx context.Context, dId string, version uint, limit int) (*model.VersionLog, error)
 | |
| 	BatchFindChangeLog(ctx context.Context, dIds []string, versions []uint, limits []int) ([]*model.VersionLog, error)
 | |
| 	DeleteAfterUnchangedLog(ctx context.Context, deadline time.Time) error
 | |
| 	Delete(ctx context.Context, dId string) error
 | |
| }
 |