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,17 @@
package helicopter
import "context"
type Service interface {
Create(ctx context.Context, helicopter *Helicopter) error
Update(ctx context.Context, helicopter *Helicopter) error
ExistsByIdentifier(ctx context.Context, identifier string, excludeID []byte) (bool, error)
ApplySortKeyPatch(helicopter *Helicopter, patch SortKeyPatch)
Delete(ctx context.Context, id []byte) error
GetByID(ctx context.Context, id []byte) (*Helicopter, error)
List(ctx context.Context, filter string, statuses []string, sort string, limit, offset int, groundedIDs [][]byte) ([]Helicopter, int64, error)
NextReportNumber(ctx context.Context, id []byte) (string, int, error)
IsInUse(ctx context.Context, id []byte) (bool, error)
InUseByAircraftIDs(ctx context.Context, ids [][]byte) (map[string]bool, error)
ActiveFlightIDByAircraftIDs(ctx context.Context, ids [][]byte) (map[string][]byte, error)
}