global

package
v0.0.0-...-38e5134 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdpDb                 *gorm.DB
	AdpVp                 *viper.Viper
	AdpConfig             config.Server
	AdpLog                *zap.Logger
	AdpConcurrencyControl = &singleflight.Group{}
	AdpValidator          ut.Translator
	AdpRedis              *redis.Client

	BlackCache local_cache.Cache
)

Functions

This section is empty.

Types

type AdpModel

type AdpModel struct {
	ID        uint           `gorm:"primarykey"` // 主键ID
	CreatedAt time.Time      // 创建时间
	UpdatedAt time.Time      // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"` // 删除时间
	Key       string         `gorm:"-" json:"key"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL