domain

package
Version: v0.0.0-...-6d92e63 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2020 License: MIT Imports: 3 Imported by: 4

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

Jump to

Keyboard shortcuts

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