Files
2026-08-18 00:59:32 +05:00

64 lines
1.5 KiB
Go

package static
import "time"
type DataStaticDTO struct {
Statics []StaticListItemDTO `json:"statics"`
Count int `json:"count"`
}
type Language struct {
Tm string `json:"tm"`
Ru string `json:"ru"`
En string `json:"en"`
}
// StaticListItemDTO is the list payload — no content (loaded via GetData).
type StaticListItemDTO struct {
Id int `json:"Id"`
Logo string `json:"logo"`
Title Language `json:"title"`
CreatedAt time.Time `json:"createdAt"`
}
type StaticDTO struct {
Id int `json:"Id"`
Logo string `json:"logo"`
Title Language `json:"title"`
ContentTm string `json:"contentTm"`
ContentRu string `json:"contentRu"`
ContentEn string `json:"contentEn"`
CreatedAt time.Time `json:"createdAt"`
}
type AddStaticDTO struct {
Logo string `json:"logo" binding:"required"`
Title Language `json:"title" binding:"required"`
ContentTm string `json:"contentTm"`
ContentRu string `json:"contentRu"`
ContentEn string `json:"contentEn"`
}
type UpdateStaticDTO struct {
Logo string `json:"logo" binding:"required"`
Title Language `json:"title" binding:"required"`
ContentTm string `json:"contentTm"`
ContentRu string `json:"contentRu"`
ContentEn string `json:"contentEn"`
}
type StaticIdDTO struct {
Id int `json:"Id"`
Logo string `json:"logo"`
Title Language `json:"title"`
}
type PaginationDTO struct {
Limit int `json:"limit"`
Page int `json:"page"`
}
type ReqIdDTO struct {
Id int `json:"Id"`
}