增加Mongo基础字段结构体

This commit is contained in:
2025-11-28 15:21:53 +08:00
parent 302336a769
commit 64b107d48b

View File

@@ -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"`