增加Mongo基础字段结构体
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
)
|
||||
|
||||
type MongoBaseDO struct {
|
||||
Id bson.ObjectID `bson:"_id,omitempty" json:"id"` // MongoDB 默认 ID
|
||||
Creator bson.ObjectID `bson:"creator" json:"creator"`
|
||||
CreatedAt time.Time `bson:"createdAt" json:"createdAt"`
|
||||
Updater bson.ObjectID `bson:"updater" json:"updater"`
|
||||
|
||||
Reference in New Issue
Block a user