flightuppc

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 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 AlitripFlightBasicDataCityQueryAllAPIResponse

type AlitripFlightBasicDataCityQueryAllAPIResponse struct {
	model.CommonResponse
	AlitripFlightBasicDataCityQueryAllResponse
}

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

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

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 AlitripFlightBasicDataCityQueryAllRequest

type AlitripFlightBasicDataCityQueryAllRequest struct {
	model.Params
}

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

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

func NewAlitripFlightBasicDataCityQueryAllRequest

func NewAlitripFlightBasicDataCityQueryAllRequest() *AlitripFlightBasicDataCityQueryAllRequest

初始化AlitripFlightBasicDataCityQueryAllRequest对象

func (AlitripFlightBasicDataCityQueryAllRequest) GetApiMethodName

IRequest interface 方法, 获取Api method

func (AlitripFlightBasicDataCityQueryAllRequest) GetApiParams

IRequest interface 方法, 获取API参数

type AlitripFlightBasicDataCityQueryAllResponse

type AlitripFlightBasicDataCityQueryAllResponse 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 AlitripUppcMemberGainAPIResponse

type AlitripUppcMemberGainAPIResponse struct {
	model.CommonResponse
	AlitripUppcMemberGainResponse
}

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

航司权益数据回流

type AlitripUppcMemberGainRequest

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

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

航司权益数据回流

func NewAlitripUppcMemberGainRequest

func NewAlitripUppcMemberGainRequest() *AlitripUppcMemberGainRequest

初始化AlitripUppcMemberGainRequest对象

func (AlitripUppcMemberGainRequest) GetApiMethodName

func (r AlitripUppcMemberGainRequest) GetApiMethodName() string

IRequest interface 方法, 获取Api method

func (AlitripUppcMemberGainRequest) GetApiParams

func (r AlitripUppcMemberGainRequest) GetApiParams() url.Values

IRequest interface 方法, 获取API参数

func (AlitripUppcMemberGainRequest) GetErrorMsg

func (r AlitripUppcMemberGainRequest) GetErrorMsg() string

ErrorMsg Getter

func (AlitripUppcMemberGainRequest) GetRequestId

func (r AlitripUppcMemberGainRequest) GetRequestId() string

RequestId Getter

func (AlitripUppcMemberGainRequest) GetResponseJson

func (r AlitripUppcMemberGainRequest) GetResponseJson() string

ResponseJson Getter

func (AlitripUppcMemberGainRequest) GetStatusCode

func (r AlitripUppcMemberGainRequest) GetStatusCode() int64

StatusCode Getter

func (*AlitripUppcMemberGainRequest) SetErrorMsg

func (r *AlitripUppcMemberGainRequest) SetErrorMsg(errorMsg string) error

ErrorMsg Setter 错误提示

func (*AlitripUppcMemberGainRequest) SetRequestId

func (r *AlitripUppcMemberGainRequest) SetRequestId(requestId string) error

RequestId Setter 请求唯一标识

func (*AlitripUppcMemberGainRequest) SetResponseJson

func (r *AlitripUppcMemberGainRequest) SetResponseJson(responseJson string) error

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

func (*AlitripUppcMemberGainRequest) SetStatusCode

func (r *AlitripUppcMemberGainRequest) SetStatusCode(statusCode int64) error

StatusCode Setter 查询成功

type AlitripUppcMemberGainResponse

type AlitripUppcMemberGainResponse 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

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