global

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

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:"删除时间"`
}

Jump to

Keyboard shortcuts

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