model

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT, Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EndCallback

func EndCallback(db *gorm.DB, typ string)

func GetValue

func GetValue(db *gorm.DB, typ int, key string) (string, error)

func SetValue

func SetValue(db *gorm.DB, typ int, key, value string) error

Types

type Cursor

type Cursor struct {
	model.Cursor
	ModelTime
}

func GetCursor

func GetCursor(db *gorm.DB, typ string) (*Cursor, error)

type Dict

type Dict struct {
	model.Dict
	ModelTime
}

type ModelTime

type ModelTime struct {
	CreatedAt time.Time      `json:"created_at" gorm:"default:now()"`
	UpdatedAt time.Time      `json:"updated_at"`
	DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"default:null"`
}

Jump to

Keyboard shortcuts

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