feat: Add Diyanet API provider

feat: Add UI
This commit is contained in:
2023-03-05 14:41:38 +01:00
parent d4ff42387f
commit 93af84cef8
17 changed files with 642 additions and 43 deletions
+10
View File
@@ -13,6 +13,16 @@ type TimesProvider interface {
Name() string
}
type Coordinates struct {
Latitude float64
Longitude float64
}
type LocationTimesProvider interface {
GetByCoords(ctx context.Context, coords Coordinates) ([]Times, error)
Name() string
}
type Times struct {
Date time.Time `json:"date"`
Fajr string `json:"fajr"`