Documentation ¶
Overview ¶
Package alitripdivisions 包含飞猪行政区划API相关结构体
Index ¶
- type AlitripplatformdivisionsgetdivisionbynameAPIRequest
- func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiMethodName() string
- func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiParams(params url.Values)
- func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetLevel() int64
- func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetName() string
- func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetRawParams() model.Params
- func (r *AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetLevel(_level int64) error
- func (r *AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetName(_name string) error
- type AlitripplatformdivisionsgetdivisionbynameAPIResponse
- type AlitripplatformdivisionsgetdivisionbynameAPIResponseModel
- type AlitripplatformdivisionsquerybyparentidAPIRequest
- func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiMethodName() string
- func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiParams(params url.Values)
- func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetParamLong() int64
- func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetRawParams() model.Params
- func (r *AlitripplatformdivisionsquerybyparentidAPIRequest) SetParamLong(_paramLong int64) error
- type AlitripplatformdivisionsquerybyparentidAPIResponse
- type AlitripplatformdivisionsquerybyparentidAPIResponseModel
- type AlitripplatformdivisionsquerybyparentidResult
- type TrdiDivisionBasicListVo
- type TrdiDivisionBasicVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlitripplatformdivisionsgetdivisionbynameAPIRequest ¶ added in v1.3.1
type AlitripplatformdivisionsgetdivisionbynameAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripplatformdivisionsgetdivisionbynameAPIRequest 根据中文名称与行政区划级别查询行政区划数据 API请求 alitrip.platform.divisions.getdivisionbyname
根据中文名称与行政区划级别查询行政区划数据
func NewAlitripplatformdivisionsgetdivisionbynameRequest ¶ added in v1.3.1
func NewAlitripplatformdivisionsgetdivisionbynameRequest() *AlitripplatformdivisionsgetdivisionbynameAPIRequest
NewAlitripplatformdivisionsgetdivisionbynameRequest 初始化AlitripplatformdivisionsgetdivisionbynameAPIRequest对象
func (AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetLevel ¶ added in v1.3.1
func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetLevel() int64
GetLevel Level Getter
func (AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetName ¶ added in v1.3.1
func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetName() string
GetName Name Getter
func (AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlitripplatformdivisionsgetdivisionbynameAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetLevel ¶ added in v1.3.1
func (r *AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetLevel(_level int64) error
SetLevel is Level Setter 行政区划级别ALL(0, "全部"), CONTINENT(1, "大洲"), COUNTRY(2, "国家"), PROVINCE(3, "省份"), CITY(4, "城市"), DISTRICT(5, "区县"), STREET(6, "街道")
func (*AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetName ¶ added in v1.3.1
func (r *AlitripplatformdivisionsgetdivisionbynameAPIRequest) SetName(_name string) error
SetName is Name Setter 行政区划名称
type AlitripplatformdivisionsgetdivisionbynameAPIResponse ¶ added in v1.3.1
type AlitripplatformdivisionsgetdivisionbynameAPIResponse struct { model.CommonResponse AlitripplatformdivisionsgetdivisionbynameAPIResponseModel }
AlitripplatformdivisionsgetdivisionbynameAPIResponse 根据中文名称与行政区划级别查询行政区划数据 API返回值 alitrip.platform.divisions.getdivisionbyname
根据中文名称与行政区划级别查询行政区划数据
type AlitripplatformdivisionsgetdivisionbynameAPIResponseModel ¶ added in v1.3.1
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.3.1
type AlitripplatformdivisionsquerybyparentidAPIRequest struct { model.Params // contains filtered or unexported fields }
AlitripplatformdivisionsquerybyparentidAPIRequest 根据父节点id查询下级行政区划数据 API请求 alitrip.platform.divisions.querybyparentid
根据行政区划id查询下一层级行政区划数据
func NewAlitripplatformdivisionsquerybyparentidRequest ¶ added in v1.3.1
func NewAlitripplatformdivisionsquerybyparentidRequest() *AlitripplatformdivisionsquerybyparentidAPIRequest
NewAlitripplatformdivisionsquerybyparentidRequest 初始化AlitripplatformdivisionsquerybyparentidAPIRequest对象
func (AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiMethodName ¶ added in v1.3.1
func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiParams ¶ added in v1.3.1
func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripplatformdivisionsquerybyparentidAPIRequest) GetParamLong ¶ added in v1.3.1
func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetParamLong() int64
GetParamLong ParamLong Getter
func (AlitripplatformdivisionsquerybyparentidAPIRequest) GetRawParams ¶ added in v1.3.1
func (r AlitripplatformdivisionsquerybyparentidAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripplatformdivisionsquerybyparentidAPIRequest) SetParamLong ¶ added in v1.3.1
func (r *AlitripplatformdivisionsquerybyparentidAPIRequest) SetParamLong(_paramLong int64) error
SetParamLong is ParamLong Setter 行政区划父id
type AlitripplatformdivisionsquerybyparentidAPIResponse ¶ added in v1.3.1
type AlitripplatformdivisionsquerybyparentidAPIResponse struct { model.CommonResponse AlitripplatformdivisionsquerybyparentidAPIResponseModel }
AlitripplatformdivisionsquerybyparentidAPIResponse 根据父节点id查询下级行政区划数据 API返回值 alitrip.platform.divisions.querybyparentid
根据行政区划id查询下一层级行政区划数据
type AlitripplatformdivisionsquerybyparentidAPIResponseModel ¶ added in v1.3.1
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 ¶ added in v1.3.1
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 结构体
Source Files ¶
- AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go
- AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go
- AlitripPlatformDivisionsQuerybyparentidAPIRequest.go
- AlitripPlatformDivisionsQuerybyparentidAPIResponse.go
- AlitripPlatformDivisionsQuerybyparentidResult.go
- TrdiDivisionBasicListVo.go
- TrdiDivisionBasicVo.go
- doc.go