feat: Add Diyanet API provider
feat: Add UI
This commit is contained in:
@@ -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"`
|
||||
|
||||
Reference in New Issue
Block a user