Documentation ¶
Index ¶
- type CodeValidator
- type Repo
- func (_m *Repo) LoginByEmail(email string) (int, error)
- func (_m *Repo) LoginByMobile(mobile string) (int, error)
- func (_m *Repo) LoginByPassword(username string, pass string) (int, error)
- func (_m *Repo) RegisterByEmail(email string) (int, error)
- func (_m *Repo) RegisterByMobile(mobile string) (int, error)
- func (_m *Repo) RegisterByPassword(username string, pass string) (int, error)
- type Service
- func (_m *Service) LoginByEmailCode(email string, code string) (int, error)
- func (_m *Service) LoginByMobileCode(mobile string, code string) (int, error)
- func (_m *Service) LoginByPassword(username string, pass string) (int, error)
- func (_m *Service) RegisterByEmailCode(email string, code string) (int, error)
- func (_m *Service) RegisterByMobileCode(mobile string, code string) (int, error)
- func (_m *Service) RegisterByPassword(username string, pass string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeValidator ¶
CodeValidator is an autogenerated mock type for the CodeValidator type
type Repo ¶
Repo is an autogenerated mock type for the Repo type
func (*Repo) LoginByEmail ¶
LoginByEmailCode provides a mock function with given fields: email
func (*Repo) LoginByMobile ¶
LoginByMobileCode provides a mock function with given fields: mobile
func (*Repo) LoginByPassword ¶
LoginByPassword provides a mock function with given fields: username, pass
func (*Repo) RegisterByEmail ¶
RegisterByEmailCode provides a mock function with given fields: email
func (*Repo) RegisterByMobile ¶
RegisterByMobileCode provides a mock function with given fields: mobile
type Service ¶
Service is an autogenerated mock type for the Service type
func (*Service) LoginByEmailCode ¶
LoginByEmailCode provides a mock function with given fields: email, code
func (*Service) LoginByMobileCode ¶
LoginByMobileCode provides a mock function with given fields: mobile, code
func (*Service) LoginByPassword ¶
LoginByPassword provides a mock function with given fields: username, pass
func (*Service) RegisterByEmailCode ¶
RegisterByEmailCode provides a mock function with given fields: email, code
func (*Service) RegisterByMobileCode ¶
RegisterByMobileCode provides a mock function with given fields: mobile, code