mirror of
https://github.com/FlourishingWorld/hk4e.git
synced 2026-02-13 05:12:29 +08:00
refactor
This commit is contained in:
14
dispatch/model/account.go
Normal file
14
dispatch/model/account.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package model
|
||||
|
||||
import "go.mongodb.org/mongo-driver/bson/primitive"
|
||||
|
||||
type Account struct {
|
||||
ID primitive.ObjectID `bson:"_id,omitempty"`
|
||||
Uid uint64 `bson:"uid"`
|
||||
Username string `bson:"username"`
|
||||
PlayerID uint64 `bson:"playerID"`
|
||||
Token string `bson:"token"`
|
||||
ComboToken string `bson:"comboToken"`
|
||||
Forbid bool `bson:"forbid"`
|
||||
ForbidEndTime uint64 `bson:"forbidEndTime"`
|
||||
}
|
||||
6
dispatch/model/player_id_counter.go
Normal file
6
dispatch/model/player_id_counter.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package model
|
||||
|
||||
type PlayerIDCounter struct {
|
||||
ID string `bson:"_id"`
|
||||
PlayerID uint64 `bson:"PlayerID"`
|
||||
}
|
||||
Reference in New Issue
Block a user