package domain import "time" // StatusReady — единственное состояние вложения в lab4: метаданные появляются только после // сохранения оригинала. Асинхронные состояния добавляются с lab5. const StatusReady = "ready" const ( ContentTypePNG = "image/png" ContentTypeJPEG = "image/jpeg" ) type Variant struct { Name string `json:"name"` ContentType string `json:"content_type"` SizeBytes int64 `json:"size_bytes"` Width int `json:"width"` Height int `json:"height"` SHA256 string `json:"sha256"` } type Attachment struct { Variants []Variant Thumbnail Variant ErrorCode *string ID string ChatID string OwnerID string Filename string ContentType string SizeBytes int64 SHA256 string // ObjectKey — внутренний ключ в bucket, назначает сервер. В публичный API не попадает. ObjectKey string Status string CreatedAt time.Time UpdatedAt time.Time }