ch logika
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-18 11:53:37 +05:00
1 parent e0d03730de
commit d3e188affe
28 files changed
+405 -656

No files matched your search

+9 -1
View File
@@ -1,6 +1,14 @@
package currency
import "context"
import (
"context"
"errors"
)
// ErrDuplicate is returned by Repository.Create/Update when the
// currency_from/currency_to pair already exists among active (non-deleted)
// rows, so the handler can respond with a clean 409 instead of a raw 500.
var ErrDuplicate = errors.New("currency pair already exists")
type Repository interface {
List(ctx context.Context, filter ListFilter) (ListCurrencyDTO, error)