Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Full ¶
type Full struct {
ID uint64 `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
CreatedAt time.Time `gorm:"column:created_at;type:timestamp" json:"created_at"` // 创建时间
UpdatedAt time.Time `gorm:"column:updated_at;type:timestamp" json:"updated_at"` // 修改时间
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"` // 删除时间
}
type FullList ¶
type FullList struct {
ID uint64 `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at;type:timestamp" json:"created_at"` // 创建时间
UpdatedAt *timeHelper.MyJsonTime `gorm:"column:updated_at;type:timestamp" json:"updated_at"` // 修改时间
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"` // 删除时间
}
type IDCreatedAt ¶
type IDCreatedAtList ¶
type IDCreatedAtList struct {
ID uint64 `gorm:"column:id" json:"id"` // 主键
CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at" json:"created_at"` // 创建时间
}
type IDDeletedAt ¶
type ModelWithTableName ¶
type ModelWithTableName interface {
TableName() string
}
type NoDeletedAt ¶
type NoUpdatedAt ¶
type NoUpdatedAtList ¶
type NoUpdatedAtList struct {
ID uint64 `gorm:"primary_key;column:id;type:int(11);not null" json:"id"` // 主键
CreatedAt *timeHelper.MyJsonTime `gorm:"column:created_at;type:timestamp" json:"created_at"` // 创建时间
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;type:timestamp" json:"-"` // 删除时间
}
Click to show internal directories.
Click to hide internal directories.