90 lines
2.2 KiB
Go
Executable File
90 lines
2.2 KiB
Go
Executable File
package users
|
|
|
|
import "time"
|
|
|
|
type DataNewsDTO struct {
|
|
News []NewsDTO `json:"news"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type NewsDTO struct {
|
|
Id int `json:"id"`
|
|
Title Language `json:"title"`
|
|
Content Language `json:"content"`
|
|
Image string `json:"imagePath"`
|
|
DataRelease time.Time `json:"dateRelease"`
|
|
}
|
|
|
|
type Language struct {
|
|
En string `json:"en"`
|
|
Ru string `json:"ru"`
|
|
Tm string `json:"tm"`
|
|
}
|
|
|
|
type CategoryDTO struct {
|
|
Id int `json:"id"`
|
|
Name Language `json:"name"`
|
|
Image string `json:"imagePath"`
|
|
SubCategories []SubCategoryDTO `json:"subCategories"`
|
|
}
|
|
|
|
type SubCategoryDTO struct {
|
|
Id int `json:"id"`
|
|
CategoryId int `json:"categoryId"`
|
|
Name Language `json:"name"`
|
|
Content Language `json:"content"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type DataBannerDTO struct {
|
|
Banners []BannerListItemDTO `json:"banners"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
type BannerListItemDTO struct {
|
|
Id int `json:"id"`
|
|
Image string `json:"imagePath"`
|
|
}
|
|
|
|
type BannerDTO struct {
|
|
Id int `json:"id"`
|
|
Title Language `json:"title"`
|
|
ContentTm string `json:"contentTm"`
|
|
ContentRu string `json:"contentRu"`
|
|
ContentEn string `json:"contentEn"`
|
|
Image string `json:"imagePath"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
type DataStaticDTO struct {
|
|
Statics []StaticDTO `json:"statics"`
|
|
Count int `json:"count"`
|
|
}
|
|
|
|
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 CurrencyDTO struct {
|
|
Id int `json:"id"`
|
|
Title Language `json:"title"`
|
|
Content Language `json:"content"`
|
|
Path string `json:"path"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|
|
|
|
type SettingDTO struct {
|
|
UUID string `json:"UUID"`
|
|
LogoR string `json:"logoR"`
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
FaxNumber string `json:"faxNumber"`
|
|
HelpNumber string `json:"helpNumber"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
}
|