Add convective outlook HTTP routes
This commit is contained in:
16
internal/adapters/inbound/httpapi/presenter/outlook.go
Normal file
16
internal/adapters/inbound/httpapi/presenter/outlook.go
Normal file
@@ -0,0 +1,16 @@
|
||||
// outlook.go presents convective outlook payloads.
|
||||
// Layer: adapters/inbound/httpapi/presenter outlook payload mapping.
|
||||
package presenter
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"gitea.maximumdirect.net/ejr/weatherfeeder/model"
|
||||
)
|
||||
|
||||
func OutlookRunPayload(run *model.WeatherOutlookRun, _ Units, _ *time.Location) any {
|
||||
if run == nil {
|
||||
return nil
|
||||
}
|
||||
return run
|
||||
}
|
||||
Reference in New Issue
Block a user