model

package
v0.0.0-...-5c5f30a Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	Id           *json.Number `json:"ID" validate:"required"`
	Long         *json.Number `json:"LONG,omitempty"`
	Lat          *json.Number `json:"LAT,omitempty"`
	SetCens      *json.Number `json:"SETCENS,omitempty"`
	AreaP        *json.Number `json:"AREAP,omitempty"`
	CodDist      *string      `json:"CODDIST" validate:"required"`
	District     *string      `json:"DISTRITO,omitempty"`
	CodSubPref   *json.Number `json:"CODSUBPREF,omitempty"`
	SubPref      *string      `json:"SUBPREFE,omitempty"`
	Region5      *string      `json:"REGIAO5,omitempty"`
	Region8      *string      `json:"REGIAO8,omitempty"`
	MarketName   *string      `json:"NOME_FEIRA,omitempty"`
	Record       *string      `json:"REGISTRO,omitempty"`
	Street       *string      `json:"LOGRADOURO,omitempty"`
	Number       *string      `json:"NUMERO,omitempty"`
	Neighborhood *string      `json:"BAIRRO,omitempty"`
	AddressRef   *string      `json:"REFERENCIA,omitempty"`
}

func (Record) FromRecordMap

func (r Record) FromRecordMap(kv map[string]interface{}) (Record, error)

func (Record) FromRecordMapList

func (r Record) FromRecordMapList(lkv []map[string]interface{}) ([]Record, error)

Jump to

Keyboard shortcuts

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