Enrich cards API responses with joined relations and share common helpers.
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled

Nest user/branch/cardType/cardState on card, order, pin-order, and visa-master
reads; accept flexible dates/IDs on pin create; widen pin region; ignore undefined
list query params; extract internal/cards/shared to remove duplicated types and helpers.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
guwandykandCursor committed 2026-08-26 12:46:50 +05:00
1 parent 1fd0abbcb2
commit 0098422798
27 files changed
+942 -777

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@ import (
"strings"
"online-back/internal/cards/paymentcard"
"online-back/internal/cards/shared"
"online-back/pkg/client/postgresql"
"online-back/pkg/logging"
"online-back/pkg/repository/genericrepo"
@@ -133,7 +134,7 @@ func (r *repository) Delete(ctx context.Context, id int64) error {
return r.generic.Delete(ctx, id)
}
func marshalName(title paymentcard.LocalizedText) ([]byte, error) {
func marshalName(title shared.LocalizedText) ([]byte, error) {
return json.Marshal(title)
}