Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDocument ¶
type BaseDocument struct { Id primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` CreatedAt time.Time `json:"createdAt" bson:"createdAt"` UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"` }
func (*BaseDocument) GetCreatedAt ¶
func (bd *BaseDocument) GetCreatedAt() time.Time
func (*BaseDocument) GetID ¶
func (bd *BaseDocument) GetID() primitive.ObjectID
func (*BaseDocument) GetUpdatedAt ¶
func (bd *BaseDocument) GetUpdatedAt() time.Time
func (*BaseDocument) OnCreate ¶
func (bd *BaseDocument) OnCreate()
func (*BaseDocument) OnUpdate ¶
func (bd *BaseDocument) OnUpdate()
Click to show internal directories.
Click to hide internal directories.