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,41 @@
|
||||
package reasonscard
|
||||
|
||||
import "time"
|
||||
|
||||
type LocalizedText struct {
|
||||
En string `json:"en"`
|
||||
Ru string `json:"ru"`
|
||||
Tm string `json:"tm"`
|
||||
}
|
||||
|
||||
type ReasonCardDTO struct {
|
||||
Id int64 `json:"id"`
|
||||
Title LocalizedText `json:"title"`
|
||||
Price float64 `json:"price"`
|
||||
Content LocalizedText `json:"content"`
|
||||
CreatedAt time.Time `json:"createdAt"`
|
||||
UpdatedAt time.Time `json:"updatedAt"`
|
||||
}
|
||||
|
||||
type CreateReasonCardDTO struct {
|
||||
Title LocalizedText `json:"title" binding:"required"`
|
||||
Price float64 `json:"price" binding:"required"`
|
||||
Content LocalizedText `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
type UpdateReasonCardDTO struct {
|
||||
Title LocalizedText `json:"title" binding:"required"`
|
||||
Price float64 `json:"price" binding:"required"`
|
||||
Content LocalizedText `json:"content" binding:"required"`
|
||||
}
|
||||
|
||||
type ListFilter struct {
|
||||
ReasonName string
|
||||
Page int
|
||||
Limit int
|
||||
}
|
||||
|
||||
type ListReasonCardDTO struct {
|
||||
Count int64 `json:"count"`
|
||||
ReasonCards []ReasonCardDTO `json:"reasonCards"`
|
||||
}
|
||||
Reference in new issue
Block a user