Documentation
¶
Index ¶
- type Service
- func (svc *Service) Authenticate(userName string, password string) (bool, error)
- func (svc *Service) Create(data model.UserInput, CreateUserID *int64) (*model.User, error)
- func (svc *Service) EncryptPassword(password string, publicKeyRSA *rsa.PublicKey) ([]byte, error)
- func (svc *Service) GetById(userId int64) (*model.User, error)
- func (svc *Service) GetUserIdByUsername(username string) (int, error)
- func (svc *Service) List(userIdStr, statusCd string) ([]*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service load user service with model.User
func NewService ¶
NewService creates new user service
func (*Service) Authenticate ¶
Authenticate authenticates the provided credential
func (*Service) EncryptPassword ¶
EncryptPassword encrypts password
func (*Service) GetUserIdByUsername ¶
GetUserIdByUsername gets user data by username
Click to show internal directories.
Click to hide internal directories.