models

package
Version: v0.0.0-...-e940768 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTotalAndWin

func AddTotalAndWin(name string, iswin bool)

func AddUser

func AddUser()

func AddWin

func AddWin(name string)

func CheckPassword

func CheckPassword(name string, password string) bool

func RegistDB

func RegistDB()

func RegistUser

func RegistUser(name string, password string, phone string) string

Types

type User

type User struct {
	Id       int64  `orm:"auto"`
	Name     string `orm:"index;unique"`
	Password string `orm:"size(20)"`
	Phone    string `orm:"index;unique"`
	Total    int    `orm:"null"`
	Win      int    `orm:"null"`
}

func GetAllUser

func GetAllUser() ([]*User, error)

Source Files

Jump to

Keyboard shortcuts

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