users

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

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

Go to latest
Published: Apr 17, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserInfoService

type UserInfoService struct {
	ID        bson.ObjectId `bson:"_id,omitempty"`
	USERNAME  string        `json:"userName" binding:"required"`
	PASSWORD  string        `json:"password" binding:"required"`
	EMAIL     string        `json:"email" binding:"required"`
	Timestamp time.Time
}

UserInfoService export all service about user info action.

func (UserInfoService) Login

func (uis UserInfoService) Login() int

Login param [userName, password], return a int type, it`s a common code,you can known it means by the words.

func (UserInfoService) QueryAllAccountInfo

func (uis UserInfoService) QueryAllAccountInfo() (usersInfo []UserInfoService)

QueryAllAccountInfo query all user information, return a user list.

func (UserInfoService) Register

func (uis UserInfoService) Register() error

Register register one new user in db, return a boolean value to make know success or not.

func (UserInfoService) UpdateUserInfo

func (uis UserInfoService) UpdateUserInfo() bool

UpdateUserInfo update user account information

Jump to

Keyboard shortcuts

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