global

package
v0.0.0-...-8c67d6e Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 12 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GqaConfig      config.Config
	GqaViper       *viper.Viper
	GqaSLogger     *slog.Logger
	GqaDb          *gorm.DB
	GqaCron        *cron.Cron
	GqaServeUpload = "upload"
	GqaServeAvatar = "avatar"
	GqaServeFile   = "file"
	GqaServeBanner = "banner"
	GqaOsType      = runtime.GOOS
)

Functions

This section is empty.

Types

type GqaDate

type GqaDate time.Time

func (*GqaDate) GobDecode

func (d *GqaDate) GobDecode(b []byte) error

func (GqaDate) GobEncode

func (d GqaDate) GobEncode() ([]byte, error)

func (GqaDate) GormDataType

func (d GqaDate) GormDataType() string

func (GqaDate) MarshalJSON

func (d GqaDate) MarshalJSON() ([]byte, error)

func (*GqaDate) Scan

func (d *GqaDate) Scan(v interface{}) error

func (GqaDate) String

func (d GqaDate) String() string

func (*GqaDate) UnmarshalJSON

func (d *GqaDate) UnmarshalJSON(data []byte) error

func (GqaDate) Value

func (d GqaDate) Value() (driver.Value, error)

type GqaModel

type GqaModel struct {
	Id        uint           `json:"id" gorm:"comment:id;primarykey;autoIncrement;"`
	CreatedAt time.Time      `json:"created_at"`
	CreatedBy string         `json:"created_by" gorm:"index;"`
	UpdatedAt time.Time      `json:"updated_at"`
	UpdatedBy string         `json:"updated_by"`
	DeletedAt gorm.DeletedAt `json:"-" gorm:"index"`
	Sort      uint           `json:"sort" gorm:"comment:排序;default:1;"`
	Stable    string         `json:"stable" gorm:"comment:系统内置;default:yesNo_no;type:varchar(10);"`
	Status    string         `json:"status" gorm:"comment:状态;default:onOff_on;type:varchar(10);"`
	Memo      string         `json:"memo" gorm:"comment:备注描述;type:text;"`
}

Jump to

Keyboard shortcuts

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