Files
main-tbbank/backend/internal/admin/static/dto.go
2026-08-04 12:50:20 +05:00

56 lines
1.2 KiB
Go

package static
import "time"
type DataStaticDTO struct {
Statics []StaticDTO `json:"statics"`
Count int `json:"count"`
}
type Language struct {
Tm string `json:"tm"`
Ru string `json:"ru"`
En string `json:"en"`
}
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"`
}