Documentation ¶
Index ¶
- func NewDrugUsecase(drugRepo domain.DrugRepository, timeout time.Duration) domain.DrugUsecase
- func NewLoginUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.LoginUsecase
- func NewRefreshTokenUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.RefreshTokenUsecase
- func NewSignupUsecase(userRepository domain.UserRepository, timeout time.Duration) domain.SignupUsecase
- func NewVaccinationUsecase(vr domain.VaccinationRepository, timeout time.Duration) domain.VaccinationUsecase
- type DrugUsecase
- func (du *DrugUsecase) CreateDrug(ctx context.Context, drug *domain.Drug) error
- func (du *DrugUsecase) DeleteDrug(ctx context.Context, id int) error
- func (du *DrugUsecase) GetAllDrugs(ctx context.Context, pagination *domain.Pagination) ([]*domain.Drug, error)
- func (du *DrugUsecase) GetDrugById(ctx context.Context, id int) (*domain.Drug, error)
- func (du *DrugUsecase) UpdateDrug(ctx context.Context, id int, drug *domain.Drug) error
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
func NewVaccinationUsecase ¶
func NewVaccinationUsecase(vr domain.VaccinationRepository, timeout time.Duration) domain.VaccinationUsecase
Types ¶
type DrugUsecase ¶
type DrugUsecase struct {
// contains filtered or unexported fields
}
func (*DrugUsecase) CreateDrug ¶
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 (*DrugUsecase) UpdateDrug ¶
Click to show internal directories.
Click to hide internal directories.