Documentation
¶
Index ¶
- type AddCountryRequest
- type AddCountryResponse
- type Country
- type DeleteCountryRequest
- type DeleteCountryResponse
- type GetDetailCountryRequest
- type GetDetailCountryResponse
- type ListCountry
- type ListCountryResponse
- type UpdateCountryData
- type UpdateCountryKeys
- type UpdateCountryRequest
- type UpdateCountryResponse
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
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 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 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
Source Files
¶
Click to show internal directories.
Click to hide internal directories.