Files
fm_be/internal/domain/fleet_history/repository.go
2026-07-16 22:16:45 +07:00

12 lines
465 B
Go

package fleethistory
import "context"
type Repository interface {
Create(ctx context.Context, row *FleetHistory) error
ListByHelicopter(ctx context.Context, helicopterID []byte, limit, offset int) ([]FleetHistory, int64, error)
// HelicopterIDByInspection resolves the helicopter linked to a flight inspection
// via its reserve_ac, returning nil bytes when none is found.
HelicopterIDByInspection(ctx context.Context, inspectionID []byte) ([]byte, error)
}