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

11
go.mod
View File

@@ -10,6 +10,7 @@ require (
github.com/oapi-codegen/runtime v1.1.2
github.com/oklog/ulid/v2 v2.1.1
github.com/stretchr/testify v1.11.1
go.uber.org/mock v0.6.0
gorm.io/driver/postgres v1.6.0
gorm.io/gorm v1.31.1
resty.dev/v3 v3.0.0-beta.4
@@ -32,10 +33,14 @@ require (
github.com/nats-io/nuid v1.0.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
golang.org/x/crypto v0.45.0 // indirect
golang.org/x/net v0.47.0 // indirect
golang.org/x/crypto v0.46.0 // indirect
golang.org/x/mod v0.30.0 // indirect
golang.org/x/net v0.48.0 // indirect
golang.org/x/sync v0.19.0 // indirect
golang.org/x/sys v0.39.0 // indirect
golang.org/x/text v0.31.0 // indirect
golang.org/x/text v0.32.0 // indirect
golang.org/x/tools v0.39.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
tool go.uber.org/mock/mockgen