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/utils/datautil"
"go.mongodb.org/mongo-driver/bson"
"go.mongodb.org/mongo-driver/bson/primitive"
"go.mongodb.org/mongo-driver/mongo"
"time"
)
@ -16,12 +17,13 @@ const (
)
type WriteLog struct {
DID string `bson:"d_id"`
Logs []Elem `bson:"logs"`
Version uint `bson:"version"`
Deleted uint `bson:"deleted"`
LastUpdate time.Time `bson:"last_update"`
LogLen int `bson:"log_len"`
ID primitive.ObjectID `bson:"_id"`
DID string `bson:"d_id"`
Logs []Elem `bson:"logs"`
Version uint `bson:"version"`
Deleted uint `bson:"deleted"`
LastUpdate time.Time `bson:"last_update"`
LogLen int `bson:"log_len"`
}
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