quote

package
v0.0.0-...-747ec1c Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewQuoteRepository

func NewQuoteRepository(db *gorm.DB) *quoteRepository

func ProvideQuoteRepository

func ProvideQuoteRepository(db *gorm.DB) domain.IQuoteRepository

Types

type QuoteMapper

type QuoteMapper struct{}
type IQuoteMapper interface {
	ToEntity(model *model.Quote) *domain.Quote
	ToModel(domain *domain.Quote) *model.Quote
	ToEntityList(models []model.Quote) []*domain.Quote
}

func NewQuoteMapper

func NewQuoteMapper() *QuoteMapper

func (*QuoteMapper) ToEntity

func (qm *QuoteMapper) ToEntity(model *model.Quote) *domain.Quote

func (*QuoteMapper) ToEntityList

func (qm *QuoteMapper) ToEntityList(models []model.Quote) []*domain.Quote

func (*QuoteMapper) ToModel

func (qm *QuoteMapper) ToModel(domain *domain.Quote) *model.Quote

Jump to

Keyboard shortcuts

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