usecase

package
v0.0.0-...-ade451b Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDrugUsecase

func NewDrugUsecase(drugRepo domain.DrugRepository, timeout time.Duration) domain.DrugUsecase

func NewLoginUsecase

func NewLoginUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.LoginUsecase

func NewRefreshTokenUsecase

func NewRefreshTokenUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.RefreshTokenUsecase

func NewSignupUsecase

func NewSignupUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.SignupUsecase

Types

type DrugUsecase

type DrugUsecase struct {
	// contains filtered or unexported fields
}

func (*DrugUsecase) CreateDrug

func (du *DrugUsecase) CreateDrug(ctx context.Context, drug *domain.Drug) error

func (*DrugUsecase) DeleteDrug

func (du *DrugUsecase) DeleteDrug(ctx context.Context, id int) error

func (*DrugUsecase) GetAllDrugs

func (du *DrugUsecase) GetAllDrugs(ctx context.Context, pagination *domain.Pagination) ([]*domain.Drug, error)

func (*DrugUsecase) GetDrugById

func (du *DrugUsecase) GetDrugById(ctx context.Context, id int) (*domain.Drug, error)

func (*DrugUsecase) UpdateDrug

func (du *DrugUsecase) UpdateDrug(ctx context.Context, id int, drug *domain.Drug) error

Jump to

Keyboard shortcuts

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