dto

package
v0.0.0-...-ccb81ee Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID     string    `json:"id"`
	Title  string    `json:"title"`
	Link   string    `json:"link"`
	Author string    `json:"author"`
	Date   time.Time `json:"date"`
	Tags   []string  `json:"tags"`
}

Article is a domain transfer object

func (Article) MapToDomainModel

func (a Article) MapToDomainModel() domain.Article

MapToDomainModel maps DTOs to the actual domain model

type Articles

type Articles []Article

Articles is list of article

func (Articles) MapToDomainModel

func (a Articles) MapToDomainModel() []domain.Article

MapToDomainModel maps DTOs to the actual domain model

Jump to

Keyboard shortcuts

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