mirror of
				https://github.com/openimsdk/open-im-server.git
				synced 2025-10-31 16:32:12 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			735 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			735 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package database
 | |
| 
 | |
| import (
 | |
| 	"context"
 | |
| 	"github.com/openimsdk/open-im-server/v3/pkg/common/storage/model"
 | |
| 	"github.com/openimsdk/tools/db/pagination"
 | |
| 	"go.mongodb.org/mongo-driver/bson/primitive"
 | |
| )
 | |
| 
 | |
| type Application interface {
 | |
| 	LatestVersion(ctx context.Context, platform string, hot bool) (*model.Application, error)
 | |
| 	AddVersion(ctx context.Context, val *model.Application) error
 | |
| 	UpdateVersion(ctx context.Context, id primitive.ObjectID, update map[string]any) error
 | |
| 	DeleteVersion(ctx context.Context, id []primitive.ObjectID) error
 | |
| 	PageVersion(ctx context.Context, platforms []string, page pagination.Pagination) (int64, []*model.Application, error)
 | |
| 	FindPlatform(ctx context.Context, id []primitive.ObjectID) ([]string, error)
 | |
| }
 |