models

package
v0.0.0-...-c427095 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPassword

func CheckPassword(au *AuthUser) error

func FindAllUser

func FindAllUser(ulist *[]User)

Types

type Article

type Article struct {
	ID      uint64
	Title   string
	Content string
	Author  string
}

type AuthUser

type AuthUser struct {
	Email    string
	Password string
}

type User

type User struct {
	gorm.Model
	Username string
	Password string
	Email    string
}

func (*User) Create

func (u *User) Create()

func (*User) FindUser

func (u *User) FindUser() bool

func (*User) Verify

func (u *User) Verify() error

Jump to

Keyboard shortcuts

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