biz

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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 (uc *AccountUseCase) CreateByUsername(ctx context.Context, username, pwd, ip string) (*domain.Account, error)

func (*AccountUseCase) GetById

func (uc *AccountUseCase) GetById(ctx context.Context, id int64) (*domain.Account, error)

func (*AccountUseCase) GetByUsernameAndPassword

func (uc *AccountUseCase) GetByUsernameAndPassword(ctx context.Context, name, pwd string) (*domain.Account, error)

func (*AccountUseCase) LoginByAppleCode

func (uc *AccountUseCase) LoginByAppleCode(ctx context.Context, code string, ip string) (*domain.Account, bool, error)

func (*AccountUseCase) LoginByAppleId

func (uc *AccountUseCase) LoginByAppleId(ctx context.Context, secret string) (*domain.Account, string, error)

func (*AccountUseCase) LoginByAppleToken

func (uc *AccountUseCase) LoginByAppleToken(ctx context.Context, token, secret string, ip string) (acc *domain.Account, isRegister bool, state string, err error)

func (*AccountUseCase) LoginByFacebook

func (uc *AccountUseCase) LoginByFacebook(ctx context.Context, token string, ip string) (*domain.Account, bool, error)

func (*AccountUseCase) LoginByGoogle

func (uc *AccountUseCase) LoginByGoogle(ctx context.Context, token string, ip string) (*domain.Account, bool, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL