25 lines
704 B
Go
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)
|
|
}
|