pull/2336/head
withchao 1 year ago
parent e99eaf9146
commit 2f97933f6c

@ -6,6 +6,7 @@ import (
"github.com/openimsdk/tools/errs" "github.com/openimsdk/tools/errs"
"github.com/openimsdk/tools/utils/datautil" "github.com/openimsdk/tools/utils/datautil"
"go.mongodb.org/mongo-driver/bson" "go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/mongo"
"time" "time"
) )
@ -16,12 +17,13 @@ const (
) )
type WriteLog struct { type WriteLog struct {
DID string `bson:"d_id"` ID primitive.ObjectID `bson:"_id"`
Logs []Elem `bson:"logs"` DID string `bson:"d_id"`
Version uint `bson:"version"` Logs []Elem `bson:"logs"`
Deleted uint `bson:"deleted"` Version uint `bson:"version"`
LastUpdate time.Time `bson:"last_update"` Deleted uint `bson:"deleted"`
LogLen int `bson:"log_len"` LastUpdate time.Time `bson:"last_update"`
LogLen int `bson:"log_len"`
} }
func (w *WriteLog) Full() bool { func (w *WriteLog) Full() bool {

@ -0,0 +1,38 @@
package dataver
/*
UserIDs
500
1,2,3,4,5,6,7,8,9
1,3,5,7,8,9
1.sdk docID(), version
2.sdkidHashapiidHash, docID, version
3.version
500id500id
500ididHashidid
id
id
4.sdk
*/
Loading…
Cancel
Save