You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- package base
-
- import (
- "gorm.io/gorm"
- "time"
- )
-
- type BaseModel struct {
- DeletedAt gorm.DeletedAt `gorm:"index;comment:删除时间" json:"-"` // 删除时间
- CreatedBy uint `gorm:"created_by;comment:创建人" json:"createdBy"` //创建人
- CreatedTime time.Time `gorm:"comment:创建时间" json:"-"` // 创建时间
- UpdatedBy uint `gorm:"updated_by;comment:更新人" json:"UpdatedBy"` //创建人
- UpdatedTime time.Time `gorm:"comment:更新时间" json:"-"` // 更新时间
- }
|