1.MongoDB、Redis兼容集群模式

2.离线数据接口化访问
This commit is contained in:
flswld
2023-02-26 23:03:13 +08:00
parent 01cb17d4a9
commit 0395dc0bc2
60 changed files with 1298 additions and 464 deletions

View File

@@ -3,15 +3,15 @@ package model
import "go.mongodb.org/mongo-driver/bson/primitive"
type Account struct {
ID primitive.ObjectID `bson:"_id,omitempty"`
AccountID uint32 `bson:"AccountID"`
PlayerID uint32 `bson:"PlayerID"`
Username string `bson:"Username"`
Password string `bson:"Password"`
Token string `bson:"Token"`
TokenCreateTime uint64 `bson:"TokenCreateTime"` // 毫秒时间戳
ComboToken string `bson:"ComboToken"`
ComboTokenUsed bool `bson:"ComboTokenUsed"`
Forbid bool `bson:"Forbid"`
ForbidEndTime uint32 `bson:"ForbidEndTime"` // 秒时间戳
ID primitive.ObjectID `bson:"_id,omitempty"`
AccountID uint32 `bson:"AccountID"`
PlayerID uint32 `bson:"PlayerID"`
Username string `bson:"Username"`
Password string `bson:"Password"`
Token string `bson:"Token"`
TokenCreateTime uint64 `bson:"TokenCreateTime"` // 毫秒时间戳
ComboToken string `bson:"ComboToken"`
ComboTokenCreateTime uint64 `bson:"ComboTokenCreateTime"` // 毫秒时间戳
Forbid bool `bson:"Forbid"`
ForbidEndTime uint32 `bson:"ForbidEndTime"` // 秒时间戳
}