country

package
Version: v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 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 AddCountryRequest

type AddCountryRequest struct {
	Code      string `json:"code"`
	Name      string `json:"name"`
	ISO2Code  string `json:"ISO2Code"`
	ISO3Code  string `json:"ISO3Code"`
	WHORegion string `json:"WHORegion"`
}

AddCountryRequest type

func (*AddCountryRequest) Validate

func (r *AddCountryRequest) Validate() error

Validate AddCountryRequest

type AddCountryResponse

type AddCountryResponse struct {
	Query interface{} `json:"query"`
	Data  *Country    `json:"data"`
}

AddCountryResponse type

func (*AddCountryResponse) ToJSON

func (r *AddCountryResponse) ToJSON() []byte

ToJSON covert to JSON

type Country

type Country struct {
	ID        int64  `json:"ID"`
	Code      string `json:"code"`
	Name      string `json:"name"`
	ISO2Code  string `json:"ISO2Code"`
	ISO3Code  string `json:"ISO3Code"`
	WHORegion string `json:"WHORegion"`
}

Country type

func (*Country) ToJSON added in v0.2.2

func (r *Country) ToJSON() []byte

ToJSON covert to JSON

type DeleteCountryRequest

type DeleteCountryRequest struct {
	Code string `json:"code"`
}

DeleteCountryRequest type

func (*DeleteCountryRequest) Validate

func (r *DeleteCountryRequest) Validate() error

Validate DeleteCountryRequest

type DeleteCountryResponse

type DeleteCountryResponse struct {
	Query interface{} `json:"query"`
	Data  *Country    `json:"data"`
}

DeleteCountryResponse type

func (*DeleteCountryResponse) ToJSON

func (r *DeleteCountryResponse) ToJSON() []byte

ToJSON covert to JSON

type GetDetailCountryRequest

type GetDetailCountryRequest struct {
	Code string `json:"code"`
}

GetDetailCountryRequest type

func (*GetDetailCountryRequest) Validate

func (r *GetDetailCountryRequest) Validate() error

Validate GetDetailCountryRequest

type GetDetailCountryResponse

type GetDetailCountryResponse struct {
	Query interface{} `json:"query"`
	Data  *Country    `json:"data"`
}

GetDetailCountryResponse type

func (*GetDetailCountryResponse) ToJSON

func (r *GetDetailCountryResponse) ToJSON() []byte

ToJSON covert to JSON

type ListCountry

type ListCountry []*Country

ListCountry type

type ListCountryResponse

type ListCountryResponse struct {
	Query interface{} `json:"query"`
	Data  []*Country  `json:"data"`
}

ListCountryResponse type

func (*ListCountryResponse) ToJSON

func (r *ListCountryResponse) ToJSON() []byte

ToJSON covert to JSON

type RefreshCountryIndexerRequest added in v0.2.2

type RefreshCountryIndexerRequest struct {
	ProcessType string `json:"processType"`
}

RefreshCountryIndexerRequest type

func (*RefreshCountryIndexerRequest) Validate added in v0.2.2

func (r *RefreshCountryIndexerRequest) Validate() error

Validate RefreshCountryIndexerRequest

type RefreshCountryIndexerResponse added in v0.2.2

type RefreshCountryIndexerResponse struct {
	Status      string `json:"status"`
	ProcessType string `json:"processType"`
}

RefreshCountryIndexerResponse type

func (*RefreshCountryIndexerResponse) ToJSON added in v0.2.2

func (r *RefreshCountryIndexerResponse) ToJSON() []byte

ToJSON covert to JSON

type SearchCountryIndexerRequest added in v0.2.2

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

SearchCountryIndexerRequest type

func (*SearchCountryIndexerRequest) Validate added in v0.2.2

func (r *SearchCountryIndexerRequest) Validate() error

Validate RefreshCountryIndexerRequest

type SearchCountryIndexerResponse added in v0.2.2

type SearchCountryIndexerResponse struct {
	Query interface{} `json:"query"`
	Data  []*Country  `json:"data"`
}

SearchCountryIndexerResponse type

func (*SearchCountryIndexerResponse) ToJSON added in v0.2.2

func (r *SearchCountryIndexerResponse) ToJSON() []byte

ToJSON covert to JSON

type UpdateCountryData

type UpdateCountryData struct {
	Name      string `json:"name"`
	ISO2Code  string `json:"ISO2Code"`
	ISO3Code  string `json:"ISO3Code"`
	WHORegion string `json:"WHORegion"`
}

UpdateCountryData type

func (*UpdateCountryData) Validate

func (r *UpdateCountryData) Validate() error

Validate UpdateCountryData

type UpdateCountryKeys

type UpdateCountryKeys struct {
	Code string `json:"code"`
}

UpdateCountryKeys type

func (*UpdateCountryKeys) Validate

func (r *UpdateCountryKeys) Validate() error

Validate UpdateCountryKeys

type UpdateCountryRequest

type UpdateCountryRequest struct {
	Keys *UpdateCountryKeys `json:"keys"`
	Data *UpdateCountryData `json:"data"`
}

UpdateCountryRequest type

func (*UpdateCountryRequest) Validate

func (r *UpdateCountryRequest) Validate() error

Validate UpdateCountryRequest

type UpdateCountryResponse

type UpdateCountryResponse struct {
	Query interface{} `json:"query"`
	Data  *Country    `json:"data"`
}

UpdateCountryResponse type

func (*UpdateCountryResponse) ToJSON

func (r *UpdateCountryResponse) ToJSON() []byte

ToJSON covert to JSON

Jump to

Keyboard shortcuts

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