Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Db *gorm.DB Redis *redis.Client Viper *viper.Viper Config config.Config JwtCache local_cache.Cache ConcurrencyControl = &singleflight.Group{} )
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct { Id uint `gorm:"PrimaryKey;column:id;comment:主键ID" example:"7"` CreatedAt time.Time `json:"createdAt" gorm:"column:created_at;comment:创建时间" example:"创建时间"` UpdatedAt time.Time `json:"updatedAt" gorm:"column:updated_at;comment:更新时间" example:"更新时间"` DeletedAt gorm.DeletedAt `json:"-" gorm:"index;column:deleted_at;comment:删除时间" example:"删除时间"` }
Click to show internal directories.
Click to hide internal directories.