46 lines
1.1 KiB
Go
46 lines
1.1 KiB
Go
package paymentcard
|
|
|
|
type LocalizedText struct {
|
|
En string `json:"en"`
|
|
Ru string `json:"ru"`
|
|
Tm string `json:"tm"`
|
|
}
|
|
|
|
type PaymentCardDTO struct {
|
|
Id int64 `json:"id"`
|
|
Price float64 `json:"price"`
|
|
Title LocalizedText `json:"title"`
|
|
Content LocalizedText `json:"content"`
|
|
Status bool `json:"status"`
|
|
}
|
|
|
|
type CreatePaymentCardDTO struct {
|
|
Price float64 `json:"price" binding:"required"`
|
|
Title LocalizedText `json:"title" binding:"required"`
|
|
Content LocalizedText `json:"content" binding:"required"`
|
|
Status *bool `json:"status"`
|
|
}
|
|
|
|
type UpdatePaymentCardDTO struct {
|
|
Price float64 `json:"price" binding:"required"`
|
|
Title LocalizedText `json:"title" binding:"required"`
|
|
Content LocalizedText `json:"content" binding:"required"`
|
|
Status bool `json:"status"`
|
|
}
|
|
|
|
type UpdatePaymentCardStatusDTO struct {
|
|
Status bool `json:"status"`
|
|
}
|
|
|
|
type ListFilter struct {
|
|
CardName string
|
|
Status *bool
|
|
Page int
|
|
Limit int
|
|
}
|
|
|
|
type ListPaymentCardDTO struct {
|
|
Count int64 `json:"count"`
|
|
PaymentCards []PaymentCardDTO `json:"paymentCards"`
|
|
}
|