dto

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 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 Error

type Error struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

func NewError

func NewError(code int, message string) Error

type File

type File struct {
	Id             uuid.UUID `json:"id"`
	Context        string    `json:"context"`
	OriginFilename string    `json:"origin_filename"`
	MimeType       string    `json:"mime_type"`
	Size           uint      `json:"size"`
	CreatedAt      time.Time `json:"created_at"`
	Url            string    `json:"url"`
}

type FileSaveSlice

type FileSaveSlice []interface{}

type FilesSaveMap

type FilesSaveMap map[string]FileSaveSlice

Jump to

Keyboard shortcuts

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