dto

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: MIT Imports: 0 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LegitimizeFile

type LegitimizeFile struct {
	Files []LegitimizeItem `json:"files" validate:"required"`
}

LegitimizeFile struct to describe legitimize list of uploaded File.

type LegitimizeItem

type LegitimizeItem struct {
	File          string `json:"file" example:"https://902-local.s3.us-west-1.amazonaws.com/tmp/avatar.png" validate:"required,max=255"`
	Name          string `json:"name" example:"avatar.png" validate:"required,max=255"`
	Dir           string `json:"dir" example:"avatars" validate:"required,max=255"`
	LegitimizeURL string `json:"legitimize_url" example:""` // A legitimize URL (public URL). It will be created from backend.
}

LegitimizeItem struct to describe legitimize item.

type PreSignURL

type PreSignURL struct {
	Filename string `json:"filename" example:"avatar.png" validate:"required,max=255"`
}

PreSignURL struct to describe PreSign URL.

Jump to

Keyboard shortcuts

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