areas

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 5 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"`
}

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"`
}

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"`
}

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"`
}

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"`
}

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"`
}

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