Documentation ¶
Index ¶
- Variables
- type AccountUseCase
- func (r AccountUseCase) CheckEmailVerifyCode(email string, emailType model.VerifyCodeType, code string) bool
- func (r AccountUseCase) GeneratePassword(password string) string
- func (r AccountUseCase) GenerateToken(_ context.Context, userId int) (string, int64, error)
- func (r AccountUseCase) SendEmail(email string, emailType model.VerifyCodeType) error
- func (r AccountUseCase) VerifyPassword(account *ent.User, password string) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet( NewAccountUseCase, )
Functions ¶
This section is empty.
Types ¶
type AccountUseCase ¶
type AccountUseCase struct {
// contains filtered or unexported fields
}
func NewAccountUseCase ¶
func NewAccountUseCase(cfg *conf.Config) *AccountUseCase
func (AccountUseCase) CheckEmailVerifyCode ¶
func (r AccountUseCase) CheckEmailVerifyCode(email string, emailType model.VerifyCodeType, code string) bool
func (AccountUseCase) GeneratePassword ¶
func (r AccountUseCase) GeneratePassword(password string) string
func (AccountUseCase) GenerateToken ¶
func (AccountUseCase) SendEmail ¶
func (r AccountUseCase) SendEmail(email string, emailType model.VerifyCodeType) error
func (AccountUseCase) VerifyPassword ¶
func (r AccountUseCase) VerifyPassword(account *ent.User, password string) bool
Click to show internal directories.
Click to hide internal directories.