Documentation ¶
Overview ¶
Package alitripdivisions 包含飞猪行政区划API相关结构体
Index ¶
- func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIRequest(v *AlitripPlatformDivisionsGetdivisionbynameAPIRequest)
- func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIResponse(v *AlitripPlatformDivisionsGetdivisionbynameAPIResponse)
- func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIRequest(v *AlitripPlatformDivisionsQuerybyparentidAPIRequest)
- func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIResponse(v *AlitripPlatformDivisionsQuerybyparentidAPIResponse)
- func ReleaseAlitripPlatformDivisionsQuerybyparentidResult(v *AlitripPlatformDivisionsQuerybyparentidResult)
- func ReleaseTrdiDivisionBasicListVo(v *TrdiDivisionBasicListVo)
- func ReleaseTrdiDivisionBasicVo(v *TrdiDivisionBasicVo)
- 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) Reset()
- 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) Reset()
- 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 ¶
func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIRequest ¶ added in v1.3.4
func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIRequest(v *AlitripPlatformDivisionsGetdivisionbynameAPIRequest)
ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIRequest 将 AlitripPlatformDivisionsGetdivisionbynameAPIRequest 放入 sync.Pool
func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIResponse ¶ added in v1.3.4
func ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIResponse(v *AlitripPlatformDivisionsGetdivisionbynameAPIResponse)
ReleaseAlitripPlatformDivisionsGetdivisionbynameAPIResponse 将 AlitripPlatformDivisionsGetdivisionbynameAPIResponse 保存到 sync.Pool
func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIRequest ¶ added in v1.3.4
func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIRequest(v *AlitripPlatformDivisionsQuerybyparentidAPIRequest)
ReleaseAlitripPlatformDivisionsQuerybyparentidAPIRequest 将 AlitripPlatformDivisionsQuerybyparentidAPIRequest 放入 sync.Pool
func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIResponse ¶ added in v1.3.4
func ReleaseAlitripPlatformDivisionsQuerybyparentidAPIResponse(v *AlitripPlatformDivisionsQuerybyparentidAPIResponse)
ReleaseAlitripPlatformDivisionsQuerybyparentidAPIResponse 将 AlitripPlatformDivisionsQuerybyparentidAPIResponse 保存到 sync.Pool
func ReleaseAlitripPlatformDivisionsQuerybyparentidResult ¶ added in v1.3.4
func ReleaseAlitripPlatformDivisionsQuerybyparentidResult(v *AlitripPlatformDivisionsQuerybyparentidResult)
ReleaseAlitripPlatformDivisionsQuerybyparentidResult 释放AlitripPlatformDivisionsQuerybyparentidResult
func ReleaseTrdiDivisionBasicListVo ¶ added in v1.3.4
func ReleaseTrdiDivisionBasicListVo(v *TrdiDivisionBasicListVo)
ReleaseTrdiDivisionBasicListVo 释放TrdiDivisionBasicListVo
func ReleaseTrdiDivisionBasicVo ¶ added in v1.3.4
func ReleaseTrdiDivisionBasicVo(v *TrdiDivisionBasicVo)
ReleaseTrdiDivisionBasicVo 释放TrdiDivisionBasicVo
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 GetAlitripPlatformDivisionsGetdivisionbynameAPIRequest ¶ added in v1.3.4
func GetAlitripPlatformDivisionsGetdivisionbynameAPIRequest() *AlitripPlatformDivisionsGetdivisionbynameAPIRequest
GetAlitripPlatformDivisionsGetdivisionbynameRequest 从 sync.Pool 获取 AlitripPlatformDivisionsGetdivisionbynameAPIRequest
func NewAlitripPlatformDivisionsGetdivisionbynameRequest ¶
func NewAlitripPlatformDivisionsGetdivisionbynameRequest() *AlitripPlatformDivisionsGetdivisionbynameAPIRequest
NewAlitripPlatformDivisionsGetdivisionbynameRequest 初始化AlitripPlatformDivisionsGetdivisionbynameAPIRequest对象
func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetLevel ¶ added in v1.2.0
func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetLevel() int64
GetLevel Level Getter
func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetName ¶ added in v1.2.0
func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetName() string
GetName Name Getter
func (AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripPlatformDivisionsGetdivisionbynameAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripPlatformDivisionsGetdivisionbynameAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripPlatformDivisionsGetdivisionbynameAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetLevel ¶ added in v1.2.0
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.2.0
func (r *AlitripPlatformDivisionsGetdivisionbynameAPIRequest) SetName(_name string) error
SetName is Name Setter 行政区划名称
type AlitripPlatformDivisionsGetdivisionbynameAPIResponse ¶
type AlitripPlatformDivisionsGetdivisionbynameAPIResponse struct { model.CommonResponse AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel }
AlitripPlatformDivisionsGetdivisionbynameAPIResponse 根据中文名称与行政区划级别查询行政区划数据 API返回值 alitrip.platform.divisions.getdivisionbyname
根据中文名称与行政区划级别查询行政区划数据
func GetAlitripPlatformDivisionsGetdivisionbynameAPIResponse ¶ added in v1.3.4
func GetAlitripPlatformDivisionsGetdivisionbynameAPIResponse() *AlitripPlatformDivisionsGetdivisionbynameAPIResponse
GetAlitripPlatformDivisionsGetdivisionbynameAPIResponse 从 sync.Pool 获取 AlitripPlatformDivisionsGetdivisionbynameAPIResponse
func (*AlitripPlatformDivisionsGetdivisionbynameAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripPlatformDivisionsGetdivisionbynameAPIResponse) Reset()
Reset 清空结构体
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 根据中文名称与行政区划级别查询行政区划数据 成功返回结果
func (*AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripPlatformDivisionsGetdivisionbynameAPIResponseModel) Reset()
Reset 清空结构体
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 GetAlitripPlatformDivisionsQuerybyparentidAPIRequest ¶ added in v1.3.4
func GetAlitripPlatformDivisionsQuerybyparentidAPIRequest() *AlitripPlatformDivisionsQuerybyparentidAPIRequest
GetAlitripPlatformDivisionsQuerybyparentidRequest 从 sync.Pool 获取 AlitripPlatformDivisionsQuerybyparentidAPIRequest
func NewAlitripPlatformDivisionsQuerybyparentidRequest ¶
func NewAlitripPlatformDivisionsQuerybyparentidRequest() *AlitripPlatformDivisionsQuerybyparentidAPIRequest
NewAlitripPlatformDivisionsQuerybyparentidRequest 初始化AlitripPlatformDivisionsQuerybyparentidAPIRequest对象
func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiMethodName ¶ added in v1.2.0
func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiMethodName() string
GetApiMethodName IRequest interface 方法, 获取Api method
func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiParams ¶ added in v1.2.0
func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetApiParams(params url.Values)
GetApiParams IRequest interface 方法, 获取API参数
func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetParamLong ¶ added in v1.2.0
func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetParamLong() int64
GetParamLong ParamLong Getter
func (AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetRawParams ¶ added in v1.2.8
func (r AlitripPlatformDivisionsQuerybyparentidAPIRequest) GetRawParams() model.Params
GetRawParams IRequest interface 方法, 获取API原始参数
func (*AlitripPlatformDivisionsQuerybyparentidAPIRequest) Reset ¶ added in v1.3.4
func (r *AlitripPlatformDivisionsQuerybyparentidAPIRequest) Reset()
Reset IRequest interface 方法, 清空结构体
func (*AlitripPlatformDivisionsQuerybyparentidAPIRequest) SetParamLong ¶ added in v1.2.0
func (r *AlitripPlatformDivisionsQuerybyparentidAPIRequest) SetParamLong(_paramLong int64) error
SetParamLong is ParamLong Setter 行政区划父id
type AlitripPlatformDivisionsQuerybyparentidAPIResponse ¶
type AlitripPlatformDivisionsQuerybyparentidAPIResponse struct { model.CommonResponse AlitripPlatformDivisionsQuerybyparentidAPIResponseModel }
AlitripPlatformDivisionsQuerybyparentidAPIResponse 根据父节点id查询下级行政区划数据 API返回值 alitrip.platform.divisions.querybyparentid
根据行政区划id查询下一层级行政区划数据
func GetAlitripPlatformDivisionsQuerybyparentidAPIResponse ¶ added in v1.3.4
func GetAlitripPlatformDivisionsQuerybyparentidAPIResponse() *AlitripPlatformDivisionsQuerybyparentidAPIResponse
GetAlitripPlatformDivisionsQuerybyparentidAPIResponse 从 sync.Pool 获取 AlitripPlatformDivisionsQuerybyparentidAPIResponse
func (*AlitripPlatformDivisionsQuerybyparentidAPIResponse) Reset ¶ added in v1.3.4
func (m *AlitripPlatformDivisionsQuerybyparentidAPIResponse) Reset()
Reset 清空结构体
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查询下级行政区划数据 成功返回结果
func (*AlitripPlatformDivisionsQuerybyparentidAPIResponseModel) Reset ¶ added in v1.3.4
func (m *AlitripPlatformDivisionsQuerybyparentidAPIResponseModel) Reset()
Reset 清空结构体
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 结构体
func GetAlitripPlatformDivisionsQuerybyparentidResult ¶ added in v1.3.4
func GetAlitripPlatformDivisionsQuerybyparentidResult() *AlitripPlatformDivisionsQuerybyparentidResult
GetAlitripPlatformDivisionsQuerybyparentidResult() 从对象池中获取AlitripPlatformDivisionsQuerybyparentidResult
type TrdiDivisionBasicListVo ¶
type TrdiDivisionBasicListVo struct { // model List []TrdiDivisionBasicVo `json:"list,omitempty" xml:"list>trdi_division_basic_vo,omitempty"` }
TrdiDivisionBasicListVo 结构体
func GetTrdiDivisionBasicListVo ¶ added in v1.3.4
func GetTrdiDivisionBasicListVo() *TrdiDivisionBasicListVo
GetTrdiDivisionBasicListVo() 从对象池中获取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 结构体
func GetTrdiDivisionBasicVo ¶ added in v1.3.4
func GetTrdiDivisionBasicVo() *TrdiDivisionBasicVo
GetTrdiDivisionBasicVo() 从对象池中获取TrdiDivisionBasicVo
Source Files ¶
- AlitripPlatformDivisionsGetdivisionbynameAPIRequest.go
- AlitripPlatformDivisionsGetdivisionbynameAPIResponse.go
- AlitripPlatformDivisionsQuerybyparentidAPIRequest.go
- AlitripPlatformDivisionsQuerybyparentidAPIResponse.go
- AlitripPlatformDivisionsQuerybyparentidResult.go
- TrdiDivisionBasicListVo.go
- TrdiDivisionBasicVo.go
- doc.go