settings section
This commit is contained in:
1 parent
bbe5d219ad
commit
0c717101da
2867 files changed
+1118596
-1
No files matched your search
@@ -0,0 +1,45 @@
|
||||
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"`
|
||||
}
|
||||
Reference in new issue
Block a user