account

package
v0.0.0-...-d23ef4a Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OldPasswordNotCorrectErr = errors.New("old password not correct")
View Source
var PasswordModifyErr = errors.New("password modify error")
View Source
var UserNotFoundErr = errors.New("user not found")

Functions

This section is empty.

Types

type Service

type Service interface {
	services.ServiceLifeCycle
	GetAll() ([]models.Account, error)
	GetByUsername(username string) (models.Account, error)
	DeleteByUsername(username string) (models.Account, error)
	Register(username string, password string, role []string) (models.Account, error)
	Verify(username string, password string) (models.Account, error)
	ChangePassword(username string, oldPassword string, newPassword string) error
}

func GetInstance

func GetInstance() Service

Jump to

Keyboard shortcuts

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