dto

package
v0.0.0-...-972b0a0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 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 CreatePeople

type CreatePeople struct {
	FirstName  string `json:"first_name"`
	LastName   string `json:"last_name"`
	Patronymic string `json:"patronymic,omitempty"`
	Age        int    `json:"age,omitempty"`
	Sex        string `json:"sex,omitempty"`
	Nation     string `json:"nation,omitempty"`
}

type Filter

type Filter struct {
	Limit   int
	Offset  int
	Deleted bool
}

type People

type People struct {
	ID         uuid.UUID `json:"id" db:"id"`
	FirstName  string    `json:"first_name" db:"first_name"`
	LastName   string    `json:"last_name" db:"last_name"`
	Patronymic string    `json:"patronymic" db:"patronymic"`
	Age        int       `json:"age" db:"age"`
	Sex        string    `json:"sex" db:"sex"`
	Nation     string    `json:"nation" db:"nation"`
	Deleted    bool      `json:"deleted" db:"deleted"`
}

func (*People) MarshallBinary

func (r *People) MarshallBinary() ([]byte, error)

func (*People) UnmarshallBinary

func (r *People) UnmarshallBinary(data []byte) error

type Peoples

type Peoples []People

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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