models

package
Version: v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 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 Address added in v0.0.5

type Address struct {
	Street  string `json:"street"`
	City    string `json:"city"`
	State   string `json:"state"`
	ZipCode string `json:"zipCode"`
}

type ContactRequest

type ContactRequest struct {
	ID string `json:"id"`
	Name
	EMail   string   `json:"eMail" format:"email"`
	Address *Address `json:"address"`
}

Contact request model

type ContactResponse

type ContactResponse struct {
	// id is the unique id of contact
	ID string `json:"id"`
}

Contact response model

type Name added in v0.0.5

type Name struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type ThingRequest added in v0.0.3

type ThingRequest struct {
	Name string `json:"name"`
}

ThingRequest model

type ThingResponse added in v0.0.3

type ThingResponse struct {
	Name       string    `json:"name"`
	Int        int       `json:"int"`
	Int8       int8      `json:"int8"`
	Int16      int16     `json:"int16"`
	Int32      int32     `json:"int32"`
	Int64      int64     `json:"int64"`
	UInt       uint      `json:"uint"`
	UInt8      uint8     `json:"uint8"`
	UInt16     uint16    `json:"uint16"`
	UInt32     uint32    `json:"uint32"`
	UInt64     uint64    `json:"uint64"`
	Float32    float32   `json:"float32"`
	Float64    float64   `json:"float64"`
	Bool       bool      `json:"bool"`
	CreateDate time.Time `json:"createDate" format:"date-time,2006-01-02"`
	UpdateDate time.Time `json:"updateDate"`
}

ThingResponse model

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL