Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { ID uint `gorm:"AUTO_INCREMENT;primary_key;column:id" json:"id"` CreatedAt time.Time `gorm:"column:created_at" json:"created_at"` }
Model definition same as gorm.Model, but including column and json tags
type RequestBody ¶
type RequestBody interface {
Validate() error
}
RequestBody interface for any model that used for validation
Click to show internal directories.
Click to hide internal directories.