From fbbce7817b73ed27ecab11db8850d391c6295204 Mon Sep 17 00:00:00 2001 From: mr Date: Thu, 5 Dec 2024 09:21:03 +0100 Subject: [PATCH] set up --- models/collaborative_area/collaborative_area.go | 1 - .../shallow_collaborative_area/shallow_collaborative_area.go | 1 - 2 files changed, 2 deletions(-) diff --git a/models/collaborative_area/collaborative_area.go b/models/collaborative_area/collaborative_area.go index a7a51be..97ddc95 100644 --- a/models/collaborative_area/collaborative_area.go +++ b/models/collaborative_area/collaborative_area.go @@ -28,7 +28,6 @@ type CollaborativeAreaRule struct { type CollaborativeArea struct { utils.AbstractObject // AbstractObject contains the basic fields of an object (id, name) IsSent bool `json:"is_sent" bson:"-"` // IsSent is a flag that indicates if the workspace is sent - CreatorID string `json:"peer_id,omitempty" bson:"peer_id,omitempty" validate:"required"` // CreatorID is the ID of the creator Version string `json:"version,omitempty" bson:"version,omitempty"` // Version is the version of the workspace Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` // Description is the description of the workspace CollaborativeAreaRule *CollaborativeAreaRule `json:"collaborative_area,omitempty" bson:"collaborative_area,omitempty"` // CollaborativeArea is the collaborative area of the workspace diff --git a/models/collaborative_area/shallow_collaborative_area/shallow_collaborative_area.go b/models/collaborative_area/shallow_collaborative_area/shallow_collaborative_area.go index 340cfef..5d07b23 100644 --- a/models/collaborative_area/shallow_collaborative_area/shallow_collaborative_area.go +++ b/models/collaborative_area/shallow_collaborative_area/shallow_collaborative_area.go @@ -8,7 +8,6 @@ import ( type ShallowCollaborativeArea struct { utils.AbstractObject IsSent bool `json:"is_sent" bson:"-"` - CreatorID string `json:"peer_id,omitempty" bson:"peer_id,omitempty" validate:"required"` Version string `json:"version,omitempty" bson:"version,omitempty"` Description string `json:"description,omitempty" bson:"description,omitempty" validate:"required"` Attributes map[string]interface{} `json:"attributes,omitempty" bson:"attributes,omitempty"`