|
@@ -6,115 +6,132 @@ type ReqSearchFlightData struct {
|
|
|
Date string `json:"date"`
|
|
Date string `json:"date"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type ResSearchFlight struct {
|
|
|
|
|
+ Code int64 `json:"code"`
|
|
|
|
|
+ Msg string `json:"msg"`
|
|
|
|
|
+ Data ResSearchFlightData `json:"data"`
|
|
|
|
|
+ TraceID string `json:"traceId"`
|
|
|
|
|
+ Success bool `json:"success"`
|
|
|
|
|
+}
|
|
|
type ResSearchFlightData struct {
|
|
type ResSearchFlightData struct {
|
|
|
- Code int64 `json:"code"`
|
|
|
|
|
- Msg string `json:"msg"`
|
|
|
|
|
- Data ResSearchFlightDataData `json:"data"`
|
|
|
|
|
- TraceID string `json:"traceId"`
|
|
|
|
|
- Success bool `json:"success"`
|
|
|
|
|
|
|
+ Total int `json:"total"`
|
|
|
|
|
+ Status int `json:"status"`
|
|
|
|
|
+ Datas []Datas `json:"datas"`
|
|
|
|
|
+ ServicePackets []ServicePackets `json:"servicePackets"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type ResSearchFlightDataData struct {
|
|
|
|
|
- Total int64 `json:"total"`
|
|
|
|
|
- Status int64 `json:"status"`
|
|
|
|
|
- Datas []DataElement `json:"datas"`
|
|
|
|
|
- ServicePackets []ServicePacket `json:"servicePackets"`
|
|
|
|
|
|
|
+type Datas struct {
|
|
|
|
|
+ FlightParam string `json:"flightParam"`
|
|
|
|
|
+ FlightInfo FlightInfo `json:"flightInfo,omitempty"`
|
|
|
|
|
+ CabinInfos []CabinInfos `json:"cabinInfos"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type DataElement struct {
|
|
|
|
|
- FlightInfo FlightInfo `json:"flightInfo"`
|
|
|
|
|
- CabinInfos []CabinInfo `json:"cabinInfos"`
|
|
|
|
|
|
|
+type FlightInfo struct {
|
|
|
|
|
+ FlightInfoID string `json:"flightInfoId"`
|
|
|
|
|
+ FlyNo string `json:"flyNo"`
|
|
|
|
|
+ AcCode string `json:"acCode"`
|
|
|
|
|
+ DepCode string `json:"depCode"`
|
|
|
|
|
+ ArrCode string `json:"arrCode"`
|
|
|
|
|
+ DepDateTime string `json:"depDateTime"`
|
|
|
|
|
+ ArrDateTime string `json:"arrDateTime"`
|
|
|
|
|
+ DepTerminal string `json:"depTerminal"`
|
|
|
|
|
+ ArrTerminal string `json:"arrTerminal"`
|
|
|
|
|
+ Model string `json:"model"`
|
|
|
|
|
+ IsStop int `json:"isStop"`
|
|
|
|
|
+ IsShare int `json:"isShare"`
|
|
|
|
|
+ Meal int `json:"meal"`
|
|
|
|
|
+ IsCancel int `json:"isCancel"`
|
|
|
|
|
+ Av int `json:"av"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type CabinInfo struct {
|
|
|
|
|
|
|
+type CabinInfos struct {
|
|
|
PriceInfoID string `json:"priceInfoId"`
|
|
PriceInfoID string `json:"priceInfoId"`
|
|
|
BaseCabin string `json:"baseCabin"`
|
|
BaseCabin string `json:"baseCabin"`
|
|
|
- Voucher int64 `json:"voucher"`
|
|
|
|
|
- ExpectTicketTime int64 `json:"expectTicketTime"`
|
|
|
|
|
|
|
+ BaseCodeLevel int `json:"baseCodeLevel"`
|
|
|
|
|
+ Voucher int `json:"voucher"`
|
|
|
Discount float64 `json:"discount"`
|
|
Discount float64 `json:"discount"`
|
|
|
- Left int64 `json:"left"`
|
|
|
|
|
- ProductAttribute int64 `json:"productAttribute"`
|
|
|
|
|
- SaleControl []SaleControl `json:"saleControl"`
|
|
|
|
|
- ServicePackets []int64 `json:"servicePackets"`
|
|
|
|
|
- CabinProductDesc CabinProductDesc `json:"cabinProductDesc"`
|
|
|
|
|
- ADTPrice Price `json:"adtPrice"`
|
|
|
|
|
- ChdPrice Price `json:"chdPrice"`
|
|
|
|
|
|
|
+ Left int `json:"left"`
|
|
|
|
|
+ ServicePackets []interface{} `json:"servicePackets"`
|
|
|
|
|
+ AdtPrice AdtPrice `json:"adtPrice,omitempty"`
|
|
|
|
|
+ ChdPrice ChdPrice `json:"chdPrice,omitempty"`
|
|
|
BusinessField string `json:"businessField"`
|
|
BusinessField string `json:"businessField"`
|
|
|
|
|
+ ExpectTicketTime int `json:"expectTicketTime,omitempty"`
|
|
|
|
|
+ SaleControls []SaleControls `json:"saleControls,omitempty"`
|
|
|
|
|
+ CabinProductDesc CabinProductDesc `json:"cabinProductDesc"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type CabinProductDesc struct {
|
|
|
|
|
+ ID int `json:"id"`
|
|
|
|
|
+ ProductDesc string `json:"productDesc"`
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type AdtPrice struct {
|
|
|
|
|
+ ProductType string `json:"productType"`
|
|
|
|
|
+ Cabin string `json:"cabin"`
|
|
|
|
|
+ Price float64 `json:"price"`
|
|
|
|
|
+ TicketPrice float64 `json:"ticketPrice"`
|
|
|
|
|
+ RulePrice float64 `json:"rulePrice"`
|
|
|
|
|
+ OilFee float64 `json:"oilFee"`
|
|
|
|
|
+ AirportFee float64 `json:"airportFee"`
|
|
|
|
|
+ FareBasisCode string `json:"fareBasisCode"`
|
|
|
|
|
+ Rule Rule `json:"rule"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type Price struct {
|
|
|
|
|
- ProductType string `json:"productType"`
|
|
|
|
|
- Cabin string `json:"cabin"`
|
|
|
|
|
- Price int64 `json:"price"`
|
|
|
|
|
- TicketPrice int64 `json:"ticketPrice"`
|
|
|
|
|
- RulePrice int64 `json:"rulePrice"`
|
|
|
|
|
- OilFee *int64 `json:"oilFee,omitempty"`
|
|
|
|
|
- AirportFee *int64 `json:"airportFee,omitempty"`
|
|
|
|
|
- FareBasisCode string `json:"fareBasisCode"`
|
|
|
|
|
- Rule Rule `json:"rule"`
|
|
|
|
|
|
|
+type ChdPrice struct {
|
|
|
|
|
+ ProductType string `json:"productType"`
|
|
|
|
|
+ Cabin string `json:"cabin"`
|
|
|
|
|
+ Price float64 `json:"price"`
|
|
|
|
|
+ TicketPrice float64 `json:"ticketPrice"`
|
|
|
|
|
+ RulePrice float64 `json:"rulePrice"`
|
|
|
|
|
+ OilFee float64 `json:"oilFee"`
|
|
|
|
|
+ AirportFee float64 `json:"airportFee"`
|
|
|
|
|
+ Rule Rule `json:"rule"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type Rule struct {
|
|
type Rule struct {
|
|
|
- RefundRule string `json:"refundRule"`
|
|
|
|
|
- ChangeRule string `json:"changeRule"`
|
|
|
|
|
- TransferRule string `json:"transferRule"`
|
|
|
|
|
- RefundExp []Exp `json:"refundExp"`
|
|
|
|
|
- ChangeExp []Exp `json:"changeExp"`
|
|
|
|
|
- HandBaggageRule BaggageRule `json:"handBaggageRule"`
|
|
|
|
|
- ConsignBaggageRule BaggageRule `json:"consignBaggageRule"`
|
|
|
|
|
|
|
+ RefundRule string `json:"refundRule"`
|
|
|
|
|
+ ChangeRule string `json:"changeRule"`
|
|
|
|
|
+ TransferRule string `json:"transferRule"`
|
|
|
|
|
+ RefundExp []RefundExp `json:"refundExp"`
|
|
|
|
|
+ ChangeExp []ChangeExp `json:"changeExp"`
|
|
|
|
|
+ HandBaggageRule HandBaggageRule `json:"handBaggageRule"`
|
|
|
|
|
+ ConsignBaggageRule ConsignBaggageRule `json:"consignBaggageRule"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type Exp struct {
|
|
|
|
|
|
|
+type RefundExp struct {
|
|
|
TimeTxt string `json:"timeTxt"`
|
|
TimeTxt string `json:"timeTxt"`
|
|
|
TimeExp string `json:"timeExp"`
|
|
TimeExp string `json:"timeExp"`
|
|
|
- Price int64 `json:"price"`
|
|
|
|
|
- Percent int64 `json:"percent"`
|
|
|
|
|
|
|
+ Price int `json:"price"`
|
|
|
|
|
+ Percent int `json:"percent"`
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-type BaggageRule struct {
|
|
|
|
|
- Txt string `json:"txt"`
|
|
|
|
|
- Pieces int64 `json:"pieces"`
|
|
|
|
|
- Weight int64 `json:"weight"`
|
|
|
|
|
- Volume string `json:"volume"`
|
|
|
|
|
|
|
+type ChangeExp struct {
|
|
|
|
|
+ TimeTxt string `json:"timeTxt"`
|
|
|
|
|
+ TimeExp string `json:"timeExp"`
|
|
|
|
|
+ Price int `json:"price"`
|
|
|
|
|
+ Percent int `json:"percent"`
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-type CabinProductDesc struct {
|
|
|
|
|
- ID int64 `json:"id"`
|
|
|
|
|
- ProductDesc string `json:"productDesc"`
|
|
|
|
|
|
|
+type HandBaggageRule struct {
|
|
|
|
|
+ Txt string `json:"txt"`
|
|
|
|
|
+ Pieces int `json:"pieces"`
|
|
|
|
|
+ Weight float64 `json:"weight"`
|
|
|
|
|
+ Volume string `json:"volume"`
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
-type SaleControl struct {
|
|
|
|
|
- ID int64 `json:"id"`
|
|
|
|
|
- PSNum *string `json:"psNum,omitempty"`
|
|
|
|
|
- PSType string `json:"psType"`
|
|
|
|
|
- PSIDType *string `json:"psIdType,omitempty"`
|
|
|
|
|
- PSIDNo *string `json:"psIdNo,omitempty"`
|
|
|
|
|
- PSAge *string `json:"psAge,omitempty"`
|
|
|
|
|
- PSGender *string `json:"psGender,omitempty"`
|
|
|
|
|
- NewMember *int64 `json:"newMember,omitempty"`
|
|
|
|
|
- HasAge *string `json:"hasAge,omitempty"`
|
|
|
|
|
- CheckThreeElement *int64 `json:"checkThreeElement,omitempty"`
|
|
|
|
|
|
|
+type ConsignBaggageRule struct {
|
|
|
|
|
+ Txt string `json:"txt"`
|
|
|
|
|
+ Pieces int `json:"pieces"`
|
|
|
|
|
+ Weight float64 `json:"weight"`
|
|
|
|
|
+ Volume string `json:"volume"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type FlightInfo struct {
|
|
|
|
|
- FlightInfoID string `json:"flightInfoId"`
|
|
|
|
|
- FlyNo string `json:"flyNo"`
|
|
|
|
|
- ACCode string `json:"acCode"`
|
|
|
|
|
- DepCode string `json:"depCode"`
|
|
|
|
|
- ArrCode string `json:"arrCode"`
|
|
|
|
|
- DepDateTime string `json:"depDateTime"`
|
|
|
|
|
- ArrDateTime string `json:"arrDateTime"`
|
|
|
|
|
- DepTerminal string `json:"depTerminal"`
|
|
|
|
|
- ArrTerminal string `json:"arrTerminal"`
|
|
|
|
|
- Model string `json:"model"`
|
|
|
|
|
- IsStop int64 `json:"isStop"`
|
|
|
|
|
- IsShare int64 `json:"isShare"`
|
|
|
|
|
- Meal int64 `json:"meal"`
|
|
|
|
|
- IsCancel int64 `json:"isCancel"`
|
|
|
|
|
|
|
+type SaleControls struct {
|
|
|
|
|
+ ID int `json:"id"`
|
|
|
|
|
+ PsNum string `json:"psNum"`
|
|
|
|
|
+ PsAge string `json:"psAge"`
|
|
|
|
|
+ PsIDType string `json:"psIdType"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type ServicePacket struct {
|
|
|
|
|
- ID int64 `json:"id"`
|
|
|
|
|
|
|
+type ServicePackets struct {
|
|
|
|
|
+ ID int `json:"id"`
|
|
|
Title string `json:"title"`
|
|
Title string `json:"title"`
|
|
|
Desc string `json:"desc"`
|
|
Desc string `json:"desc"`
|
|
|
}
|
|
}
|