flightuppc

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

飞猪机票前台类目 model

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlitripFlightBasicDataCityQueryAllAPIRequest added in v1.2.0

type AlitripFlightBasicDataCityQueryAllAPIRequest struct {
	model.Params
}

机票基础数据城市数据查询 API请求 alitrip.flight.basic.data.city.queryAll

机票基础数据城市数据查询top接口

func NewAlitripFlightBasicDataCityQueryAllRequest

func NewAlitripFlightBasicDataCityQueryAllRequest() *AlitripFlightBasicDataCityQueryAllAPIRequest

初始化AlitripFlightBasicDataCityQueryAllAPIRequest对象

func (AlitripFlightBasicDataCityQueryAllAPIRequest) GetApiMethodName added in v1.2.0

IRequest interface 方法, 获取Api method

func (AlitripFlightBasicDataCityQueryAllAPIRequest) GetApiParams added in v1.2.0

IRequest interface 方法, 获取API参数

type AlitripFlightBasicDataCityQueryAllAPIResponse

type AlitripFlightBasicDataCityQueryAllAPIResponse struct {
	model.CommonResponse
	AlitripFlightBasicDataCityQueryAllAPIResponseModel
}

机票基础数据城市数据查询 API返回值 alitrip.flight.basic.data.city.queryAll

机票基础数据城市数据查询top接口

type AlitripFlightBasicDataCityQueryAllAPIResponseModel added in v1.2.0

type AlitripFlightBasicDataCityQueryAllAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_flight_basic_data_city_queryAll_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回包装类
	Result *BaseResult `json:"result,omitempty" xml:"result,omitempty"`
}

机票基础数据城市数据查询 成功返回结果

type AlitripFlightBasicDataCityQueryAllData

type AlitripFlightBasicDataCityQueryAllData struct {
	// 城市名称
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 城市三字码
	CityCode string `json:"city_code,omitempty" xml:"city_code,omitempty"`
	// 城市通航状态
	NavigableStatus int64 `json:"navigable_status,omitempty" xml:"navigable_status,omitempty"`
	// 搜索热度
	SearchHeat int64 `json:"search_heat,omitempty" xml:"search_heat,omitempty"`
	// 航空大区
	AirZone string `json:"air_zone,omitempty" xml:"air_zone,omitempty"`
	// 城市对应国家
	CountryName string `json:"country_name,omitempty" xml:"country_name,omitempty"`
	// 城市简拼
	CityJp string `json:"city_jp,omitempty" xml:"city_jp,omitempty"`
	// 夏日时区区间
	TimeZoneSummerPeriod string `json:"time_zone_summer_period,omitempty" xml:"time_zone_summer_period,omitempty"`
	// 夏日时区
	TimeZoneSummer string `json:"time_zone_summer,omitempty" xml:"time_zone_summer,omitempty"`
	// 标准时区
	TimeZoneStandard string `json:"time_zone_standard,omitempty" xml:"time_zone_standard,omitempty"`
	// 大洲
	Continent string `json:"continent,omitempty" xml:"continent,omitempty"`
	// 省/州名称
	ProvinceName string `json:"province_name,omitempty" xml:"province_name,omitempty"`
	// 国家二字码
	CountryCode string `json:"country_code,omitempty" xml:"country_code,omitempty"`
	// 省/州二字码
	ProvinceCode string `json:"province_code,omitempty" xml:"province_code,omitempty"`
	// 首字母
	CityCapital string `json:"city_capital,omitempty" xml:"city_capital,omitempty"`
	// 英文名称
	EnglishName string `json:"english_name,omitempty" xml:"english_name,omitempty"`
	// 城市全拼
	CityPy string `json:"city_py,omitempty" xml:"city_py,omitempty"`
	// 次区代码
	IataCode string `json:"iata_code,omitempty" xml:"iata_code,omitempty"`
	// 次区
	SecdZone string `json:"secd_zone,omitempty" xml:"secd_zone,omitempty"`
	// OAG来源的夏令时
	OagSummerPeriod string `json:"oag_summer_period,omitempty" xml:"oag_summer_period,omitempty"`
	// 小次区
	MiniIataCode string `json:"mini_iata_code,omitempty" xml:"mini_iata_code,omitempty"`
}

AlitripFlightBasicDataCityQueryAllData

type AlitripUppcMemberGainAPIRequest added in v1.2.0

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

航司权益数据回流 API请求 alitrip.uppc.member.gain

航司权益数据回流

func NewAlitripUppcMemberGainRequest

func NewAlitripUppcMemberGainRequest() *AlitripUppcMemberGainAPIRequest

初始化AlitripUppcMemberGainAPIRequest对象

func (AlitripUppcMemberGainAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripUppcMemberGainAPIRequest) GetApiParams added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripUppcMemberGainAPIRequest) GetErrorMsg added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetErrorMsg() string

ErrorMsg Getter

func (AlitripUppcMemberGainAPIRequest) GetRequestId added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetRequestId() string

RequestId Getter

func (AlitripUppcMemberGainAPIRequest) GetResponseJson added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetResponseJson() string

ResponseJson Getter

func (AlitripUppcMemberGainAPIRequest) GetStatusCode added in v1.2.0

func (r AlitripUppcMemberGainAPIRequest) GetStatusCode() int64

StatusCode Getter

func (*AlitripUppcMemberGainAPIRequest) SetErrorMsg added in v1.2.0

func (r *AlitripUppcMemberGainAPIRequest) SetErrorMsg(_errorMsg string) error

ErrorMsg Setter 错误提示

func (*AlitripUppcMemberGainAPIRequest) SetRequestId added in v1.2.0

func (r *AlitripUppcMemberGainAPIRequest) SetRequestId(_requestId string) error

RequestId Setter 请求唯一标识

func (*AlitripUppcMemberGainAPIRequest) SetResponseJson added in v1.2.0

func (r *AlitripUppcMemberGainAPIRequest) SetResponseJson(_responseJson string) error

ResponseJson Setter 权益截止时间(扩展字段)

func (*AlitripUppcMemberGainAPIRequest) SetStatusCode added in v1.2.0

func (r *AlitripUppcMemberGainAPIRequest) SetStatusCode(_statusCode int64) error

StatusCode Setter 查询成功

type AlitripUppcMemberGainAPIResponse

type AlitripUppcMemberGainAPIResponse struct {
	model.CommonResponse
	AlitripUppcMemberGainAPIResponseModel
}

航司权益数据回流 API返回值 alitrip.uppc.member.gain

航司权益数据回流

type AlitripUppcMemberGainAPIResponseModel added in v1.2.0

type AlitripUppcMemberGainAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_uppc_member_gain_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// result
	Result *ResultDo `json:"result,omitempty" xml:"result,omitempty"`
}

航司权益数据回流 成功返回结果

type BaseResult

type BaseResult struct {
	// 错误信息
	ErrorMessage string `json:"error_message,omitempty" xml:"error_message,omitempty"`
	// 数据实体
	DataList []AlitripFlightBasicDataCityQueryAllData `json:"data_list,omitempty" xml:"data_list>alitrip_flight_basic_data_city_query_all_data,omitempty"`
	// 结果码 0成功
	ResultCode int64 `json:"result_code,omitempty" xml:"result_code,omitempty"`
	// 请求唯一标识
	QueryId string `json:"query_id,omitempty" xml:"query_id,omitempty"`
}

BaseResult

type ResultDo added in v1.2.0

type ResultDo struct {
	// 是否回流成功
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
	// 错误信息
	MsgForClient string `json:"msg_for_client,omitempty" xml:"msg_for_client,omitempty"`
	// 返回code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 错误信息
	Msg string `json:"msg,omitempty" xml:"msg,omitempty"`
	// 是否执行回流成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

ResultDo

Jump to

Keyboard shortcuts

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