model

package
v0.0.0-...-2bf1368 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	USER_NOT_EXIST = errors.New("用户不存在")
	USER_EXIST     = errors.New("该ID用户已经存在")
	USERPWD_ERROR  = errors.New("账号与密码错误")
)
View Source
var (
	LoginMesType       = "LoginMes"
	LoginResMesType    = "LoginResMes"
	RegisterMesType    = "RegisterMes"
	RegisterResMesType = "RegisterResMes"
)

Functions

This section is empty.

Types

type LoginMes

type LoginMes struct {
	UserId  string
	UserPwd string
}

type LoginResMes

type LoginResMes struct {
	Code    string
	Error   string
	UsersId []string
}

type Message

type Message struct {
	Type string
	Data string
}

type RegisterMes

type RegisterMes struct {
	UserId   string
	UserPwd  string
	UserName string
}

type RegisterResMes

type RegisterResMes struct {
	Code  string
	Error string
}

type User

type User struct {
	UserId     string `json:"userId"`
	PassWord   string `json:"passWord"`
	UserName   string `json:"userName"`
	UserStatus string
}

type UserDao

type UserDao struct {
	// contains filtered or unexported fields
}
var MyUserDao UserDao

func NewUserDao

func NewUserDao(pool *redis.Pool) (userDao *UserDao)

Jump to

Keyboard shortcuts

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