init push
This commit is contained in:
22
internal/domain/before_flight_inspection/service.go
Normal file
22
internal/domain/before_flight_inspection/service.go
Normal file
@@ -0,0 +1,22 @@
|
||||
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"`
|
||||
}
|
||||
Reference in New Issue
Block a user