usecases

package
v0.0.0-...-4bd82ba Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BankUsecase

type BankUsecase struct {
	Repository repositories.IBankRepository
}

func (*BankUsecase) GetListBank

func (b *BankUsecase) GetListBank(ctx context.Context) ([]entities.Bank, error)

type IBankUsecase

type IBankUsecase interface {
	GetListBank(ctx context.Context) ([]entities.Bank, error)
}

type IOauthUsecase

type IOauthUsecase interface {
	IssueToken(ctx *gin.Context, token *dto.IssueToken) (*entities.Token, domainErrors.DomainError)
}

type OauthUsecase

type OauthUsecase struct {
	OauthClientRepository      repositories.IOauthClientRepository
	OauthAccessTokenRepository repositories.IOauthAccessTokenRepository
	Logger                     *logrus.Logger
}

func (*OauthUsecase) IssueToken

func (o *OauthUsecase) IssueToken(ctx *gin.Context, dtoIssueToken *dto.IssueToken) (*entities.Token, domainErrors.DomainError)

type Usecase

type Usecase struct {
	OauthUsecase IOauthUsecase
}

Jump to

Keyboard shortcuts

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