models

package
v0.0.0-...-7909d78 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 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 FileRequest

type FileRequest struct {
	Name        string                  `mapstructure:"name"`
	Files       []*multipart.FileHeader `mapstructure:"file"`
	OneMoreFile *multipart.FileHeader   `mapstructure:"one_more_file"`
}

type FileResponse

type FileResponse struct {
	Name        string                  `mapstructure:"name" json:"name"`
	Files       []*multipart.FileHeader `mapstructure:"file[]" json:"files"`
	OneMoreFile *multipart.FileHeader   `mapstructure:"one_more_file" json:"one_more_file"`
}

type GetRandomNumberRequest

type GetRandomNumberRequest struct {
	Min int `mapstructure:"min"`
	Max int `mapstructure:"max"`
}

type GetRandomNumberResponse

type GetRandomNumberResponse struct {
	Number int `json:"number"`
}

type TestRequest

type TestRequest struct {
	Firstname  string  `json:"fistname"`
	Lastname   string  `json:"lastname"`
	Patronymic *string `json:"patronymic"`
}

type TestResponse

type TestResponse struct {
	ID string `json:"id"`
}

Jump to

Keyboard shortcuts

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