Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
DB ...
Functions ¶
Types ¶
type CustomeModel ¶
type CustomeModel struct { ID uint `gorm:"primarykey"` CreatedAt uint64 `json:"created_at"` UpdatedAt uint64 `json:"update_at"` DeletedAt uint64 `json:"deleted_at"` IsDelete bool `json:"is_delete"` }
CustomeModel a basic GoLang struct which includes the following fields: ID, CreatedAt, UpdatedAt, DeletedAt It may be embedded into your model or you may build your own model without it
type User struct { CustomeModel }
Click to show internal directories.
Click to hide internal directories.