global

package
v0.0.0-...-6a62363 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Log is the global logger
	Log *zap.Logger
	// CfgMap is the global config file
	CfgMap = map[string]string{
		"development": "/app/myapp/etc/config.yml",
		"production":  "/config.yml",
		"test":        "/app/myapp/etc/config.yml",
		"":            "/config.yml",
	}
)

Functions

This section is empty.

Types

type COMMODEL

type COMMODEL struct {
	ID        int64          `gorm:"primarykey"`                             // 主键ID
	CreatedAt time.Time      `gorm:"index:idx_created_at" json:"created_at"` // 创建时间
	UpdatedAt time.Time      `gorm:"index:idx_updated_at" json:"updated_at"` // 更新时间
	DeletedAt gorm.DeletedAt `gorm:"index:idx_deleted_at" json:"-"`          // 删除时间
}

COMMODEL is the common model for all models.

Jump to

Keyboard shortcuts

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