Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PromotionUseCase ¶
type PromotionUseCase interface { Add(data *model.Promotion) error GetAll() ([]model.Promotion, error) Get(id int) (model.Promotion, error) }
PromotionUseCase is the interface
func NewPromotionUseCase ¶
func NewPromotionUseCase(repo repository.PromotionRepository) PromotionUseCase
NewPromotionUseCase is the function new promotion use case