init push
This commit is contained in:
20
internal/domain/after_flight_inspection/service.go
Normal file
20
internal/domain/after_flight_inspection/service.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package afterflightinspection
|
||||
|
||||
import "context"
|
||||
|
||||
type Service interface {
|
||||
Upsert(ctx context.Context, flightInspectionID []byte, req *UpsertRequest) (*AfterFlightInspection, error)
|
||||
GetByFlightInspectionID(ctx context.Context, flightInspectionID []byte) (*AfterFlightInspection, error)
|
||||
DeleteByFlightInspectionID(ctx context.Context, flightInspectionID []byte) error
|
||||
}
|
||||
|
||||
type UpsertRequest struct {
|
||||
OilEngineNR1Checked *string
|
||||
OilEngineNR2Checked *string
|
||||
HydraulicLHChecked *string
|
||||
HydraulicRHChecked *string
|
||||
OilTransmissionMGBChecked *string
|
||||
OilTransmissionIGBChecked *string
|
||||
OilTransmissionTGBChecked *string
|
||||
Note *string
|
||||
}
|
||||
Reference in New Issue
Block a user