Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
DefaultModel
CreatedBy string `json:"createdBy" gorm:"column:created_by"`
UpdatedBy string `json:"updatedBy" gorm:"column:updated_by"`
}
type DefaultModel ¶
type Model ¶
type Model struct {
ID string `json:"id" gorm:"primary_key;unique_index;size:64"`
CreatedAt time.Time `json:"createdAt" gorm:"column:created_at"`
UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at"`
}
func (*Model) DefaultCreated ¶
func (m *Model) DefaultCreated()
func (*Model) DefaultUpdated ¶
func (m *Model) DefaultUpdated()
Click to show internal directories.
Click to hide internal directories.