Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDBEngine ¶
func NewDBEngine(databaseSetting *setting.DatabaseSettingS) (*gorm.DB, error)
Types ¶
type Article ¶
type ArticleSwagger ¶
type ArticleTag ¶
func (ArticleTag) TableName ¶
func (a ArticleTag) TableName() string
type Auth ¶
type Model ¶
type Model struct { ID uint32 `gorm:"primary_key" json:"id"` CreatedBy string `json:"created_by"` ModifiedBy string `json:"modified_by"` CreatedOn uint32 `json:"created_on"` // 创建时间 ModifiedOn uint32 `json:"modified_on"` // 更新时间 DeletedOn uint32 `json:"deleted_on"` // 删除时间 IsDel uint8 `json:"is_del"` }
Model 作为公共部分字段被其他model引入
type TagSwagger ¶
Click to show internal directories.
Click to hide internal directories.