models

package
v0.0.0-...-8331e30 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUser

func AddUser(u User) (uid int64, err error)

func Auth

func Auth(principle string, password string, authType int) bool

@Param t auth type 0username 1phone 2email

func DeleteUser

func DeleteUser(uid int64) bool

func UpdateUser

func UpdateUser(u *User) bool

Types

type Company

type Company struct {
	Id int64
}

type Student

type Student struct {
	Id int64
}

type User

type User struct {
	Id       int64
	Username string
	Password string
	Email    string
	Phone    string
	Avatar   string
	Salt     string
}

func GetUserById

func GetUserById(uid int64) (u *User, err error)

Jump to

Keyboard shortcuts

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