Documentation
¶
Overview ¶
*
@author: taco @Date: 2023/8/15 @Time: 10:37
*
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGormZapLogger ¶
func NewGormZapLogger() gormLogger.Interface
func NewPgDbClient ¶
func NewPgDbClient(c *PgDbConfig) (*gorm.DB, error)
Types ¶
type BaseAdminModel ¶
type BaseTenantModel ¶
type BaseTenantModel struct {
CreatedTenantBy string `` /* 133-byte string literal not displayed */
UpdatedTenantBy string `` /* 133-byte string literal not displayed */
DeletedTenantBy string `gorm:"index:idx_deleted_tenant_by;column:deleted_tenant_by;comment:删除数据的租户;type: varchar(255)" json:"-"`
}
type PgDbConfig ¶
type UniqueIdAdminModel ¶
type UniqueIdAdminModel struct {
CreatedBy string `gorm:"index:idx_created_by;column:created_by;comment:创建者;type: varchar(255)" json:"created_by"`
UpdatedBy string `gorm:"index:idx_updated_by;column:updated_by;comment:更新者;type: varchar(255)" json:"updated_by"`
DeletedBy string `gorm:"index:idx_deleted_by;column:deleted_by;comment:删除者;type: varchar(255)" json:"-"`
}
Click to show internal directories.
Click to hide internal directories.