userService

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(code string) (*model.User, error)

func Create

func Create(uname, pwd, email string, status int, isAdmin bool) (*model.User, error)

func GetByID

func GetByID(uid uint64) (*model.User, error)

func GetByRands

func GetByRands(rands string) (*model.User, error)

func QueryUsers added in v0.1.1

func QueryUsers(uid uint64, pageIndex, pageCount int, email string) (*dto.Pager, error)

func SignIn added in v0.1.1

func SignIn(emailOrName, pwd string) (*model.User, error)

func SignInWithUserName added in v0.1.1

func SignInWithUserName(uname string) (*model.User, error)

func UpdateRole added in v0.1.1

func UpdateRole(email string, role int) error

func UpdateStatus added in v0.1.1

func UpdateStatus(email string, status int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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