mapper

package
v0.0.0-...-1bd3253 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProvideMapper

func ProvideMapper() interface{}

Types

type BaseMapper

type BaseMapper[T, E any] interface {
	ToDTO(T) E
	ToManyDTO([]T) []E
	FromDTO(E) T
	FromManyDTO([]E) []T
}

type MapperOut

type MapperOut struct {
	dig.Out

	WeatherHistoryMapper BaseMapper[entity.WeatherHistory, dto.WeatherHistoryDTO]
}

Jump to

Keyboard shortcuts

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