article.go 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package dto
  2. import "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/services/i18n"
  3. type Article struct {
  4. ID uint64
  5. URL string
  6. Title string
  7. Text string
  8. Image string
  9. Language i18n.Language
  10. PublishTime string
  11. MetaKeywords string
  12. MetaDescription string
  13. }
  14. type ArticlePreview struct {
  15. ID uint64
  16. URL string
  17. Title string
  18. PublishTime string
  19. PreviewText string
  20. Image string
  21. }
  22. type ArticleForm struct {
  23. ID uint64
  24. Title string `form:"title"`
  25. Image string `form:"image"`
  26. URL string `form:"url"`
  27. Text string `form:"text"`
  28. PreviewText string `form:"preview_text"`
  29. MetaKeywords string `form:"meta_keywords"`
  30. MetaDescription string `form:"meta_description"`
  31. IsActive bool `form:"is_active"`
  32. PublishTime string `form:"publish_time"`
  33. Language string `form:"language"`
  34. Tags []string `form:"tag"`
  35. ActiveTags map[uint64]bool
  36. }