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