final
This commit is contained in:
24
internal/domain/api_client.go
Normal file
24
internal/domain/api_client.go
Normal file
@@ -0,0 +1,24 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user