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 ProvinceGet ¶
func ProvinceGet(ctx context.Context, req *ProvinceGetRequest) ([]Result, error)
Click to show internal directories.
Click to hide internal directories.