entity

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(registry *orm.Registry)

Types

type AdminUserEntity

type AdminUserEntity struct {
	orm.ORM  `orm:"table=admin_users;redisCache"`
	ID       uint64
	Email    string `orm:"unique=Email"`
	Password string

	UserEmailIndex *orm.CachedQuery `queryOne:":Email = ?"`
}

func (*AdminUserEntity) GetPassword

func (e *AdminUserEntity) GetPassword() string

func (*AdminUserEntity) GetUsername

func (e *AdminUserEntity) GetUsername() string

Jump to

Keyboard shortcuts

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