Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
Id int64 `gorm:"column:id;type:bigint(20) unsigned;primary_key;AUTO_INCREMENT" json:"id"`
UserId int64 `gorm:"column:user_id;type:bigint(20);<-:create" json:"userId"` //主账号uid
IsDeleted bool `gorm:"column:is_deleted;type:tinyint(1)" json:"isDeleted"`
DateAdd JsonTime `gorm:"column:date_add;type:datetime(3);default:null;<-:create" json:"dateAdd"`
DateUpdate JsonTime `gorm:"column:date_update;type:datetime(3);default:null" json:"dateUpdate"`
DateDelete sql.NullTime `gorm:"column:date_delete;type:datetime(3)" json:"dateDelete"`
}
Click to show internal directories.
Click to hide internal directories.