auth

package
v0.0.0-...-9c4fc95 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAdminLogin

func AddAdminLogin(adminLogin AdminLogin) error

Types

type AdminLogin

type AdminLogin struct {
	gorm.Model
	AdminID  uint   `gorm:"not null"`
	Token    string `gorm:"not null"`
	Remember bool   `gorm:"default:false"`
	IP       string `gorm:"not null"`
}

func GetAdminLogin

func GetAdminLogin(adminLogin AdminLogin) (*AdminLogin, error)

Jump to

Keyboard shortcuts

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