增加Mongo基础字段结构体
This commit is contained in:
@@ -7,9 +7,10 @@ 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"`
|
||||
UpdatedAt time.Time `bson:"updatedAt" json:"updatedAt"`
|
||||
TenantId bson.ObjectID `bson:"tenantId" json:"tenantId"`
|
||||
Creator bson.ObjectID `bson:"creator,omitempty" json:"creator"`
|
||||
CreatedAt time.Time `bson:"createdAt,omitempty" json:"createdAt"`
|
||||
Updater bson.ObjectID `bson:"updater,omitempty" json:"updater"`
|
||||
UpdatedAt time.Time `bson:"updatedAt,omitempty" json:"updatedAt"`
|
||||
TenantId bson.ObjectID `bson:"tenantId" json:"tenantId"` // 租户ID
|
||||
IsDeleted int `bson:"isDeleted" json:"isDeleted"` // 是否删除,1已删除,0未删除
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user