mirror of
https://github.com/SamyRai/tercul-backend.git
synced 2025-12-27 05:11:34 +00:00
15 lines
358 B
Go
15 lines
358 B
Go
package country
|
|
|
|
import (
|
|
"context"
|
|
"tercul/internal/domain"
|
|
)
|
|
|
|
// CountryRepository defines CRUD methods specific to Country.
|
|
type CountryRepository interface {
|
|
domain.BaseRepository[domain.Country]
|
|
|
|
GetByCode(ctx context.Context, code string) (*domain.Country, error)
|
|
ListByContinent(ctx context.Context, continent string) ([]domain.Country, error)
|
|
}
|