package beforeflightinspection import "context" type Service interface { Upsert(ctx context.Context, flightInspectionID []byte, req *UpsertRequest) (*BeforeFlightInspection, error) GetByFlightInspectionID(ctx context.Context, flightInspectionID []byte) (*BeforeFlightInspection, error) } type UpsertRequest struct { OilEngineNR1Checked *bool `json:"oil_engine_nr1_checked"` OilEngineNR2Checked *bool `json:"oil_engine_nr2_checked"` HydraulicLHChecked *bool `json:"hydraulic_lh_checked"` HydraulicRHChecked *bool `json:"hydraulic_rh_checked"` OilTransmissionMGBChecked *bool `json:"oil_transmission_mgb_checked"` OilTransmissionIGBChecked *bool `json:"oil_transmission_igb_checked"` OilTransmissionTGBChecked *bool `json:"oil_transmission_tgb_checked"` FuelAmount *float64 `json:"fuel_amount"` FuelUnit *string `json:"fuel_unit"` FuelAddedAmount *float64 `json:"fuel_added_amount"` Note *string `json:"note"` }