Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuditingEntity ¶
type AuditingModel ¶
type DeletableEntity ¶
type DeletableEntity struct {
AuditingEntity
DelFlag bool `gorm:"column:del_flag;default:false" json:"delFlag"`
DeletedTime time.Time `gorm:"column:deleted_time;autoUpdateTime" json:"deleted_time"`
DeletedBy string `gorm:"column:deleted_by" json:"deleted_by"`
}
type DeletableModel ¶
type DeletableModel struct {
AuditingModel
DelFlag bool `gorm:"column:del_flag;default:false" json:"delFlag"`
DeletedTime time.Time `gorm:"column:deleted_time;autoUpdateTime" json:"deleted_time"`
DeletedBy string `gorm:"column:deleted_by" json:"deleted_by"`
}
type Entity ¶
type Entity struct {
Id string `gorm:"column:id;primaryKey" json:"id" primaryKey:"yes"`
CreatedTime time.Time `gorm:"column:created_time;autoCreateTime" json:"createdTime"`
LastModifiedTime time.Time `gorm:"column:last_modified_time;autoUpdateTime" json:"lastModifiedTime"`
TenantId string `gorm:"column:tenant_id" json:"tenantId"`
}
type Model ¶
type Model struct {
Id int64 `gorm:"primaryKey" json:"id" primaryKey:"yes"`
CreatedTime time.Time `gorm:"column:created_time;autoCreateTime" json:"createdTime"`
LastModifiedTime time.Time `gorm:"column:last_modified_time;autoUpdateTime" json:"lastModifiedTime"`
TenantId string `gorm:"column:tenant_id" json:"tenantId"`
}
Click to show internal directories.
Click to hide internal directories.