Documentation
¶
Index ¶
- Variables
- type AccountUseCase
- func (uc *AccountUseCase) CreateByUsername(ctx context.Context, username, pwd, ip string) (*domain.Account, error)
- func (uc *AccountUseCase) GetById(ctx context.Context, id int64) (*domain.Account, error)
- func (uc *AccountUseCase) GetByUsernameAndPassword(ctx context.Context, name, pwd string) (*domain.Account, error)
- func (uc *AccountUseCase) LoginByAppleCode(ctx context.Context, code string, ip string) (*domain.Account, bool, error)
- func (uc *AccountUseCase) LoginByAppleId(ctx context.Context, secret string) (*domain.Account, string, error)
- func (uc *AccountUseCase) LoginByAppleToken(ctx context.Context, token, secret string, ip string) (acc *domain.Account, isRegister bool, state string, err error)
- func (uc *AccountUseCase) LoginByFacebook(ctx context.Context, token string, ip string) (*domain.Account, bool, error)
- func (uc *AccountUseCase) LoginByGoogle(ctx context.Context, token string, ip string) (*domain.Account, bool, error)
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(logger log.Logger, acc *domain.AccountDomain, name *domain.UsernameDomain, gg *domain.GoogleDomain, ap *domain.AppleDomain, fb *domain.FacebookDomain, ) (uc *AccountUseCase, err error)
func (*AccountUseCase) CreateByUsername ¶
func (*AccountUseCase) GetByUsernameAndPassword ¶
func (*AccountUseCase) LoginByAppleCode ¶
func (*AccountUseCase) LoginByAppleId ¶
func (*AccountUseCase) LoginByAppleToken ¶
func (*AccountUseCase) LoginByFacebook ¶
Click to show internal directories.
Click to hide internal directories.