domain

package
v0.0.0-...-7767b9c Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Id        int       `json:"-" db:"id"`
	Path      string    `json:"path" binding:"required"`
	Type      FileType  `json:"type" binding:"required"`
	CreatedAt time.Time `json:"created_at" db:"created_at"`
	UpdatedAt time.Time `json:"updated_at" db:"updated_at"`
}

type FileParams

type FileParams struct {
	Width  uint `json:"width" form:"width"`
	Height uint `json:"height" form:"height"`
}

type FileType

type FileType string
const (
	Text  FileType = "text"
	Audio FileType = "audio"
	Image FileType = "image"
	Video FileType = "video"
	DOCS  FileType = "docs"
)

type FileTypeIds

type FileTypeIds struct {
	Id   int
	Type FileType
}

type GetFilesParams

type GetFilesParams struct {
	Type string `json:"type,omitempty" form:"type"`
}

Jump to

Keyboard shortcuts

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