2026-02-23 20:02:17 +03:00
|
|
|
package merch
|
|
|
|
|
|
2026-03-04 17:02:11 +03:00
|
|
|
import (
|
|
|
|
|
"github.com/jackc/pgx/v5/pgxpool"
|
|
|
|
|
)
|
2026-02-23 20:02:17 +03:00
|
|
|
|
2026-03-01 22:13:39 +03:00
|
|
|
type Repository interface {
|
2026-03-11 19:40:21 +03:00
|
|
|
MerchRepo
|
2026-03-01 22:13:39 +03:00
|
|
|
Origins
|
2026-03-08 16:42:37 +03:00
|
|
|
Prices
|
|
|
|
|
Tasks
|
2026-03-01 22:13:39 +03:00
|
|
|
}
|
|
|
|
|
|
2026-02-23 20:02:17 +03:00
|
|
|
type repo struct {
|
2026-03-04 17:02:11 +03:00
|
|
|
db *pgxpool.Pool
|
2026-02-23 20:02:17 +03:00
|
|
|
}
|
|
|
|
|
|
2026-03-04 17:02:11 +03:00
|
|
|
func newRepo(db *pgxpool.Pool) Repository {
|
2026-03-01 22:13:39 +03:00
|
|
|
return &repo{
|
2026-02-23 20:02:17 +03:00
|
|
|
db: db,
|
|
|
|
|
}
|
|
|
|
|
}
|