userservice

package
v0.0.0-...-1f55c80 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	UserID   int64  `json:"id"`
	UserName string `json:"user_name"`
	Pwd      string `json:"pwd"`
}

User 认证表结构

func (*User) CreateUser

func (u *User) CreateUser() (int, error)

CreateUser 创建用户

func (*User) GetUserInfo

func (u *User) GetUserInfo() (*defs.User, error)

GetUserInfo 获取用户信息

func (*User) UserLogin

func (u *User) UserLogin() (int, error)

UserLogin 验证用户登陆信息

Jump to

Keyboard shortcuts

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