Documentation ¶
Overview ¶
飞猪行政区划API model
Index ¶
- type AlitripPlatformDivisionsGetdivisionbynameAPIResponse
- type AlitripPlatformDivisionsGetdivisionbynameRequest
- func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiMethodName() string
- func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiParams() url.Values
- func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetLevel() int64
- func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetName() string
- func (r *AlitripPlatformDivisionsGetdivisionbynameRequest) SetLevel(level int64) error
- func (r *AlitripPlatformDivisionsGetdivisionbynameRequest) SetName(name string) error
- type AlitripPlatformDivisionsGetdivisionbynameResponse
- type AlitripPlatformDivisionsQuerybyparentidAPIResponse
- type AlitripPlatformDivisionsQuerybyparentidRequest
- func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetApiMethodName() string
- func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetApiParams() url.Values
- func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetParamLong() int64
- func (r *AlitripPlatformDivisionsQuerybyparentidRequest) SetParamLong(paramLong int64) error
- type AlitripPlatformDivisionsQuerybyparentidResponse
- type AlitripPlatformDivisionsQuerybyparentidResult
- type TrdiDivisionBasicListVo
- type TrdiDivisionBasicVo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlitripPlatformDivisionsGetdivisionbynameAPIResponse ¶
type AlitripPlatformDivisionsGetdivisionbynameAPIResponse struct { model.CommonResponse AlitripPlatformDivisionsGetdivisionbynameResponse }
根据中文名称与行政区划级别查询行政区划数据 API返回值 alitrip.platform.divisions.getdivisionbyname
根据中文名称与行政区划级别查询行政区划数据
type AlitripPlatformDivisionsGetdivisionbynameRequest ¶
type AlitripPlatformDivisionsGetdivisionbynameRequest struct { model.Params // contains filtered or unexported fields }
根据中文名称与行政区划级别查询行政区划数据 API请求 alitrip.platform.divisions.getdivisionbyname
根据中文名称与行政区划级别查询行政区划数据
func NewAlitripPlatformDivisionsGetdivisionbynameRequest ¶
func NewAlitripPlatformDivisionsGetdivisionbynameRequest() *AlitripPlatformDivisionsGetdivisionbynameRequest
初始化AlitripPlatformDivisionsGetdivisionbynameRequest对象
func (AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiMethodName ¶
func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiParams ¶
func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AlitripPlatformDivisionsGetdivisionbynameRequest) GetLevel ¶
func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetLevel() int64
Level Getter
func (AlitripPlatformDivisionsGetdivisionbynameRequest) GetName ¶
func (r AlitripPlatformDivisionsGetdivisionbynameRequest) GetName() string
Name Getter
func (*AlitripPlatformDivisionsGetdivisionbynameRequest) SetLevel ¶
func (r *AlitripPlatformDivisionsGetdivisionbynameRequest) SetLevel(level int64) error
Level Setter 行政区划级别ALL(0, "全部"), CONTINENT(1, "大洲"), COUNTRY(2, "国家"), PROVINCE(3, "省份"), CITY(4, "城市"), DISTRICT(5, "区县"), STREET(6, "街道")
func (*AlitripPlatformDivisionsGetdivisionbynameRequest) SetName ¶
func (r *AlitripPlatformDivisionsGetdivisionbynameRequest) SetName(name string) error
Name Setter 行政区划名称
type AlitripPlatformDivisionsGetdivisionbynameResponse ¶
type AlitripPlatformDivisionsGetdivisionbynameResponse 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"` }
根据中文名称与行政区划级别查询行政区划数据 成功返回结果
type AlitripPlatformDivisionsQuerybyparentidAPIResponse ¶
type AlitripPlatformDivisionsQuerybyparentidAPIResponse struct { model.CommonResponse AlitripPlatformDivisionsQuerybyparentidResponse }
根据父节点id查询下级行政区划数据 API返回值 alitrip.platform.divisions.querybyparentid
根据行政区划id查询下一层级行政区划数据
type AlitripPlatformDivisionsQuerybyparentidRequest ¶
type AlitripPlatformDivisionsQuerybyparentidRequest struct { model.Params // contains filtered or unexported fields }
根据父节点id查询下级行政区划数据 API请求 alitrip.platform.divisions.querybyparentid
根据行政区划id查询下一层级行政区划数据
func NewAlitripPlatformDivisionsQuerybyparentidRequest ¶
func NewAlitripPlatformDivisionsQuerybyparentidRequest() *AlitripPlatformDivisionsQuerybyparentidRequest
初始化AlitripPlatformDivisionsQuerybyparentidRequest对象
func (AlitripPlatformDivisionsQuerybyparentidRequest) GetApiMethodName ¶
func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetApiMethodName() string
IRequest interface 方法, 获取Api method
func (AlitripPlatformDivisionsQuerybyparentidRequest) GetApiParams ¶
func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetApiParams() url.Values
IRequest interface 方法, 获取API参数
func (AlitripPlatformDivisionsQuerybyparentidRequest) GetParamLong ¶
func (r AlitripPlatformDivisionsQuerybyparentidRequest) GetParamLong() int64
ParamLong Getter
func (*AlitripPlatformDivisionsQuerybyparentidRequest) SetParamLong ¶
func (r *AlitripPlatformDivisionsQuerybyparentidRequest) SetParamLong(paramLong int64) error
ParamLong Setter 行政区划父id
type AlitripPlatformDivisionsQuerybyparentidResponse ¶
type AlitripPlatformDivisionsQuerybyparentidResponse 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"` }
根据父节点id查询下级行政区划数据 成功返回结果
type AlitripPlatformDivisionsQuerybyparentidResult ¶
type AlitripPlatformDivisionsQuerybyparentidResult struct { // http status code HttpStatusCode int64 `json:"http_status_code,omitempty" xml:"http_status_code,omitempty"` // mapping code MappingCode string `json:"mapping_code,omitempty" xml:"mapping_code,omitempty"` // model Model *TrdiDivisionBasicListVo `json:"model,omitempty" xml:"model,omitempty"` // msgCode MsgCode string `json:"msg_code,omitempty" xml:"msg_code,omitempty"` // msgInfo MsgInfo string `json:"msg_info,omitempty" xml:"msg_info,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"` // 行政区划id Id int64 `json:"id,omitempty" xml:"id,omitempty"` // 纬度 Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"` // 省 Level int64 `json:"level,omitempty" xml:"level,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"` // 父节点id ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,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"` }
TrdiDivisionBasicVo
Source Files ¶
- AlitripPlatformDivisionsGetdivisionbynameRequest.go
- AlitripPlatformDivisionsGetdivisionbynameResponse.go
- AlitripPlatformDivisionsQuerybyparentidRequest.go
- AlitripPlatformDivisionsQuerybyparentidResponse.go
- AlitripPlatformDivisionsQuerybyparentidResult.go
- TrdiDivisionBasicListVo.go
- TrdiDivisionBasicVo.go
- doc.go