package structs type ReqSearchFlightData struct { DepCode string `json:"depCode"` ArrCode string `json:"arrCode"` Date string `json:"date"` FlyNo string `json:"flight_no"` } 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 { Total int `json:"total"` Status int `json:"status"` Datas []Datas `json:"datas"` ServicePackets []ServicePackets `json:"servicePackets"` } type Datas struct { FlightParam string `json:"flightParam"` FlightInfo FlightInfo `json:"flightInfo,omitempty"` CabinInfos []CabinInfos `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"` CarrierAcCode string `json:"carrierAcCode"` } type CabinInfos struct { PriceInfoID string `json:"priceInfoId"` BaseCabin string `json:"baseCabin"` BaseCodeLevel int `json:"baseCodeLevel"` Voucher int `json:"voucher"` Discount float64 `json:"discount"` Left int `json:"left"` ServicePackets []interface{} `json:"servicePackets"` AdtPrice AdtPrice `json:"adtPrice,omitempty"` ChdPrice ChdPrice `json:"chdPrice,omitempty"` 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 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 { 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 RefundExp struct { TimeTxt string `json:"timeTxt"` TimeExp string `json:"timeExp"` Price int `json:"price"` Percent int `json:"percent"` } type ChangeExp struct { TimeTxt string `json:"timeTxt"` TimeExp string `json:"timeExp"` Price int `json:"price"` Percent int `json:"percent"` } type HandBaggageRule struct { Txt string `json:"txt"` Pieces int `json:"pieces"` Weight float64 `json:"weight"` Volume string `json:"volume"` } type ConsignBaggageRule struct { Txt string `json:"txt"` Pieces int `json:"pieces"` Weight float64 `json:"weight"` Volume string `json:"volume"` } type SaleControls struct { ID int `json:"id"` PsNum string `json:"psNum"` PsType string `json:"psType,omitempty"` PsIDType string `json:"psIdType,omitempty"` PsIDNo string `json:"psIdNo,omitempty"` PsAdIdType string `json:"psAdIdType,omitempty"` PsAge string `json:"psAge,omitempty"` PsGender string `json:"psGender,omitempty"` NewMember int `json:"newMember,omitempty"` HasAge string `json:"hasAge,omitempty"` CheckThreeElement int `json:"checkThreeElement,omitempty"` } type ServicePackets struct { ID int `json:"id"` Title string `json:"title"` Desc string `json:"desc"` }