models

package
v2.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *core.DB
)

Functions

func InitDB

func InitDB()

func UserPage

func UserPage(pos, lmt int) (any, error)

Types

type User

type User struct {
	core.Models
	User     string `json:"user" gorm:"size:32"`
	Password string `json:"password" gorm:"size:96"`
}

func UserById

func UserById(id core.UUID) (user User, err error)

func (*User) Save

func (m *User) Save() error

Jump to

Keyboard shortcuts

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