Files
GuwandykA d1a6fcaadc
Some checks failed
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
ch some
2026-09-04 19:33:26 +05:00

42 lines
1.1 KiB
Go

package paymentcard
import "online-back/internal/shared"
type PaymentCardDTO struct {
Id int64 `json:"id"`
Price string `json:"price"`
Title shared.LocalizedText `json:"title"`
Notes string `json:"notes"`
Active bool `json:"active"`
}
type CreatePaymentCardDTO struct {
Price string `json:"price" binding:"required"`
Title shared.LocalizedText `json:"title" binding:"required"`
Notes string `json:"notes"`
Active *bool `json:"active"`
}
type UpdatePaymentCardDTO struct {
Price string `json:"price" binding:"required"`
Title shared.LocalizedText `json:"title" binding:"required"`
Notes string `json:"notes"`
Active bool `json:"active"`
}
type UpdatePaymentCardActiveDTO struct {
Active bool `json:"active"`
}
type ListFilter struct {
CardName string
Active *bool
Page int
Limit int
}
type ListPaymentCardDTO struct {
Count int64 `json:"count"`
PaymentCards []PaymentCardDTO `json:"paymentCards"`
}