refactor: Add FlightSchedule.Index field and update parsers
The code changes introduce a new `Index` field in the `FlightSchedule` struct and update the parsers in `aviation_parser.go` and `schedule_parser.go` to handle this field. This addition allows for the extraction and parsing of the `Index` value from flight schedule messages. The changes improve the functionality and accuracy of the code when working with flight schedules.
This commit is contained in:
@@ -3,13 +3,15 @@ package domain
|
||||
import "fmt"
|
||||
|
||||
type FlightSchedule struct {
|
||||
Index string `json:"index,omitempty"`
|
||||
|
||||
// Date of the flight schedule.
|
||||
// Example: "30OCT"
|
||||
Date string `json:"date"`
|
||||
|
||||
// Category of the flight schedule. It could represent different categories based on the airline or flight type.
|
||||
// Example: "H/G"
|
||||
Category string `json:"category,omitempty"`
|
||||
Task string `json:"task,omitempty"`
|
||||
|
||||
// Flight number of the flight schedule. This is a unique identifier for the flight.
|
||||
// Example: "CA1014"
|
||||
|
||||
Reference in New Issue
Block a user