Files
common/do/base_do.go

15 lines
394 B
Go

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