diff --git a/pkg/items/item.go b/pkg/items/item.go index 6024b0c638288664d2673be2aecd214fa2e1693f..e67dab7d1e753f2d074809329eca5dcee58fa207 100644 --- a/pkg/items/item.go +++ b/pkg/items/item.go @@ -118,11 +118,11 @@ type Item struct { // - {"lang":map{...}} - установка перевода для языка // - {"lang":map{...}, "*":nil} - установка перевода для языка, сброс остальных переводов // - {"*":nil} - сброс всех переводов - Translations map[string]map[string]interface{} `json:"translations" bson:"translations,omitempty"` + Translations map[string]map[string]interface{} `json:"translations,omitempty" bson:"translations,omitempty"` // Список идентификаторов локалей, для которых есть переводы. // Соответствует ключам в translations - TranslationsIDs []string `json:"translationsIds" bson:"translations_ids,omitempty"` + TranslationsIDs []string `json:"translationsIds,omitempty" bson:"translations_ids,omitempty"` RevisionID string `json:"revId,omitempty" bson:"revision_id"` RevisionDescription string `json:"revDescription,omitempty" bson:"revision_description"` @@ -131,9 +131,9 @@ type Item struct { // Релеватность элемента при полнотекстовом поиске SearchScore float64 `json:"searchScore,omitempty" bson:"search_score,omitempty"` - Deleted bool `json:"deleted" bson:"deleted,omitempty"` - Hidden bool `json:"hidden" bson:"hidden,omitempty"` - Template bool `json:"template" bson:"template,omitempty"` + Deleted bool `json:"deleted,omitempty" bson:"deleted,omitempty"` + Hidden bool `json:"hidden,omitempty" bson:"hidden,omitempty"` + Template bool `json:"template,omitempty" bson:"template,omitempty"` } func NewItem(spaceID, envID, collID, id string, data map[string]interface{}, translations map[string]map[string]interface{}) *Item {