init push

This commit is contained in:
2026-07-16 22:16:45 +07:00
commit 8b068bdb10
1021 changed files with 332816 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
package fmreport
import (
"context"
"wucher/internal/domain/flight"
)
type Service interface {
UpsertForFlight(ctx context.Context, flightRow *flight.Flight, flightInspectionID []byte) (*Report, error)
UpdateForFlight(ctx context.Context, flightID []byte, engine1GpcN1, engine1PtcN2, engine2GpcN1, engine2PtcN2 *string) (*Report, error)
GetByID(ctx context.Context, id []byte) (*Report, error)
GetByFlightID(ctx context.Context, flightID []byte) (*Report, error)
List(ctx context.Context, filter ListFilter, limit, offset int) ([]Report, int64, error)
GetFleetHistory(ctx context.Context, reportID []byte) (*FleetHistory, error)
Delete(ctx context.Context, id []byte) error
}
type FleetHistoryBuilder interface {
BuildFleetHistory(ctx context.Context, takeoverID []byte) *FleetHistory
}
type ReportCodeResolver interface {
ResolveHelicopterForReportCode(ctx context.Context, takeoverID []byte) (helicopterID []byte, reportPrefix string)
}