2025-11-14 08:42:26 +08:00
|
|
|
package parser
|
|
|
|
|
|
2025-12-24 16:38:03 +08:00
|
|
|
import (
|
2025-12-24 17:23:41 +08:00
|
|
|
"caatsm/internal/adapter/parser/aviation"
|
2025-12-24 16:38:03 +08:00
|
|
|
"caatsm/internal/port"
|
|
|
|
|
)
|
2025-11-17 11:47:23 +08:00
|
|
|
|
2025-12-24 17:23:41 +08:00
|
|
|
// ProvideParser creates a composite parser instance that combines weather and aviation parsers.
|
2025-12-24 16:38:03 +08:00
|
|
|
func ProvideParser(weatherParser port.WeatherParser) Parser {
|
2025-12-24 17:23:41 +08:00
|
|
|
aviationParser := aviation.NewParser()
|
|
|
|
|
return NewCompositeParser(aviationParser, weatherParser)
|
2025-11-14 08:42:26 +08:00
|
|
|
}
|