Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(router *gin.RouterGroup)
Types ¶
type Contact ¶
type Contact struct { ID int64 `json:"id" binding:"-" validate:"-"` Firstname string `gorm:"type:varchar(64);not null" json:"firstname" form:"firstname" validate:"required,max=64"` Lastname string `gorm:"type:varchar(64);not null" json:"lastname" form:"lastname" validate:"required,max=64"` Email string `gorm:"type:varchar(64);not null" json:"email" form:"email" validate:"required,max=64,email"` Phone string `gorm:"type:varchar(32);not null" json:"phone" form:"phone" validate:"required,max=32,phone"` CreatedAt time.Time `json:"created_at" binding:"-" validate:"-"` UpdatedAt time.Time `json:"updated_at" binding:"-" validate:"-"` }
Click to show internal directories.
Click to hide internal directories.