Files
s01e02/internal/domain/api_client.go
2026-03-12 02:10:57 +01:00

25 lines
704 B
Go

package domain
import "context"
// LocationRequest represents a request for location information
type LocationRequest struct {
APIKey string `json:"apikey"`
Name string `json:"name"`
Surname string `json:"surname"`
}
// AccessLevelRequest represents a request for access level information
type AccessLevelRequest struct {
APIKey string `json:"apikey"`
Name string `json:"name"`
Surname string `json:"surname"`
BirthYear int `json:"birthYear"`
}
// APIClient defines the interface for API operations
type APIClient interface {
GetLocation(ctx context.Context, req LocationRequest) ([]byte, error)
GetAccessLevel(ctx context.Context, req AccessLevelRequest) ([]byte, error)
}