Files
2026-08-04 12:50:20 +05:00

37 lines
845 B
Go
Executable File

package news
import "time"
type DataNewsDTO struct {
Categories []GetNewsDTO `json:"news"`
Count int `json:"count"`
}
type GetNewsDTO struct {
Id int `json:"Id"`
Title Language `json:"title"`
Content Language `json:"content"`
Image string `json:"imagePath"`
DataRelease time.Time `json:"dateRelease"`
}
type AddNewsDTO struct {
Title Language `json:"title"`
Content Language `json:"content"`
Image string `json:"imagePath"`
DataRelease time.Time `json:"dateRelease"`
}
type UpdateNewsDTO struct {
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"`
}