refactor: Update constants and remove unused code in aviation_parser.go and constants.go

This commit is contained in:
windyboy
2024-08-07 10:47:15 +08:00
parent 5515f353b4
commit e4fa138089
4 changed files with 43 additions and 162 deletions
+12 -17
View File
@@ -11,25 +11,20 @@ import (
)
const (
StartIndicatorPrefix = "ZCZC"
EndHeaderMarker = "."
BeginPartMarker = "BEGIN PART"
Category = "category"
CategoryArrival = "ARR"
// FlightNumber = "number"
SSR = "ssr"
DepartureCode = "dep"
DepartureTime = "dep_time"
ArrivalCode = "arr"
ArrivalTime = "arr_time"
CategoryDeparture = "DEP"
DestinationCode = "dest"
OtherInfo = "other"
CategoryCancellation = "CNL"
CategoryDelay = "DLA"
NewDepartureTime = "new_departure_time"
CategoryFlightPlan = "FPL"
SSR = "ssr"
DepartureCode = "dep"
DepartureTime = "dep_time"
ArrivalCode = "arr"
ArrivalTime = "arr_time"
// CategoryDeparture = "DEP"
DestinationCode = "dest"
OtherInfo = "other"
// CategoryCancellation = "CNL"
// CategoryDelay = "DLA"
// NewDepartureTime = "new_departure_time"
// CategoryFlightPlan = "FPL"
ReferenceData = "reference_data"
Aircraft = "aircraft"
CategorySurveillance = "surve"