models

package
v1.9.36 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DB *core.DB
)

Functions

func InitDB

func InitDB()

func UserPage added in v1.9.32

func UserPage() (any, error)

Types

type User

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

func UserById added in v1.9.32

func UserById(id uid.UID) (user User, err error)

func (*User) Save added in v1.9.32

func (m *User) Save() error

Jump to

Keyboard shortcuts

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