Documentation ¶
Index ¶
- type UsrService
- func (s *UsrService) ChangePassword(id uint, oldPasswd, newPasswd string) (err error)
- func (s *UsrService) GetUserIno(uuid uuid.UUID) (*model.User, error)
- func (s *UsrService) Login(usrname, passwd string) (*model.User, error)
- func (s *UsrService) PreRegister(tar *model.User) (string, error)
- func (s *UsrService) SendVerifyEmail(tar *model.User, token string) error
- func (s *UsrService) VerifyRegister(token string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsrService ¶
type UsrService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService() *UsrService
func (*UsrService) ChangePassword ¶
func (s *UsrService) ChangePassword(id uint, oldPasswd, newPasswd string) (err error)
func (*UsrService) GetUserIno ¶
func (*UsrService) PreRegister ¶
func (s *UsrService) PreRegister(tar *model.User) (string, error)
func (*UsrService) SendVerifyEmail ¶
func (s *UsrService) SendVerifyEmail(tar *model.User, token string) error
func (*UsrService) VerifyRegister ¶
func (s *UsrService) VerifyRegister(token string) (bool, error)
Click to show internal directories.
Click to hide internal directories.