mapper

package
v0.0.0-...-e1e7ebf Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GameFromModel

func GameFromModel(game *model.Game, lng string) *dto.GameDTO

func GenresFromModel

func GenresFromModel(genres []model.GameGenre, genre model.GameGenre, lng string) []dto.LinkDTO

func LinkFromModel

func LinkFromModel(link model.Link) dto.LinkDTO

func MediaFromModel

func MediaFromModel(media *model.Media, lng string) dto.MediaDTO

func PlatformsFromModel

func PlatformsFromModel(platforms model.Platforms) []string

func RequirementsFromModel

func RequirementsFromModel(requirements model.GameRequirements, langs model.GameLangs) dto.GameRequirementsDTO

func SystemFromModel

func SystemFromModel(requirements model.MachineRequirements) dto.RequirementsDTO

func TagFromModel

func TagFromModel(tag model.GameTag, lng string) dto.LinkDTO

func TagsFromModel

func TagsFromModel(tags []model.GameTag, lng string) []dto.LinkDTO

func UserFromModel

func UserFromModel(user *model.User) *dto.UserDTO

UserFromModel is method for mapping db model to dto

Types

This section is empty.

Jump to

Keyboard shortcuts

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