models

package
v0.0.0-...-2bd5d14 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ERR_CODE_Database
	ERR_CODE_Marshal
	ERR_CODE_Redis
	ERR_CODE_RabbitMQ
	ERR_CODE_BodyRequired
)
View Source
const (
	ERR_BodyRequired = "required body is missing"
)

Variables

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 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