🎨 移除软删除字段的默认值类型定义,简化数据结构
All checks were successful
BuildImage / build-image (push) Successful in 2m6s
All checks were successful
BuildImage / build-image (push) Successful in 2m6s
This commit is contained in:
parent
e91c9ec94b
commit
2960115bbc
@ -12,5 +12,5 @@ type BaseModel struct {
|
|||||||
CreatedAt time.Time `json:"created_at"`
|
CreatedAt time.Time `json:"created_at"`
|
||||||
UpdatedAt time.Time `json:"updated_at"`
|
UpdatedAt time.Time `json:"updated_at"`
|
||||||
DeletedAt int64 `json:"-" gorm:"index:deleted; default:0"`
|
DeletedAt int64 `json:"-" gorm:"index:deleted; default:0"`
|
||||||
IsDel soft_delete.DeletedAt `json:"-" gorm:"softDelete:flag,DeletedAtField:DeletedAt; index:deleted; default:0; type:tinyint(1)"`
|
IsDel soft_delete.DeletedAt `json:"-" gorm:"softDelete:flag,DeletedAtField:DeletedAt; index:deleted; default:0"`
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user