package dto

import "git.dmitriygnatenko.ru/dima/dmitriygnatenko-v2/internal/service/i18n"

type Article struct {
	ID              uint64
	URL             string
	Title           string
	Text            string
	Image           string
	Language        i18n.Language
	PublishTime     string
	MetaKeywords    string
	MetaDescription string
}

type ArticlePreview struct {
	ID          uint64
	URL         string
	Title       string
	PublishTime string
	PreviewText string
	Image       string
}

type ArticleForm struct {
	ID              uint64
	Title           string   `form:"title"`
	Image           string   `form:"image"`
	URL             string   `form:"url"`
	Text            string   `form:"text"`
	PreviewText     string   `form:"preview_text"`
	MetaKeywords    string   `form:"meta_keywords"`
	MetaDescription string   `form:"meta_description"`
	IsActive        bool     `form:"is_active"`
	PublishTime     string   `form:"publish_time"`
	Language        string   `form:"language"`
	Tags            []string `form:"tag"`
	ActiveTags      map[uint64]bool
}
