rail

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package rail 包含国际火车票API相关结构体

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReleaseAlitripRailIrCarrierGetAPIRequest added in v1.3.4

func ReleaseAlitripRailIrCarrierGetAPIRequest(v *AlitripRailIrCarrierGetAPIRequest)

ReleaseAlitripRailIrCarrierGetAPIRequest 将 AlitripRailIrCarrierGetAPIRequest 放入 sync.Pool

func ReleaseAlitripRailIrCarrierGetAPIResponse added in v1.3.4

func ReleaseAlitripRailIrCarrierGetAPIResponse(v *AlitripRailIrCarrierGetAPIResponse)

ReleaseAlitripRailIrCarrierGetAPIResponse 将 AlitripRailIrCarrierGetAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailIrDivisionGetAPIRequest added in v1.3.4

func ReleaseAlitripRailIrDivisionGetAPIRequest(v *AlitripRailIrDivisionGetAPIRequest)

ReleaseAlitripRailIrDivisionGetAPIRequest 将 AlitripRailIrDivisionGetAPIRequest 放入 sync.Pool

func ReleaseAlitripRailIrDivisionGetAPIResponse added in v1.3.4

func ReleaseAlitripRailIrDivisionGetAPIResponse(v *AlitripRailIrDivisionGetAPIResponse)

ReleaseAlitripRailIrDivisionGetAPIResponse 将 AlitripRailIrDivisionGetAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailIrServiceGetAPIRequest added in v1.3.4

func ReleaseAlitripRailIrServiceGetAPIRequest(v *AlitripRailIrServiceGetAPIRequest)

ReleaseAlitripRailIrServiceGetAPIRequest 将 AlitripRailIrServiceGetAPIRequest 放入 sync.Pool

func ReleaseAlitripRailIrServiceGetAPIResponse added in v1.3.4

func ReleaseAlitripRailIrServiceGetAPIResponse(v *AlitripRailIrServiceGetAPIResponse)

ReleaseAlitripRailIrServiceGetAPIResponse 将 AlitripRailIrServiceGetAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailIrServiceGetResult added in v1.3.4

func ReleaseAlitripRailIrServiceGetResult(v *AlitripRailIrServiceGetResult)

ReleaseAlitripRailIrServiceGetResult 释放AlitripRailIrServiceGetResult

func ReleaseAlitripRailIrStationGetAPIRequest added in v1.3.4

func ReleaseAlitripRailIrStationGetAPIRequest(v *AlitripRailIrStationGetAPIRequest)

ReleaseAlitripRailIrStationGetAPIRequest 将 AlitripRailIrStationGetAPIRequest 放入 sync.Pool

func ReleaseAlitripRailIrStationGetAPIResponse added in v1.3.4

func ReleaseAlitripRailIrStationGetAPIResponse(v *AlitripRailIrStationGetAPIResponse)

ReleaseAlitripRailIrStationGetAPIResponse 将 AlitripRailIrStationGetAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailTradeCloseticketAPIRequest added in v1.3.4

func ReleaseAlitripRailTradeCloseticketAPIRequest(v *AlitripRailTradeCloseticketAPIRequest)

ReleaseAlitripRailTradeCloseticketAPIRequest 将 AlitripRailTradeCloseticketAPIRequest 放入 sync.Pool

func ReleaseAlitripRailTradeCloseticketAPIResponse added in v1.3.4

func ReleaseAlitripRailTradeCloseticketAPIResponse(v *AlitripRailTradeCloseticketAPIResponse)

ReleaseAlitripRailTradeCloseticketAPIResponse 将 AlitripRailTradeCloseticketAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailTradeCloseticketResultSet added in v1.3.4

func ReleaseAlitripRailTradeCloseticketResultSet(v *AlitripRailTradeCloseticketResultSet)

ReleaseAlitripRailTradeCloseticketResultSet 释放AlitripRailTradeCloseticketResultSet

func ReleaseAlitripRailTradeIssueticketAPIRequest added in v1.3.4

func ReleaseAlitripRailTradeIssueticketAPIRequest(v *AlitripRailTradeIssueticketAPIRequest)

ReleaseAlitripRailTradeIssueticketAPIRequest 将 AlitripRailTradeIssueticketAPIRequest 放入 sync.Pool

func ReleaseAlitripRailTradeIssueticketAPIResponse added in v1.3.4

func ReleaseAlitripRailTradeIssueticketAPIResponse(v *AlitripRailTradeIssueticketAPIResponse)

ReleaseAlitripRailTradeIssueticketAPIResponse 将 AlitripRailTradeIssueticketAPIResponse 保存到 sync.Pool

func ReleaseAlitripRailTradeIssueticketResultSet added in v1.3.4

func ReleaseAlitripRailTradeIssueticketResultSet(v *AlitripRailTradeIssueticketResultSet)

ReleaseAlitripRailTradeIssueticketResultSet 释放AlitripRailTradeIssueticketResultSet

func ReleaseModules added in v1.3.4

func ReleaseModules(v *Modules)

ReleaseModules 释放Modules

func ReleaseRailCarrierRs added in v1.3.4

func ReleaseRailCarrierRs(v *RailCarrierRs)

ReleaseRailCarrierRs 释放RailCarrierRs

func ReleaseRailDivisionRs added in v1.3.4

func ReleaseRailDivisionRs(v *RailDivisionRs)

ReleaseRailDivisionRs 释放RailDivisionRs

func ReleaseRailResultList added in v1.3.4

func ReleaseRailResultList(v *RailResultList)

ReleaseRailResultList 释放RailResultList

func ReleaseRailStationRs added in v1.3.4

func ReleaseRailStationRs(v *RailStationRs)

ReleaseRailStationRs 释放RailStationRs

Types

type AlitripRailIrCarrierGetAPIRequest added in v1.2.0

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

AlitripRailIrCarrierGetAPIRequest 国际火车票铁路承运公司查询 API请求 alitrip.rail.ir.carrier.get

国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射

func GetAlitripRailIrCarrierGetAPIRequest added in v1.3.4

func GetAlitripRailIrCarrierGetAPIRequest() *AlitripRailIrCarrierGetAPIRequest

GetAlitripRailIrCarrierGetRequest 从 sync.Pool 获取 AlitripRailIrCarrierGetAPIRequest

func NewAlitripRailIrCarrierGetRequest

func NewAlitripRailIrCarrierGetRequest() *AlitripRailIrCarrierGetAPIRequest

NewAlitripRailIrCarrierGetRequest 初始化AlitripRailIrCarrierGetAPIRequest对象

func (AlitripRailIrCarrierGetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailIrCarrierGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailIrCarrierGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailIrCarrierGetAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailIrCarrierGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailIrCarrierGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripRailIrCarrierGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailIrCarrierGetAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailIrCarrierGetAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 商家id

type AlitripRailIrCarrierGetAPIResponse

type AlitripRailIrCarrierGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrCarrierGetAPIResponseModel
}

AlitripRailIrCarrierGetAPIResponse 国际火车票铁路承运公司查询 API返回值 alitrip.rail.ir.carrier.get

国际火车票提供给代理商用于查询标准铁路承运公司carrier信息,用于代理商自己的carrier与飞猪平台的carrier做映射

func GetAlitripRailIrCarrierGetAPIResponse added in v1.3.4

func GetAlitripRailIrCarrierGetAPIResponse() *AlitripRailIrCarrierGetAPIResponse

GetAlitripRailIrCarrierGetAPIResponse 从 sync.Pool 获取 AlitripRailIrCarrierGetAPIResponse

func (*AlitripRailIrCarrierGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrCarrierGetAPIResponseModel added in v1.2.0

type AlitripRailIrCarrierGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_carrier_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result *RailCarrierRs `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailIrCarrierGetAPIResponseModel is 国际火车票铁路承运公司查询 成功返回结果

func (*AlitripRailIrCarrierGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrDivisionGetAPIRequest added in v1.2.0

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

AlitripRailIrDivisionGetAPIRequest 国际火车票标准城市查询 API请求 alitrip.rail.ir.division.get

国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。

func GetAlitripRailIrDivisionGetAPIRequest added in v1.3.4

func GetAlitripRailIrDivisionGetAPIRequest() *AlitripRailIrDivisionGetAPIRequest

GetAlitripRailIrDivisionGetRequest 从 sync.Pool 获取 AlitripRailIrDivisionGetAPIRequest

func NewAlitripRailIrDivisionGetRequest

func NewAlitripRailIrDivisionGetRequest() *AlitripRailIrDivisionGetAPIRequest

NewAlitripRailIrDivisionGetRequest 初始化AlitripRailIrDivisionGetAPIRequest对象

func (AlitripRailIrDivisionGetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailIrDivisionGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailIrDivisionGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailIrDivisionGetAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailIrDivisionGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailIrDivisionGetAPIRequest) GetLevel added in v1.2.0

GetLevel Level Getter

func (AlitripRailIrDivisionGetAPIRequest) GetPageIndex added in v1.2.0

func (r AlitripRailIrDivisionGetAPIRequest) GetPageIndex() int64

GetPageIndex PageIndex Getter

func (AlitripRailIrDivisionGetAPIRequest) GetPageSize added in v1.2.0

func (r AlitripRailIrDivisionGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (AlitripRailIrDivisionGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripRailIrDivisionGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailIrDivisionGetAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailIrDivisionGetAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 代理商id

func (*AlitripRailIrDivisionGetAPIRequest) SetLevel added in v1.2.0

func (r *AlitripRailIrDivisionGetAPIRequest) SetLevel(_level int64) error

SetLevel is Level Setter 层级,1洲,2是国家,3是省,4是市,5是区,6是街道/镇,7是村,8是逻辑行政区,境外火车票业务只需要市级别,传4就可以

func (*AlitripRailIrDivisionGetAPIRequest) SetPageIndex added in v1.2.0

func (r *AlitripRailIrDivisionGetAPIRequest) SetPageIndex(_pageIndex int64) error

SetPageIndex is PageIndex Setter 页数,从1开始

func (*AlitripRailIrDivisionGetAPIRequest) SetPageSize added in v1.2.0

func (r *AlitripRailIrDivisionGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数

type AlitripRailIrDivisionGetAPIResponse

type AlitripRailIrDivisionGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrDivisionGetAPIResponseModel
}

AlitripRailIrDivisionGetAPIResponse 国际火车票标准城市查询 API返回值 alitrip.rail.ir.division.get

国际火车票提供给代理商用于查询标准城市信息,全部城市数据量209530条,含除中国大陆以外的全部海外区域。 代理商通过分页查询的方式,拉取飞猪平台方全部境外标准城市,用于自身城市与飞猪平台城市的映射。

func GetAlitripRailIrDivisionGetAPIResponse added in v1.3.4

func GetAlitripRailIrDivisionGetAPIResponse() *AlitripRailIrDivisionGetAPIResponse

GetAlitripRailIrDivisionGetAPIResponse 从 sync.Pool 获取 AlitripRailIrDivisionGetAPIResponse

func (*AlitripRailIrDivisionGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrDivisionGetAPIResponseModel added in v1.2.0

type AlitripRailIrDivisionGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_division_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailIrDivisionGetAPIResponseModel is 国际火车票标准城市查询 成功返回结果

func (*AlitripRailIrDivisionGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrServiceGetAPIRequest added in v1.2.0

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

AlitripRailIrServiceGetAPIRequest 国际火车票仓位坐席查询 API请求 alitrip.rail.ir.service.get

国际火车票标准仓位坐席查询

func GetAlitripRailIrServiceGetAPIRequest added in v1.3.4

func GetAlitripRailIrServiceGetAPIRequest() *AlitripRailIrServiceGetAPIRequest

GetAlitripRailIrServiceGetRequest 从 sync.Pool 获取 AlitripRailIrServiceGetAPIRequest

func NewAlitripRailIrServiceGetRequest

func NewAlitripRailIrServiceGetRequest() *AlitripRailIrServiceGetAPIRequest

NewAlitripRailIrServiceGetRequest 初始化AlitripRailIrServiceGetAPIRequest对象

func (AlitripRailIrServiceGetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailIrServiceGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailIrServiceGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailIrServiceGetAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailIrServiceGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailIrServiceGetAPIRequest) GetBizType added in v1.2.0

GetBizType BizType Getter

func (AlitripRailIrServiceGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripRailIrServiceGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailIrServiceGetAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailIrServiceGetAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 代理商id

func (*AlitripRailIrServiceGetAPIRequest) SetBizType added in v1.2.0

func (r *AlitripRailIrServiceGetAPIRequest) SetBizType(_bizType int64) error

SetBizType is BizType Setter 6代表境外火车票

type AlitripRailIrServiceGetAPIResponse

type AlitripRailIrServiceGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrServiceGetAPIResponseModel
}

AlitripRailIrServiceGetAPIResponse 国际火车票仓位坐席查询 API返回值 alitrip.rail.ir.service.get

国际火车票标准仓位坐席查询

func GetAlitripRailIrServiceGetAPIResponse added in v1.3.4

func GetAlitripRailIrServiceGetAPIResponse() *AlitripRailIrServiceGetAPIResponse

GetAlitripRailIrServiceGetAPIResponse 从 sync.Pool 获取 AlitripRailIrServiceGetAPIResponse

func (*AlitripRailIrServiceGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrServiceGetAPIResponseModel added in v1.2.0

type AlitripRailIrServiceGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_service_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 接口返回model
	Result *AlitripRailIrServiceGetResult `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailIrServiceGetAPIResponseModel is 国际火车票仓位坐席查询 成功返回结果

func (*AlitripRailIrServiceGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrServiceGetResult

type AlitripRailIrServiceGetResult struct {
	// 仓位坐席数组
	Modules []Modules `json:"modules,omitempty" xml:"modules>modules,omitempty"`
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 错误信息
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 是否成功
	Success bool `json:"success,omitempty" xml:"success,omitempty"`
}

AlitripRailIrServiceGetResult 结构体

func GetAlitripRailIrServiceGetResult added in v1.3.4

func GetAlitripRailIrServiceGetResult() *AlitripRailIrServiceGetResult

GetAlitripRailIrServiceGetResult() 从对象池中获取AlitripRailIrServiceGetResult

type AlitripRailIrStationGetAPIRequest added in v1.2.0

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

AlitripRailIrStationGetAPIRequest 国际火车票标准车站查询 API请求 alitrip.rail.ir.station.get

国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射

func GetAlitripRailIrStationGetAPIRequest added in v1.3.4

func GetAlitripRailIrStationGetAPIRequest() *AlitripRailIrStationGetAPIRequest

GetAlitripRailIrStationGetRequest 从 sync.Pool 获取 AlitripRailIrStationGetAPIRequest

func NewAlitripRailIrStationGetRequest

func NewAlitripRailIrStationGetRequest() *AlitripRailIrStationGetAPIRequest

NewAlitripRailIrStationGetRequest 初始化AlitripRailIrStationGetAPIRequest对象

func (AlitripRailIrStationGetAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailIrStationGetAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailIrStationGetAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailIrStationGetAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailIrStationGetAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailIrStationGetAPIRequest) GetPageIndex added in v1.2.0

func (r AlitripRailIrStationGetAPIRequest) GetPageIndex() int64

GetPageIndex PageIndex Getter

func (AlitripRailIrStationGetAPIRequest) GetPageSize added in v1.2.0

func (r AlitripRailIrStationGetAPIRequest) GetPageSize() int64

GetPageSize PageSize Getter

func (AlitripRailIrStationGetAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (*AlitripRailIrStationGetAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailIrStationGetAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailIrStationGetAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 商家id

func (*AlitripRailIrStationGetAPIRequest) SetPageIndex added in v1.2.0

func (r *AlitripRailIrStationGetAPIRequest) SetPageIndex(_pageIndex int64) error

SetPageIndex is PageIndex Setter 页数 从1开始

func (*AlitripRailIrStationGetAPIRequest) SetPageSize added in v1.2.0

func (r *AlitripRailIrStationGetAPIRequest) SetPageSize(_pageSize int64) error

SetPageSize is PageSize Setter 每页条数

type AlitripRailIrStationGetAPIResponse

type AlitripRailIrStationGetAPIResponse struct {
	model.CommonResponse
	AlitripRailIrStationGetAPIResponseModel
}

AlitripRailIrStationGetAPIResponse 国际火车票标准车站查询 API返回值 alitrip.rail.ir.station.get

国际火车票提供给代理商用于查询标准车站信息,用于代理商对自己的车站与飞猪平台的车站做映射

func GetAlitripRailIrStationGetAPIResponse added in v1.3.4

func GetAlitripRailIrStationGetAPIResponse() *AlitripRailIrStationGetAPIResponse

GetAlitripRailIrStationGetAPIResponse 从 sync.Pool 获取 AlitripRailIrStationGetAPIResponse

func (*AlitripRailIrStationGetAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailIrStationGetAPIResponseModel added in v1.2.0

type AlitripRailIrStationGetAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_ir_station_get_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 返回对象
	Result *RailResultList `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailIrStationGetAPIResponseModel is 国际火车票标准车站查询 成功返回结果

func (*AlitripRailIrStationGetAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailTradeCloseticketAPIRequest added in v1.2.0

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

AlitripRailTradeCloseticketAPIRequest 出票失败关单接口 API请求 alitrip.rail.trade.closeticket

出票成功回调接口

func GetAlitripRailTradeCloseticketAPIRequest added in v1.3.4

func GetAlitripRailTradeCloseticketAPIRequest() *AlitripRailTradeCloseticketAPIRequest

GetAlitripRailTradeCloseticketRequest 从 sync.Pool 获取 AlitripRailTradeCloseticketAPIRequest

func NewAlitripRailTradeCloseticketRequest

func NewAlitripRailTradeCloseticketRequest() *AlitripRailTradeCloseticketAPIRequest

NewAlitripRailTradeCloseticketRequest 初始化AlitripRailTradeCloseticketAPIRequest对象

func (AlitripRailTradeCloseticketAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailTradeCloseticketAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailTradeCloseticketAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailTradeCloseticketAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailTradeCloseticketAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailTradeCloseticketAPIRequest) GetErrorCode added in v1.2.0

GetErrorCode ErrorCode Getter

func (AlitripRailTradeCloseticketAPIRequest) GetErrorMsg added in v1.2.0

GetErrorMsg ErrorMsg Getter

func (AlitripRailTradeCloseticketAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlitripRailTradeCloseticketAPIRequest) GetTpOrderId added in v1.2.0

GetTpOrderId TpOrderId Getter

func (*AlitripRailTradeCloseticketAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailTradeCloseticketAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailTradeCloseticketAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 代理商订单号

func (*AlitripRailTradeCloseticketAPIRequest) SetErrorCode added in v1.2.0

func (r *AlitripRailTradeCloseticketAPIRequest) SetErrorCode(_errorCode string) error

SetErrorCode is ErrorCode Setter 出票失败码

func (*AlitripRailTradeCloseticketAPIRequest) SetErrorMsg added in v1.2.0

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

SetErrorMsg is ErrorMsg Setter 出票失败原因

func (*AlitripRailTradeCloseticketAPIRequest) SetTpOrderId added in v1.2.0

func (r *AlitripRailTradeCloseticketAPIRequest) SetTpOrderId(_tpOrderId int64) error

SetTpOrderId is TpOrderId Setter 平台订单号

type AlitripRailTradeCloseticketAPIResponse

type AlitripRailTradeCloseticketAPIResponse struct {
	model.CommonResponse
	AlitripRailTradeCloseticketAPIResponseModel
}

AlitripRailTradeCloseticketAPIResponse 出票失败关单接口 API返回值 alitrip.rail.trade.closeticket

出票成功回调接口

func GetAlitripRailTradeCloseticketAPIResponse added in v1.3.4

func GetAlitripRailTradeCloseticketAPIResponse() *AlitripRailTradeCloseticketAPIResponse

GetAlitripRailTradeCloseticketAPIResponse 从 sync.Pool 获取 AlitripRailTradeCloseticketAPIResponse

func (*AlitripRailTradeCloseticketAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailTradeCloseticketAPIResponseModel added in v1.2.0

type AlitripRailTradeCloseticketAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_trade_closeticket_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果集
	Result *AlitripRailTradeCloseticketResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailTradeCloseticketAPIResponseModel is 出票失败关单接口 成功返回结果

func (*AlitripRailTradeCloseticketAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailTradeCloseticketResultSet

type AlitripRailTradeCloseticketResultSet struct {
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 成功失败
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

AlitripRailTradeCloseticketResultSet 结构体

func GetAlitripRailTradeCloseticketResultSet added in v1.3.4

func GetAlitripRailTradeCloseticketResultSet() *AlitripRailTradeCloseticketResultSet

GetAlitripRailTradeCloseticketResultSet() 从对象池中获取AlitripRailTradeCloseticketResultSet

type AlitripRailTradeIssueticketAPIRequest added in v1.2.0

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

AlitripRailTradeIssueticketAPIRequest 德铁出票成功接口 API请求 alitrip.rail.trade.issueticket

出票成功回调接口

func GetAlitripRailTradeIssueticketAPIRequest added in v1.3.4

func GetAlitripRailTradeIssueticketAPIRequest() *AlitripRailTradeIssueticketAPIRequest

GetAlitripRailTradeIssueticketRequest 从 sync.Pool 获取 AlitripRailTradeIssueticketAPIRequest

func NewAlitripRailTradeIssueticketRequest

func NewAlitripRailTradeIssueticketRequest() *AlitripRailTradeIssueticketAPIRequest

NewAlitripRailTradeIssueticketRequest 初始化AlitripRailTradeIssueticketAPIRequest对象

func (AlitripRailTradeIssueticketAPIRequest) GetAgentId added in v1.2.0

GetAgentId AgentId Getter

func (AlitripRailTradeIssueticketAPIRequest) GetAgentOrderId added in v1.2.0

func (r AlitripRailTradeIssueticketAPIRequest) GetAgentOrderId() string

GetAgentOrderId AgentOrderId Getter

func (AlitripRailTradeIssueticketAPIRequest) GetApiMethodName added in v1.2.0

func (r AlitripRailTradeIssueticketAPIRequest) GetApiMethodName() string

GetApiMethodName IRequest interface 方法, 获取Api method

func (AlitripRailTradeIssueticketAPIRequest) GetApiParams added in v1.2.0

func (r AlitripRailTradeIssueticketAPIRequest) GetApiParams(params url.Values)

GetApiParams IRequest interface 方法, 获取API参数

func (AlitripRailTradeIssueticketAPIRequest) GetRawParams added in v1.2.8

GetRawParams IRequest interface 方法, 获取API原始参数

func (AlitripRailTradeIssueticketAPIRequest) GetTicketNo added in v1.2.0

GetTicketNo TicketNo Getter

func (AlitripRailTradeIssueticketAPIRequest) GetTpOrderId added in v1.2.0

GetTpOrderId TpOrderId Getter

func (*AlitripRailTradeIssueticketAPIRequest) Reset added in v1.3.4

Reset IRequest interface 方法, 清空结构体

func (*AlitripRailTradeIssueticketAPIRequest) SetAgentId added in v1.2.0

func (r *AlitripRailTradeIssueticketAPIRequest) SetAgentId(_agentId int64) error

SetAgentId is AgentId Setter 代理商id

func (*AlitripRailTradeIssueticketAPIRequest) SetAgentOrderId added in v1.2.0

func (r *AlitripRailTradeIssueticketAPIRequest) SetAgentOrderId(_agentOrderId string) error

SetAgentOrderId is AgentOrderId Setter 代理商订单号

func (*AlitripRailTradeIssueticketAPIRequest) SetTicketNo added in v1.2.0

func (r *AlitripRailTradeIssueticketAPIRequest) SetTicketNo(_ticketNo string) error

SetTicketNo is TicketNo Setter pnr票号有则填,无则空

func (*AlitripRailTradeIssueticketAPIRequest) SetTpOrderId added in v1.2.0

func (r *AlitripRailTradeIssueticketAPIRequest) SetTpOrderId(_tpOrderId int64) error

SetTpOrderId is TpOrderId Setter 平台订单号

type AlitripRailTradeIssueticketAPIResponse

type AlitripRailTradeIssueticketAPIResponse struct {
	model.CommonResponse
	AlitripRailTradeIssueticketAPIResponseModel
}

AlitripRailTradeIssueticketAPIResponse 德铁出票成功接口 API返回值 alitrip.rail.trade.issueticket

出票成功回调接口

func GetAlitripRailTradeIssueticketAPIResponse added in v1.3.4

func GetAlitripRailTradeIssueticketAPIResponse() *AlitripRailTradeIssueticketAPIResponse

GetAlitripRailTradeIssueticketAPIResponse 从 sync.Pool 获取 AlitripRailTradeIssueticketAPIResponse

func (*AlitripRailTradeIssueticketAPIResponse) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailTradeIssueticketAPIResponseModel added in v1.2.0

type AlitripRailTradeIssueticketAPIResponseModel struct {
	XMLName xml.Name `xml:"alitrip_rail_trade_issueticket_response"`
	// 平台颁发的每次请求访问的唯一标识
	RequestId string `json:"request_id,omitempty" xml:"request_id,omitempty"`
	// 查询结果集
	Result *AlitripRailTradeIssueticketResultSet `json:"result,omitempty" xml:"result,omitempty"`
}

AlitripRailTradeIssueticketAPIResponseModel is 德铁出票成功接口 成功返回结果

func (*AlitripRailTradeIssueticketAPIResponseModel) Reset added in v1.3.4

Reset 清空结构体

type AlitripRailTradeIssueticketResultSet

type AlitripRailTradeIssueticketResultSet struct {
	// errorMsg
	ErrorMsg string `json:"error_msg,omitempty" xml:"error_msg,omitempty"`
	// errorCode
	ErrorCode string `json:"error_code,omitempty" xml:"error_code,omitempty"`
	// 成功失败
	Module bool `json:"module,omitempty" xml:"module,omitempty"`
}

AlitripRailTradeIssueticketResultSet 结构体

func GetAlitripRailTradeIssueticketResultSet added in v1.3.4

func GetAlitripRailTradeIssueticketResultSet() *AlitripRailTradeIssueticketResultSet

GetAlitripRailTradeIssueticketResultSet() 从对象池中获取AlitripRailTradeIssueticketResultSet

type Modules

type Modules struct {
	// 坐席code
	SeatCode string `json:"seat_code,omitempty" xml:"seat_code,omitempty"`
	// 坐席详情
	SeatDetail string `json:"seat_detail,omitempty" xml:"seat_detail,omitempty"`
	// 坐席图片
	SeatImage string `json:"seat_image,omitempty" xml:"seat_image,omitempty"`
	// 坐席名称
	SeatName string `json:"seat_name,omitempty" xml:"seat_name,omitempty"`
	// 业务类型,6代表境外火车票
	BizType int64 `json:"biz_type,omitempty" xml:"biz_type,omitempty"`
}

Modules 结构体

func GetModules added in v1.3.4

func GetModules() *Modules

GetModules() 从对象池中获取Modules

type RailCarrierRs added in v1.2.0

type RailCarrierRs struct {
	// 铁路运营公司列表
	ModuleList []RailCarrierRs `json:"module_list,omitempty" xml:"module_list>rail_carrier_rs,omitempty"`
	// 是否成功
	Success string `json:"success,omitempty" xml:"success,omitempty"`
	// 错误描述
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
	// 铁路运营公司Code
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 铁路运营公司中文名
	CnName string `json:"cn_name,omitempty" xml:"cn_name,omitempty"`
	Logo string `json:"logo,omitempty" xml:"logo,omitempty"`
	// 铁路运营公司英文名
	EnName string `json:"en_name,omitempty" xml:"en_name,omitempty"`
	// 关联or归属铁路局编码
	RailWayCode string `json:"rail_way_code,omitempty" xml:"rail_way_code,omitempty"`
}

RailCarrierRs 结构体

func GetRailCarrierRs added in v1.3.4

func GetRailCarrierRs() *RailCarrierRs

GetRailCarrierRs() 从对象池中获取RailCarrierRs

type RailDivisionRs added in v1.2.0

type RailDivisionRs struct {
	// 省份城市
	ProvName string `json:"prov_name,omitempty" xml:"prov_name,omitempty"`
	// 省份城市英文
	ProvNameEn string `json:"prov_name_en,omitempty" xml:"prov_name_en,omitempty"`
	// 国家名称英文
	CountryNameEn string `json:"country_name_en,omitempty" xml:"country_name_en,omitempty"`
	// 国家名称
	CountryName string `json:"country_name,omitempty" xml:"country_name,omitempty"`
	// 洲名称英文
	ContinentNameEn string `json:"continent_name_en,omitempty" xml:"continent_name_en,omitempty"`
	// 洲名称
	ContinentName string `json:"continent_name,omitempty" xml:"continent_name,omitempty"`
	// 城市三字码
	CityCode3 string `json:"city_code3,omitempty" xml:"city_code3,omitempty"`
	// 简拼
	Py string `json:"py,omitempty" xml:"py,omitempty"`
	// 拼音
	Pinyin string `json:"pinyin,omitempty" xml:"pinyin,omitempty"`
	// 时区
	Timezoneid string `json:"timezoneid,omitempty" xml:"timezoneid,omitempty"`
	// 国家二字码(ISO 3166-1 alpha-2)
	CountryCode2 string `json:"country_code2,omitempty" xml:"country_code2,omitempty"`
	// 纬度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 经度
	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`
	// 英文名
	NameEn string `json:"name_en,omitempty" xml:"name_en,omitempty"`
	// 简称
	NameAbbr string `json:"name_abbr,omitempty" xml:"name_abbr,omitempty"`
	// 名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 区名称英文
	DistrictNameEn string `json:"district_name_en,omitempty" xml:"district_name_en,omitempty"`
	// 区名称
	DistrictName string `json:"district_name,omitempty" xml:"district_name,omitempty"`
	// 城市名称英文
	CityNameEn string `json:"city_name_en,omitempty" xml:"city_name_en,omitempty"`
	// 城市名称
	CityName string `json:"city_name,omitempty" xml:"city_name,omitempty"`
	// 省份id
	ProvId int64 `json:"prov_id,omitempty" xml:"prov_id,omitempty"`
	// 国家id
	CountryId int64 `json:"country_id,omitempty" xml:"country_id,omitempty"`
	// 洲id,id树层级展开
	ContinentId int64 `json:"continent_id,omitempty" xml:"continent_id,omitempty"`
	// 是否是首都
	CapitalFlag int64 `json:"capital_flag,omitempty" xml:"capital_flag,omitempty"`
	// 国内或者国际 0表示国内,1表示国际
	Abroad int64 `json:"abroad,omitempty" xml:"abroad,omitempty"`
	// 父级ID
	ParentId int64 `json:"parent_id,omitempty" xml:"parent_id,omitempty"`
	// 层级,1洲,2是国家,3是省,4是市,5是区,6是街道/镇,7是村,8是逻辑行政区
	Level int64 `json:"level,omitempty" xml:"level,omitempty"`
	// 区id
	DistrictId int64 `json:"district_id,omitempty" xml:"district_id,omitempty"`
	// 城市id
	CityId int64 `json:"city_id,omitempty" xml:"city_id,omitempty"`
	// 区域id
	Id int64 `json:"id,omitempty" xml:"id,omitempty"`
}

RailDivisionRs 结构体

func GetRailDivisionRs added in v1.3.4

func GetRailDivisionRs() *RailDivisionRs

GetRailDivisionRs() 从对象池中获取RailDivisionRs

type RailResultList

type RailResultList struct {
	// 城市列表
	ModuleList []RailDivisionRs `json:"module_list,omitempty" xml:"module_list>rail_division_rs,omitempty"`
	// 是否成功
	Success string `json:"success,omitempty" xml:"success,omitempty"`
	// 错误描述
	ErrMsg string `json:"err_msg,omitempty" xml:"err_msg,omitempty"`
	// 错误码
	ErrCode string `json:"err_code,omitempty" xml:"err_code,omitempty"`
}

RailResultList 结构体

func GetRailResultList added in v1.3.4

func GetRailResultList() *RailResultList

GetRailResultList() 从对象池中获取RailResultList

type RailStationRs added in v1.2.0

type RailStationRs struct {
	// 车站图片url,多个;号分隔
	Image string `json:"image,omitempty" xml:"image,omitempty"`
	// 车站信息,多行;号分隔
	Detail string `json:"detail,omitempty" xml:"detail,omitempty"`
	// 车站地址
	Address string `json:"address,omitempty" xml:"address,omitempty"`
	// 纬度
	Latitude string `json:"latitude,omitempty" xml:"latitude,omitempty"`
	// 经度
	Longitude string `json:"longitude,omitempty" xml:"longitude,omitempty"`
	// 车站中文名称
	CnName string `json:"cn_name,omitempty" xml:"cn_name,omitempty"`
	// 车站英文名称
	EnName string `json:"en_name,omitempty" xml:"en_name,omitempty"`
	// 所属城市名称
	DivisionName string `json:"division_name,omitempty" xml:"division_name,omitempty"`
	// 车站原始名称
	Name string `json:"name,omitempty" xml:"name,omitempty"`
	// 车站编码
	Code string `json:"code,omitempty" xml:"code,omitempty"`
	// 所属城市id
	DivisionId int64 `json:"division_id,omitempty" xml:"division_id,omitempty"`
}

RailStationRs 结构体

func GetRailStationRs added in v1.3.4

func GetRailStationRs() *RailStationRs

GetRailStationRs() 从对象池中获取RailStationRs

Jump to

Keyboard shortcuts

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