models

package
v0.0.0-...-2942fcd Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DB_NAME = "chat"

Variables

This section is empty.

Functions

func AddUser

func AddUser(u, p, e string)

func GetUser

func GetUser()

func GetUserInfo

func GetUserInfo(token string) *structs.UserInfo

func IdToUser

func IdToUser(id string) (result structs.UserInfo, err error)

通过id查询用户

func UsernameToUser

func UsernameToUser(username string) (result structs.UserInfo, err error)

通过username查询用户

func VerifyLogin

func VerifyLogin(username string, passwd string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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