repository

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: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PromotionRepository

type PromotionRepository interface {
	Add(data *model.Promotion) error
	GetAll() ([]model.Promotion, error)
	Get(id int) (model.Promotion, error)
}

PromotionRepository is the interface

func NewPromotionRepository

func NewPromotionRepository(ds datasource.PromotionDataSource) PromotionRepository

NewPromotionRepository is the function

Jump to

Keyboard shortcuts

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