Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseMysqlStruct ¶
type BaseMysqlStruct struct {
Id int `json:"id" gorm:"primary_key;AUTO_INCREMENT;comment:主键"`
CreateTime LocalTime `json:"create_time" gorm:"type:datetime;NOT NULL; DEFAULT:CURRENT_TIMESTAMP;comment:创建时间"`
UpdateTime LocalTime `json:"update_time" gorm:"type:datetime;DEFAULT:NULL ON UPDATE CURRENT_TIMESTAMP;comment:更新时间"`
IsDelete soft_delete.DeletedAt `json:"is_delete" gorm:"softDelete:flag;DEFAULT:0;comment:是否删除 0 未删除 1删除"`
}
Click to show internal directories.
Click to hide internal directories.