Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MODEL ¶
type MODEL struct { //gorm.Model ID uint `gorm:"column:id;primaryKey;autoIncrement:true;type:int;" json:"ID"` // 主键ID CreatedAt time.Time `gorm:"column:created_at;not null;autoCreateTime" json:"CreatedAt"` // 创建时间 UpdatedAt time.Time `gorm:"column:updated_at;not null;autoUpdateTime" json:"UpdatedAt"` // 更新时间 }
json 推荐下划线
Click to show internal directories.
Click to hide internal directories.