package structs type ReqSearchFlightData struct { DepCode string `json:"depCode"` ArrCode string `json:"arrCode"` Date string `json:"date"` } type ResSearchFlightData struct { Code int64 `json:"code"` Msg string `json:"msg"` Data ResSearchFlightDataData `json:"data"` TraceID string `json:"traceId"` Success bool `json:"success"` } type ResSearchFlightDataData struct { Total int64 `json:"total"` Status int64 `json:"status"` Datas []DataElement `json:"datas"` ServicePackets []ServicePacket `json:"servicePackets"` } type DataElement struct { FlightInfo FlightInfo `json:"flightInfo"` CabinInfos []CabinInfo `json:"cabinInfos"` } type CabinInfo struct { PriceInfoID string `json:"priceInfoId"` BaseCabin string `json:"baseCabin"` Voucher int64 `json:"voucher"` ExpectTicketTime int64 `json:"expectTicketTime"` 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"` BusinessField string `json:"businessField"` } 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 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"` } type Exp struct { TimeTxt string `json:"timeTxt"` TimeExp string `json:"timeExp"` Price int64 `json:"price"` Percent int64 `json:"percent"` } type BaggageRule struct { Txt string `json:"txt"` Pieces int64 `json:"pieces"` Weight int64 `json:"weight"` Volume string `json:"volume"` } type CabinProductDesc struct { ID int64 `json:"id"` ProductDesc string `json:"productDesc"` } 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 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 ServicePacket struct { ID int64 `json:"id"` Title string `json:"title"` Desc string `json:"desc"` }