source, targetDate 그룹에서 최신만 선택

- 조회 시, 과거 데이터 무시
- 저장 자체를 최신 데이터만 해도 되긴하는데, 디버깅 용도 혹은 다른 방법으로 쓰일 걸 염두에 두고, 그냥 냅둔다.
This commit is contained in:
2025-12-09 22:54:32 +09:00
parent 70c7bbf591
commit f3a172ad3c
7 changed files with 293 additions and 19 deletions

View File

@@ -7,6 +7,8 @@ import (
"github.com/neatflowcv/seven-skies/internal/pkg/domain"
)
//go:generate mockgen -typed -package=mocks -destination=mocks/repository.go . Repository
type Repository interface {
CreateWeather(ctx context.Context, weather *domain.Weather) error
ListWeathers(ctx context.Context, from, to time.Time) ([]*domain.Weather, error)