dto

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	UUID string `json:"uuid"`
	Name string `json:"name"`
	File string `json:"path"`
}

type Message

type Message struct {
	UUID        string        `json:"uuid"`
	Status      domain.Status `json:"status"`
	From        string        `json:"from"`
	To          []string      `json:"to"`
	Subject     string        `json:"subject"`
	Text        string        `json:"text"`
	CreatedAt   string        `json:"created_at"`
	Attachments []Attachment  `json:"attachments"`
}

func NewMessage

func NewMessage(msg *domain.Message) *Message

Jump to

Keyboard shortcuts

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