type CityRepository interface {
// GetAll returns all Cities. GetAll(provinceID string) ([]City, error)
// GetByID returns the City with the specified ID. GetByID(id string) (*City, error)
}
CityRepository is an interface that provides access to the City storage.
type CityUsecase interface {
// GetAll returns all Cities. GetAll(provinceID string) ([]City, error)
// GetByID returns the City with the specified ID. GetByID(provinceID, cityID string) (*City, error)
}
CityUsecase is an interface that provides business logic for City.