alitripdivisions

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package alitripdivisions 包含飞猪行政区划API相关结构体

https://open.taobao.com/API.htm?docType=2&docId=31375

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripPlatformDivisionsGetdivisionbynameAPIRequest added in v1.2.0

type AlitripPlatformDivisionsGetdivisionbynameAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlitripPlatformDivisionsGetdivisionbynameAPIRequest 根据中文名称与行政区划级别查询行政区划数据 API请求 alitrip.platform.divisions.getdivisionbyname

根据中文名称与行政区划级别查询行政区划数据

func NewAlitripPlatformDivisionsGetdivisionbynameRequest

func NewAlitripPlatformDivisionsGetdivisionbynameRequest() *AlitripPlatformDivisionsGetdivisionbynameAPIRequest

NewAlitripPlatformDivisionsGetdivisionbynameRequest 初始化AlitripPlatformDivisionsGetdivisionbynameAPIRequest对象

func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetLevel added in v1.2.0

GetLevel Level Getter

func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetName added in v1.2.0

GetName Name Getter

func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetLevel added in v1.2.0

SetLevel is Level Setter 行政区划级别ALL(0, "全部"), CONTINENT(1, "大洲"), COUNTRY(2, "国家"), PROVINCE(3, "省份"), CITY(4, "城市"), DISTRICT(5, "区县"), STREET(6, "街道")

func (*AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetName added in v1.2.0

SetName is Name Setter 行政区划名称

type AlitripPlatformDivisionsGetdivisionbynameAPIResponse

type AlitripPlatformDivisionsGetdivisionbynameAPIResponse struct {
	model.CommonResponse
	AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel
}

AlitripPlatformDivisionsGetdivisionbynameAPIResponse 根据中文名称与行政区划级别查询行政区划数据 API返回值 alitrip.platform.divisions.getdivisionbyname

根据中文名称与行政区划级别查询行政区划数据

type AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel added in v1.2.0

type AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_platform_divisions_getdivisionbyname_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Results []string `json:"results,omitempty" xml:"results>string,omitempty"`
}

AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel is 根据中文名称与行政区划级别查询行政区划数据 成功返回结果

type AlitripPlatformDivisionsQuerybyparentidAPIRequest added in v1.2.0

type AlitripPlatformDivisionsQuerybyparentidAPIRequest struct {
	model.Params
	// contains filtered or unexported fields
}

AlitripPlatformDivisionsQuerybyparentidAPIRequest 根据父节点id查询下级行政区划数据 API请求 alitrip.platform.divisions.querybyparentid

根据行政区划id查询下一层级行政区划数据

func NewAlitripPlatformDivisionsQuerybyparentidRequest

func NewAlitripPlatformDivisionsQuerybyparentidRequest() *AlitripPlatformDivisionsQuerybyparentidAPIRequest

NewAlitripPlatformDivisionsQuerybyparentidRequest 初始化AlitripPlatformDivisionsQuerybyparentidAPIRequest对象

func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiMethodName added in v1.2.0

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiParams added in v1.2.0

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetParamLong added in v1.2.0

GetParamLong ParamLong Getter

func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripPlatformDivisionsQuerybyparentidAPIRequest) SetParamLong added in v1.2.0

SetParamLong is ParamLong Setter 行政区划父id

type AlitripPlatformDivisionsQuerybyparentidAPIResponse

type AlitripPlatformDivisionsQuerybyparentidAPIResponse struct {
	model.CommonResponse
	AlitripPlatformDivisionsQuerybyparentidAPIResponseModel
}

AlitripPlatformDivisionsQuerybyparentidAPIResponse 根据父节点id查询下级行政区划数据 API返回值 alitrip.platform.divisions.querybyparentid

根据行政区划id查询下一层级行政区划数据

type AlitripPlatformDivisionsQuerybyparentidAPIResponseModel added in v1.2.0

type AlitripPlatformDivisionsQuerybyparentidAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_platform_divisions_querybyparentid_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlitripPlatformDivisionsQuerybyparentidResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripPlatformDivisionsQuerybyparentidAPIResponseModel is 根据父节点id查询下级行政区划数据 成功返回结果

type AlitripPlatformDivisionsQuerybyparentidResult

type AlitripPlatformDivisionsQuerybyparentidResult struct {
	// mapping code
	MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"`
	// msgCode
	MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"`
	// msgInfo
	MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,omitempty"`
	// http status code
	HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"`
	// model
	Model *TrdiDivisionBasicListVo `json:"model,omitempty" xml:"model,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlitripPlatformDivisionsQuerybyparentidResult 结构体

type TrdiDivisionBasicListVo

type TrdiDivisionBasicListVo struct {
	// model
	List []TrdiDivisionBasicVo `json:"list,omitempty" xml:"list>trdi_division_basic_vo,omitempty"`
}

TrdiDivisionBasicListVo 结构体

type TrdiDivisionBasicVo

type TrdiDivisionBasicVo struct {
	// 国家码
	CountryCode2 string `json:"country_code2,omitempty" xml:"country_code2,omitempty"`
	// 国家名称
	CountryName string `json:"country_name,omitempty" xml:"country_name,omitempty"`
	// 纬度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 经度
	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 简称
	NameAbbr string `json:"name_abbr,omitempty" xml:"name_abbr,omitempty"`
	// 英文名称
	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`
	// 拼音
	Pinyin string `json:"pinyin,omitempty" xml:"pinyin,omitempty"`
	// 简拼
	Py string `json:"py,omitempty" xml:"py,omitempty"`
	// 层级树id
	TreeId string `json:"tree_id,omitempty" xml:"tree_id,omitempty"`
	// 层级树名称
	TreeName string `json:"tree_name,omitempty" xml:"tree_name,omitempty"`
	// 行政区划id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
	// 省
	Level int64 `json:"level,omitempty" xml:"level,omitempty"`
	// 父节点id
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
}

TrdiDivisionBasicVo 结构体

Jump to

Keyboard shortcuts

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