Documentation
¶
Overview ¶
Package kernel holds the shared kernel of the Portal Backend: types used by more than one bounded context. Anything with a single owner belongs in that owner's package instead.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"createdAt"`
UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updatedAt"`
}
BaseModel contains common fields for all models
func (*BaseModel) BeforeCreate ¶
BeforeCreate GORM hook for BaseModel
type CollectionResponse ¶
type CollectionResponse struct {
Items interface{} `json:"items"`
Count int `json:"count"`
}
CollectionResponse Generic collection response
Click to show internal directories.
Click to hide internal directories.