areas

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.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 AreasCityGetResponse

type AreasCityGetResponse struct {
	Code                 string                    `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc            string                    `json:"error_description,omitempty" codec:"error_description,omitempty"`
	AreasServiceResponse *BaseAreasServiceResponse `json:"baseAreaServiceResponse,omitempty" codec:"baseAreaServiceResponse,omitempty"`
}

func (AreasCityGetResponse) Error added in v1.1.1

func (r AreasCityGetResponse) Error() string

func (AreasCityGetResponse) IsError added in v1.1.1

func (r AreasCityGetResponse) IsError() bool

type AreasCountyGetResponse

type AreasCountyGetResponse struct {
	Code                 string                    `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc            string                    `json:"error_description,omitempty" codec:"error_description,omitempty"`
	AreasServiceResponse *BaseAreasServiceResponse `json:"baseAreaServiceResponse,omitempty" codec:"baseAreaServiceResponse,omitempty"`
}

func (AreasCountyGetResponse) Error added in v1.1.1

func (r AreasCountyGetResponse) Error() string

func (AreasCountyGetResponse) IsError added in v1.1.1

func (r AreasCountyGetResponse) IsError() bool

type AreasProvinceGetResponse

type AreasProvinceGetResponse struct {
	Code                 string                    `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc            string                    `json:"error_description,omitempty" codec:"error_description,omitempty"`
	AreasServiceResponse *BaseAreasServiceResponse `json:"baseAreaServiceResponse,omitempty" codec:"baseAreaServiceResponse,omitempty"`
}

func (AreasProvinceGetResponse) Error added in v1.1.1

func (r AreasProvinceGetResponse) Error() string

func (AreasProvinceGetResponse) IsError added in v1.1.1

func (r AreasProvinceGetResponse) IsError() bool

type BaseAreasServiceResponse

type BaseAreasServiceResponse struct {
	Data []Result `json:"data,omitempty" codec:"data,omitempty"`
}

type CityGetRequest

type CityGetRequest struct {
	api.BaseRequest
	ParentId uint64
}

type CityGetResponse

type CityGetResponse struct {
	ErrorResp            *api.ErrorResponnse   `json:"error_response,omitempty" codec:"error_response,omitempty"`
	AreasCityGetResponse *AreasCityGetResponse `json:"jingdong_areas_city_get_responce,omitempty" codec:"jingdong_areas_city_get_responce,omitempty"`
}

func (CityGetResponse) Error added in v1.1.1

func (r CityGetResponse) Error() string

func (CityGetResponse) IsError added in v1.1.1

func (r CityGetResponse) IsError() bool

type CountyGetRequest

type CountyGetRequest struct {
	api.BaseRequest
	ParentId uint64
}

type CountyGetResponse

type CountyGetResponse struct {
	ErrorResp              *api.ErrorResponnse     `json:"error_response,omitempty" codec:"error_response,omitempty"`
	AreasCountyGetResponse *AreasCountyGetResponse `json:"jingdong_areas_county_get_responce,omitempty" codec:"jingdong_areas_county_get_responce,omitempty"`
}

func (CountyGetResponse) Error added in v1.1.1

func (r CountyGetResponse) Error() string

func (CountyGetResponse) IsError added in v1.1.1

func (r CountyGetResponse) IsError() bool

type ProvinceGetRequest

type ProvinceGetRequest struct {
	api.BaseRequest
}

type ProvinceGetResponse

type ProvinceGetResponse struct {
	ErrorResp                *api.ErrorResponnse       `json:"error_response,omitempty" codec:"error_response,omitempty"`
	AreasProvinceGetResponse *AreasProvinceGetResponse `json:"jingdong_areas_province_get_responce,omitempty" codec:"jingdong_areas_province_get_responce,omitempty"`
}

func (ProvinceGetResponse) Error added in v1.1.1

func (r ProvinceGetResponse) Error() string

func (ProvinceGetResponse) IsError added in v1.1.1

func (r ProvinceGetResponse) IsError() bool

type Result

type Result struct {
	ParentId uint64 `json:"parentId" codec:"parentId"`
	Level    uint8  `json:"level" codec:"level"`
	AreaName string `json:"areaName" codec:"areaName"`
	Status   int8   `json:"status" codec:"status"`
	AreaId   uint64 `json:"areaId" codec:"areaId"`
}

func CityGet

func CityGet(req *CityGetRequest) ([]Result, error)

func CountyGet

func CountyGet(req *CountyGetRequest) ([]Result, error)

func ProvinceGet

func ProvinceGet(req *ProvinceGetRequest) ([]Result, error)

Jump to

Keyboard shortcuts

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