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
Click to show internal directories.
Click to hide internal directories.