增加Mongo基础字段结构体
This commit is contained in:
14
do/base_do.go
Normal file
14
do/base_do.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package do
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/v2/bson"
|
||||
"time"
|
||||
)
|
||||
|
||||
type MongoBaseDO struct {
|
||||
Creator bson.ObjectID `bson:"creator" json:"creator"`
|
||||
CreatedAt time.Time `bson:"createdAt" json:"createdAt"`
|
||||
Updater bson.ObjectID `bson:"updater" json:"updater"`
|
||||
UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"`
|
||||
TenantId bson.ObjectID `bson:"tenantId" json:"tenantId"`
|
||||
}
|
||||
Reference in New Issue
Block a user